equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
86 }; |
86 }; |
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->policy()->young_list_target_length() - after._survivor_length; |
92 size_t survivor_capacity_length_before_gc = _g1_heap->g1_policy()->max_survivor_regions(); |
92 size_t survivor_capacity_length_before_gc = _g1_heap->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); |