8233443: G1 DetailedUsage class names overly generic for global namespace

Reviewed-by: ayang, gli, tschatzl
This commit is contained in:
Lei Zaakjyu 2024-01-09 13:26:38 +00:00 committed by Thomas Schatzl
parent 37a61720b6
commit ff499ef79f
2 changed files with 5 additions and 2 deletions

@ -62,7 +62,7 @@ G1HeapTransition::Data::~Data() {
G1HeapTransition::G1HeapTransition(G1CollectedHeap* g1_heap) : _g1_heap(g1_heap), _before(g1_heap) { }
struct DetailedUsage : public StackObj {
struct G1HeapTransition::DetailedUsage : public StackObj {
size_t _eden_used;
size_t _survivor_used;
size_t _old_used;
@ -79,7 +79,7 @@ struct DetailedUsage : public StackObj {
_humongous_region_count(0) {}
};
class DetailedUsageClosure: public HeapRegionClosure {
class G1HeapTransition::DetailedUsageClosure: public HeapRegionClosure {
public:
DetailedUsage _usage;
bool do_heap_region(HeapRegion* r) {

@ -31,6 +31,9 @@
class G1CollectedHeap;
class G1HeapTransition {
struct DetailedUsage;
class DetailedUsageClosure;
struct Data {
size_t _eden_length;
size_t _survivor_length;