8315072: Remove unneeded AdaptivePaddedAverage::operator new
Reviewed-by: tschatzl, iwalulya
This commit is contained in:
parent
c90cd2c060
commit
8419a53bf1
@ -28,7 +28,7 @@
|
|||||||
#include "gc/parallel/psGCAdaptivePolicyCounters.hpp"
|
#include "gc/parallel/psGCAdaptivePolicyCounters.hpp"
|
||||||
#include "gc/parallel/psScavenge.hpp"
|
#include "gc/parallel/psScavenge.hpp"
|
||||||
#include "gc/shared/gcCause.hpp"
|
#include "gc/shared/gcCause.hpp"
|
||||||
#include "gc/shared/gcUtil.inline.hpp"
|
#include "gc/shared/gcUtil.hpp"
|
||||||
#include "gc/shared/gcPolicyCounters.hpp"
|
#include "gc/shared/gcPolicyCounters.hpp"
|
||||||
#include "logging/log.hpp"
|
#include "logging/log.hpp"
|
||||||
#include "runtime/timer.hpp"
|
#include "runtime/timer.hpp"
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "gc/shared/adaptiveSizePolicy.hpp"
|
#include "gc/shared/adaptiveSizePolicy.hpp"
|
||||||
#include "gc/shared/gcCause.hpp"
|
#include "gc/shared/gcCause.hpp"
|
||||||
#include "gc/shared/gcUtil.inline.hpp"
|
#include "gc/shared/gcUtil.hpp"
|
||||||
#include "logging/log.hpp"
|
#include "logging/log.hpp"
|
||||||
#include "runtime/timer.hpp"
|
#include "runtime/timer.hpp"
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#include "precompiled.hpp"
|
#include "precompiled.hpp"
|
||||||
#include "gc/shared/gcStats.hpp"
|
#include "gc/shared/gcStats.hpp"
|
||||||
#include "gc/shared/gcUtil.inline.hpp"
|
#include "gc/shared/gcUtil.hpp"
|
||||||
#include "gc/shared/gc_globals.hpp"
|
#include "gc/shared/gc_globals.hpp"
|
||||||
|
|
||||||
GCStats::GCStats() : _avg_promoted(new AdaptivePaddedNoZeroDevAverage(AdaptiveSizePolicyWeight, PromotedPadding)) {}
|
GCStats::GCStats() : _avg_promoted(new AdaptivePaddedNoZeroDevAverage(AdaptiveSizePolicyWeight, PromotedPadding)) {}
|
||||||
|
@ -143,11 +143,6 @@ class AdaptivePaddedAverage : public AdaptiveWeightedAverage {
|
|||||||
AdaptiveWeightedAverage(weight),
|
AdaptiveWeightedAverage(weight),
|
||||||
_padded_avg(0.0), _deviation(0.0), _padding(padding) {}
|
_padded_avg(0.0), _deviation(0.0), _padding(padding) {}
|
||||||
|
|
||||||
// Placement support
|
|
||||||
void* operator new(size_t ignored, void* p) throw() { return p; }
|
|
||||||
// Allocator
|
|
||||||
void* operator new(size_t size) throw();
|
|
||||||
|
|
||||||
// Accessor
|
// Accessor
|
||||||
float padded_average() const { return _padded_avg; }
|
float padded_average() const { return _padded_avg; }
|
||||||
float deviation() const { return _deviation; }
|
float deviation() const { return _deviation; }
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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.
|
|
||||||
*
|
|
||||||
* 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_SHARED_GCUTIL_INLINE_HPP
|
|
||||||
#define SHARE_GC_SHARED_GCUTIL_INLINE_HPP
|
|
||||||
|
|
||||||
#include "gc/shared/gcUtil.hpp"
|
|
||||||
|
|
||||||
#include "memory/allocation.inline.hpp"
|
|
||||||
|
|
||||||
inline void* AdaptivePaddedAverage::operator new(size_t size) throw() {
|
|
||||||
return CHeapObj<mtGC>::operator new(size);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // SHARE_GC_SHARED_GCUTIL_INLINE_HPP
|
|
Loading…
x
Reference in New Issue
Block a user