Skip to content
Permalink
Browse files
8277534: Remove unused ReferenceProcessor::has_discovered_references
Reviewed-by: tschatzl
  • Loading branch information
albertnetymk committed Nov 22, 2021
1 parent 3f847fe commit 8051041eb2b3d70d4cc62b6f2726279d51e44733
Showing with 0 additions and 12 deletions.
  1. +0 −9 src/hotspot/share/gc/shared/referenceProcessor.cpp
  2. +0 −3 src/hotspot/share/gc/shared/referenceProcessor.hpp
@@ -1054,15 +1054,6 @@ bool ReferenceProcessor::discover_reference(oop obj, ReferenceType rt) {
return true;
}

bool ReferenceProcessor::has_discovered_references() {
for (uint i = 0; i < _max_num_queues * number_of_subclasses_of_ref(); i++) {
if (!_discovered_refs[i].is_empty()) {
return true;
}
}
return false;
}

void ReferenceProcessor::preclean_discovered_references(BoolObjectClosure* is_alive,
EnqueueDiscoveredFieldClosure* enqueue,
YieldClosure* yield,
@@ -421,9 +421,6 @@ class ReferenceProcessor : public ReferenceDiscoverer {
// Discover a Reference object, using appropriate discovery criteria
virtual bool discover_reference(oop obj, ReferenceType rt);

// Has discovered references that need handling
bool has_discovered_references();

// Process references found during GC (called by the garbage collector)
ReferenceProcessorStats
process_discovered_references(RefProcProxyTask& proxy_task,

1 comment on commit 8051041

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 8051041 Nov 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.