Skip to content

Commit

Permalink
Increment encountered count for correct worker
Browse files Browse the repository at this point in the history
  • Loading branch information
earthling-amzn committed Jan 4, 2024
1 parent 13c1148 commit 7a48c6b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ bool ShenandoahReferenceProcessor::discover_reference(oop reference, ReferenceTy

log_trace(gc, ref)("Encountered Reference: " PTR_FORMAT " (%s)", p2i(reference), reference_type_name(type));
uint worker_id = WorkerThread::worker_id();
_ref_proc_thread_locals->inc_encountered(type);
_ref_proc_thread_locals[worker_id].inc_encountered(type);

if (UseCompressedOops) {
return discover<narrowOop>(reference, type, worker_id);
Expand Down

0 comments on commit 7a48c6b

Please sign in to comment.