Skip to content

Commit 20e78f7

Browse files
committedFeb 24, 2022
8282307: Parallel: Incorrect discovery mode in PCReferenceProcessor
Reviewed-by: tschatzl, kbarrett
1 parent 0b6862e commit 20e78f7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
 

‎src/hotspot/share/gc/parallel/psParallelCompact.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -851,11 +851,10 @@ class PCReferenceProcessor: public ReferenceProcessor {
851851
BoolObjectClosure* is_subject_to_discovery,
852852
BoolObjectClosure* is_alive_non_header) :
853853
ReferenceProcessor(is_subject_to_discovery,
854-
ParallelGCThreads, // mt processing degree
855-
ParallelGCThreads, // mt discovery degree
856-
true, // atomic_discovery
857-
is_alive_non_header) {
858-
}
854+
ParallelGCThreads, // mt processing degree
855+
ParallelGCThreads, // mt discovery degree
856+
false, // concurrent_discovery
857+
is_alive_non_header) {}
859858

860859
template<typename T> bool discover(oop obj, ReferenceType type) {
861860
T* referent_addr = (T*) java_lang_ref_Reference::referent_addr_raw(obj);

0 commit comments

Comments
 (0)
Please sign in to comment.