87 |
87 |
88 void G1HeapTransition::print() { |
88 void G1HeapTransition::print() { |
89 Data after(_g1_heap); |
89 Data after(_g1_heap); |
90 |
90 |
91 size_t eden_capacity_length_after_gc = _g1_heap->g1_policy()->young_list_target_length() - after._survivor_length; |
91 size_t eden_capacity_length_after_gc = _g1_heap->g1_policy()->young_list_target_length() - after._survivor_length; |
92 size_t survivor_capacity_length_after_gc = _g1_heap->g1_policy()->max_survivor_regions(); |
92 size_t survivor_capacity_length_before_gc = _g1_heap->g1_policy()->max_survivor_regions(); |
93 |
93 |
94 DetailedUsage usage; |
94 DetailedUsage usage; |
95 if (log_is_enabled(Trace, gc, heap)) { |
95 if (log_is_enabled(Trace, gc, heap)) { |
96 DetailedUsageClosure blk; |
96 DetailedUsageClosure blk; |
97 _g1_heap->heap_region_iterate(&blk); |
97 _g1_heap->heap_region_iterate(&blk); |
110 log_info(gc, heap)("Eden regions: " SIZE_FORMAT "->" SIZE_FORMAT "(" SIZE_FORMAT ")", |
110 log_info(gc, heap)("Eden regions: " SIZE_FORMAT "->" SIZE_FORMAT "(" SIZE_FORMAT ")", |
111 _before._eden_length, after._eden_length, eden_capacity_length_after_gc); |
111 _before._eden_length, after._eden_length, eden_capacity_length_after_gc); |
112 log_trace(gc, heap)(" Used: 0K, Waste: 0K"); |
112 log_trace(gc, heap)(" Used: 0K, Waste: 0K"); |
113 |
113 |
114 log_info(gc, heap)("Survivor regions: " SIZE_FORMAT "->" SIZE_FORMAT "(" SIZE_FORMAT ")", |
114 log_info(gc, heap)("Survivor regions: " SIZE_FORMAT "->" SIZE_FORMAT "(" SIZE_FORMAT ")", |
115 _before._survivor_length, after._survivor_length, survivor_capacity_length_after_gc); |
115 _before._survivor_length, after._survivor_length, survivor_capacity_length_before_gc); |
116 log_trace(gc, heap)(" Used: " SIZE_FORMAT "K, Waste: " SIZE_FORMAT "K", |
116 log_trace(gc, heap)(" Used: " SIZE_FORMAT "K, Waste: " SIZE_FORMAT "K", |
117 usage._survivor_used / K, ((after._survivor_length * HeapRegion::GrainBytes) - usage._survivor_used) / K); |
117 usage._survivor_used / K, ((after._survivor_length * HeapRegion::GrainBytes) - usage._survivor_used) / K); |
118 |
118 |
119 log_info(gc, heap)("Old regions: " SIZE_FORMAT "->" SIZE_FORMAT, |
119 log_info(gc, heap)("Old regions: " SIZE_FORMAT "->" SIZE_FORMAT, |
120 _before._old_length, after._old_length); |
120 _before._old_length, after._old_length); |