8282307: Parallel: Incorrect discovery mode in PCReferenceProcessor

Reviewed-by: tschatzl, kbarrett
This commit is contained in:
Albert Mingkun Yang 2022-02-24 17:48:20 +00:00
parent 0b6862e803
commit 20e78f7a8e

View File

@ -851,11 +851,10 @@ public:
BoolObjectClosure* is_subject_to_discovery,
BoolObjectClosure* is_alive_non_header) :
ReferenceProcessor(is_subject_to_discovery,
ParallelGCThreads, // mt processing degree
ParallelGCThreads, // mt discovery degree
true, // atomic_discovery
is_alive_non_header) {
}
ParallelGCThreads, // mt processing degree
ParallelGCThreads, // mt discovery degree
false, // concurrent_discovery
is_alive_non_header) {}
template<typename T> bool discover(oop obj, ReferenceType type) {
T* referent_addr = (T*) java_lang_ref_Reference::referent_addr_raw(obj);