< prev index next >

src/hotspot/share/gc/shared/gcPolicyCounters.cpp

Print this page
rev 53341 : 8212206: Refactor AdaptiveSizePolicy to separate out code related to GC overhead
Summary: Move check_gc_overhead_limit() and related code to its own class
Reviewed-by:

*** 1,7 **** /* ! * Copyright (c) 2002, 2015, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2002, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 57,63 **** --- 57,68 ---- cname = PerfDataManager::counter_name(_name_space, "desiredSurvivorSize"); _desired_survivor_size = PerfDataManager::create_variable(SUN_GC, cname, PerfData::U_Bytes, CHECK); + + cname = PerfDataManager::counter_name(_name_space, "gcTimeLimitExceeded"); + _gc_overhead_limit_exceeded_counter = + PerfDataManager::create_variable(SUN_GC, cname, PerfData::U_Events, + CHECK); } }
< prev index next >