src/hotspot/share/gc/g1/g1HeapTransition.cpp
changeset 55576 4d193e40e7af
parent 53985 0da5c17f5e43
child 59062 6530de931b8e
equal deleted inserted replaced
55575:25165403c62e 55576:4d193e40e7af
    33   _eden_length = g1_heap->eden_regions_count();
    33   _eden_length = g1_heap->eden_regions_count();
    34   _survivor_length = g1_heap->survivor_regions_count();
    34   _survivor_length = g1_heap->survivor_regions_count();
    35   _old_length = g1_heap->old_regions_count();
    35   _old_length = g1_heap->old_regions_count();
    36   _archive_length = g1_heap->archive_regions_count();
    36   _archive_length = g1_heap->archive_regions_count();
    37   _humongous_length = g1_heap->humongous_regions_count();
    37   _humongous_length = g1_heap->humongous_regions_count();
    38   _metaspace_used_bytes = MetaspaceUtils::used_bytes();
       
    39 }
    38 }
    40 
    39 
    41 G1HeapTransition::G1HeapTransition(G1CollectedHeap* g1_heap) : _g1_heap(g1_heap), _before(g1_heap) { }
    40 G1HeapTransition::G1HeapTransition(G1CollectedHeap* g1_heap) : _g1_heap(g1_heap), _before(g1_heap) { }
    42 
    41 
    43 struct DetailedUsage : public StackObj {
    42 struct DetailedUsage : public StackObj {
   129   log_info(gc, heap)("Humongous regions: " SIZE_FORMAT "->" SIZE_FORMAT,
   128   log_info(gc, heap)("Humongous regions: " SIZE_FORMAT "->" SIZE_FORMAT,
   130                      _before._humongous_length, after._humongous_length);
   129                      _before._humongous_length, after._humongous_length);
   131   log_trace(gc, heap)(" Used: " SIZE_FORMAT "K, Waste: " SIZE_FORMAT "K",
   130   log_trace(gc, heap)(" Used: " SIZE_FORMAT "K, Waste: " SIZE_FORMAT "K",
   132       usage._humongous_used / K, ((after._humongous_length * HeapRegion::GrainBytes) - usage._humongous_used) / K);
   131       usage._humongous_used / K, ((after._humongous_length * HeapRegion::GrainBytes) - usage._humongous_used) / K);
   133 
   132 
   134   MetaspaceUtils::print_metaspace_change(_before._metaspace_used_bytes);
   133   MetaspaceUtils::print_metaspace_change(_before._meta_sizes);
   135 }
   134 }