Skip to content
Permalink
Browse files
8269433: Remove effectively unused ReferenceProcessor::_enqueuing_is_…
…done

Reviewed-by: kbarrett, tschatzl
  • Loading branch information
albertnetymk committed Jun 28, 2021
1 parent 29bc381 commit d0d26f5c550e44bf22d9155e4219351104be4635
Showing 3 changed files with 1 addition and 12 deletions.
@@ -488,11 +488,7 @@ void GenCollectedHeap::collect_generation(Generation* gen, bool full, size_t siz
// collect() below will enable discovery as appropriate
}
gen->collect(full, clear_soft_refs, size, is_tlab);
if (!rp->enqueuing_is_done()) {
rp->disable_discovery();
} else {
rp->set_enqueuing_is_done(false);
}
rp->disable_discovery();
rp->verify_no_references_recorded();
}

@@ -100,7 +100,6 @@ ReferenceProcessor::ReferenceProcessor(BoolObjectClosure* is_subject_to_discover
BoolObjectClosure* is_alive_non_header) :
_is_subject_to_discovery(is_subject_to_discovery),
_discovering_refs(false),
_enqueuing_is_done(false),
_next_id(0),
_is_alive_non_header(is_alive_non_header)
{
@@ -199,7 +198,6 @@ ReferenceProcessorStats ReferenceProcessor::process_discovered_references(RefPro

double start_time = os::elapsedTime();

assert(!enqueuing_is_done(), "If here enqueuing should not be complete");
// Stop treating discovered references specially.
disable_discovery();

@@ -202,7 +202,6 @@ class ReferenceProcessor : public ReferenceDiscoverer {
// other collectors in configuration
bool _discovery_is_mt; // true if reference discovery is MT.

bool _enqueuing_is_done; // true if all weak references enqueued
uint _next_id; // round-robin mod _num_queues counter in
// support of work distribution

@@ -405,10 +404,6 @@ class ReferenceProcessor : public ReferenceDiscoverer {
// Whether we are in a phase when _processing_ is MT.
bool processing_is_mt() const;

// whether all enqueueing of weak references is complete
bool enqueuing_is_done() { return _enqueuing_is_done; }
void set_enqueuing_is_done(bool v) { _enqueuing_is_done = v; }

// iterate over oops
void weak_oops_do(OopClosure* f); // weak roots

0 comments on commit d0d26f5

Please sign in to comment.