< prev index next >

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

8221260: Initialize more class members on construction, remove some unused ones
Reviewed-by:

*** 1,7 **** /* ! * Copyright (c) 2003, 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) 2003, 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. ***************
*** 24,33 **** #include "precompiled.hpp" #include "gc/shared/gcStats.hpp" #include "gc/shared/gcUtil.inline.hpp" ! GCStats::GCStats() { ! _avg_promoted = new AdaptivePaddedNoZeroDevAverage( ! AdaptiveSizePolicyWeight, ! PromotedPadding); ! } --- 24,29 ---- #include "precompiled.hpp" #include "gc/shared/gcStats.hpp" #include "gc/shared/gcUtil.inline.hpp" ! GCStats::GCStats() : _avg_promoted(new AdaptivePaddedNoZeroDevAverage(AdaptiveSizePolicyWeight, PromotedPadding)) {}
< prev index next >