src/hotspot/share/gc/g1/g1HeapTransition.cpp
changeset 53985 0da5c17f5e43
parent 52975 35e2bbea78b2
child 55576 4d193e40e7af
equal deleted inserted replaced
53984:31884d19e945 53985:0da5c17f5e43
     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);