--- old/src/hotspot/share/gc/g1/g1HeapTransition.cpp 2019-02-27 11:07:42.139009837 +0100 +++ new/src/hotspot/share/gc/g1/g1HeapTransition.cpp 2019-02-27 11:07:41.869001628 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -88,8 +88,8 @@ void G1HeapTransition::print() { Data after(_g1_heap); - size_t eden_capacity_length_after_gc = _g1_heap->g1_policy()->young_list_target_length() - after._survivor_length; - size_t survivor_capacity_length_before_gc = _g1_heap->g1_policy()->max_survivor_regions(); + size_t eden_capacity_length_after_gc = _g1_heap->policy()->young_list_target_length() - after._survivor_length; + size_t survivor_capacity_length_before_gc = _g1_heap->policy()->max_survivor_regions(); DetailedUsage usage; if (log_is_enabled(Trace, gc, heap)) {