8279510: Parallel: Remove unused PSScavenge::_consecutive_skipped_scavenges

Reviewed-by: kbarrett
This commit is contained in:
Albert Mingkun Yang 2022-01-05 15:36:16 +00:00
parent 0f98efbf2f
commit b6ec39cc84
2 changed files with 1 additions and 12 deletions
src/hotspot/share/gc/parallel

@ -71,7 +71,6 @@
#include "utilities/stack.inline.hpp"
HeapWord* PSScavenge::_to_space_top_before_gc = NULL;
int PSScavenge::_consecutive_skipped_scavenges = 0;
SpanSubjectToDiscoveryClosure PSScavenge::_span_based_discoverer;
ReferenceProcessor* PSScavenge::_ref_processor = NULL;
PSCardTable* PSScavenge::_card_table = NULL;
@ -729,7 +728,6 @@ bool PSScavenge::should_attempt_scavenge() {
// Do not attempt to promote unless to_space is empty
if (!young_gen->to_space()->is_empty()) {
_consecutive_skipped_scavenges++;
if (UsePerfData) {
counters->update_scavenge_skipped(to_space_not_empty);
}
@ -753,10 +751,7 @@ bool PSScavenge::should_attempt_scavenge() {
log_trace(ergo)(" padded_promoted_average is greater than maximum promotion = " SIZE_FORMAT, young_gen->used_in_bytes());
}
if (result) {
_consecutive_skipped_scavenges = 0;
} else {
_consecutive_skipped_scavenges++;
if (!result) {
if (UsePerfData) {
counters->update_scavenge_skipped(promoted_too_large);
}

@ -57,10 +57,6 @@ class PSScavenge: AllStatic {
// being rescanned.
static HeapWord* _to_space_top_before_gc;
// Number of consecutive attempts to scavenge that were skipped
static int _consecutive_skipped_scavenges;
protected:
// Flags/counters
static SpanSubjectToDiscoveryClosure _span_based_discoverer;
@ -95,8 +91,6 @@ class PSScavenge: AllStatic {
// Accessors
static uint tenuring_threshold() { return _tenuring_threshold; }
static elapsedTimer* accumulated_time() { return &_accumulated_time; }
static int consecutive_skipped_scavenges()
{ return _consecutive_skipped_scavenges; }
// Performance Counters
static CollectorCounters* counters() { return _counters; }