RFR: 8277394: Remove the use of safepoint_workers in reference processor

Kim Barrett kbarrett at openjdk.java.net
Fri Nov 19 09:40:42 UTC 2021


On Thu, 18 Nov 2021 12:31:41 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> Simple change of passing workers to the reference processor constructor.
> 
> Test: hotspot_gc

Changes requested by kbarrett (Reviewer).

src/hotspot/share/gc/shared/referenceProcessor.hpp line 257:

> 255: 
> 256:   // Workers to process the discovered non-strong references.
> 257:   WorkerThreads* _workers;

Rather than adding a WorkerThreads member at construction time, it seems better to me to add an argument to ReferenceProcessor::run_task.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6453



More information about the hotspot-gc-dev mailing list