< prev index next >
src/hotspot/share/gc/shared/adaptiveSizePolicy.hpp
Print this page
*** 35,45 ****
// This class keeps statistical information and computes the
// size of the heap.
// Forward decls
class elapsedTimer;
! class CollectorPolicy;
class AdaptiveSizePolicy : public CHeapObj<mtGC> {
friend class GCAdaptivePolicyCounters;
friend class PSGCAdaptivePolicyCounters;
friend class CMSGCAdaptivePolicyCounters;
--- 35,45 ----
// This class keeps statistical information and computes the
// size of the heap.
// Forward decls
class elapsedTimer;
! class SoftRefPolicy;
class AdaptiveSizePolicy : public CHeapObj<mtGC> {
friend class GCAdaptivePolicyCounters;
friend class PSGCAdaptivePolicyCounters;
friend class CMSGCAdaptivePolicyCounters;
*** 484,494 ****
size_t eden_live,
size_t max_old_gen_size,
size_t max_eden_size,
bool is_full_gc,
GCCause::Cause gc_cause,
! CollectorPolicy* collector_policy);
static bool should_update_promo_stats(GCCause::Cause cause) {
return ((GCCause::is_user_requested_gc(cause) &&
UseAdaptiveSizePolicyWithSystemGC) ||
GCCause::is_tenured_allocation_failure_gc(cause));
--- 484,494 ----
size_t eden_live,
size_t max_old_gen_size,
size_t max_eden_size,
bool is_full_gc,
GCCause::Cause gc_cause,
! SoftRefPolicy* soft_ref_policy);
static bool should_update_promo_stats(GCCause::Cause cause) {
return ((GCCause::is_user_requested_gc(cause) &&
UseAdaptiveSizePolicyWithSystemGC) ||
GCCause::is_tenured_allocation_failure_gc(cause));
< prev index next >