# HG changeset patch # User stefank # Date 1523007448 -7200 # Node ID 6705b1563b423a717ca4bd4781b234c5bc5f00ba # Parent 6709f13dccd3d6a709fb546eb688cbd837217ba4 8200736: Move CMSGCStats to the cms directory Reviewed-by: sjohanss, tschatzl diff -r 6709f13dccd3 -r 6705b1563b42 src/hotspot/share/gc/cms/cmsGCStats.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/hotspot/share/gc/cms/cmsGCStats.cpp Fri Apr 06 11:37:28 2018 +0200 @@ -0,0 +1,34 @@ +/* + * 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. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + * + */ + +#include "precompiled.hpp" +#include "gc/cms/cmsGCStats.hpp" +#include "gc/shared/gcUtil.inline.hpp" +#include "runtime/globals.hpp" + +CMSGCStats::CMSGCStats() { + _avg_promoted = new AdaptivePaddedNoZeroDevAverage( + CMSExpAvgFactor, + PromotedPadding); +} diff -r 6709f13dccd3 -r 6705b1563b42 src/hotspot/share/gc/cms/cmsGCStats.hpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/hotspot/share/gc/cms/cmsGCStats.hpp Fri Apr 06 11:37:28 2018 +0200 @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2003, 2018, 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. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + * + */ + +#ifndef SHARE_GC_CMS_CMSGCSTATS_HPP +#define SHARE_GC_CMS_CMSGCSTATS_HPP + +#include "gc/shared/gcStats.hpp" + +class CMSGCStats : public GCStats { + public: + CMSGCStats(); + + virtual Name kind() { + return CMSGCStatsKind; + } +}; + +#endif // SHARE_GC_CMS_CMSGCSTATS_HPP diff -r 6709f13dccd3 -r 6705b1563b42 src/hotspot/share/gc/cms/concurrentMarkSweepGeneration.cpp --- a/src/hotspot/share/gc/cms/concurrentMarkSweepGeneration.cpp Fri Apr 06 11:37:26 2018 +0200 +++ b/src/hotspot/share/gc/cms/concurrentMarkSweepGeneration.cpp Fri Apr 06 11:37:28 2018 +0200 @@ -29,6 +29,7 @@ #include "classfile/systemDictionary.hpp" #include "code/codeCache.hpp" #include "gc/cms/cmsCollectorPolicy.hpp" +#include "gc/cms/cmsGCStats.hpp" #include "gc/cms/cmsHeap.hpp" #include "gc/cms/cmsOopClosures.inline.hpp" #include "gc/cms/compactibleFreeListSpace.hpp" diff -r 6709f13dccd3 -r 6705b1563b42 src/hotspot/share/gc/shared/gcStats.cpp --- a/src/hotspot/share/gc/shared/gcStats.cpp Fri Apr 06 11:37:26 2018 +0200 +++ b/src/hotspot/share/gc/shared/gcStats.cpp Fri Apr 06 11:37:28 2018 +0200 @@ -31,9 +31,3 @@ AdaptiveSizePolicyWeight, PromotedPadding); } - -CMSGCStats::CMSGCStats() { - _avg_promoted = new AdaptivePaddedNoZeroDevAverage( - CMSExpAvgFactor, - PromotedPadding); -} diff -r 6709f13dccd3 -r 6705b1563b42 src/hotspot/share/gc/shared/gcStats.hpp --- a/src/hotspot/share/gc/shared/gcStats.hpp Fri Apr 06 11:37:26 2018 +0200 +++ b/src/hotspot/share/gc/shared/gcStats.hpp Fri Apr 06 11:37:28 2018 +0200 @@ -58,13 +58,4 @@ } }; -class CMSGCStats : public GCStats { - public: - CMSGCStats(); - - virtual Name kind() { - return CMSGCStatsKind; - } -}; - #endif // SHARE_VM_GC_SHARED_GCSTATS_HPP