Skip to content

Commit

Permalink
8277534: Remove unused ReferenceProcessor::has_discovered_references
Browse files Browse the repository at this point in the history
Reviewed-by: tschatzl
  • Loading branch information
albertnetymk committed Nov 22, 2021
1 parent 3f847fe commit 8051041
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
9 changes: 0 additions & 9 deletions src/hotspot/share/gc/shared/referenceProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 0 additions & 3 deletions src/hotspot/share/gc/shared/referenceProcessor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

1 comment on commit 8051041

@openjdk-notifier
Copy link

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.