equal
deleted
inserted
replaced
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 } |