From e02646e05bcc756de33bc7fd7a4be5eba72e3a48 Mon Sep 17 00:00:00 2001 From: Thomas Schatzl Date: Mon, 2 Jul 2018 09:38:20 +0200 Subject: [PATCH] 8203848: Missing remembered set entry in j.l.ref.references after JDK-8203028 Collect remembered sets for discovered fields while adding them to the list of discovered references. Reviewed-by: kbarrett, eosterlund --- src/hotspot/share/gc/shared/referenceProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/gc/shared/referenceProcessor.cpp b/src/hotspot/share/gc/shared/referenceProcessor.cpp index 007231530dd..f48f7eee597 100644 --- a/src/hotspot/share/gc/shared/referenceProcessor.cpp +++ b/src/hotspot/share/gc/shared/referenceProcessor.cpp @@ -1033,7 +1033,7 @@ ReferenceProcessor::add_to_discovered_list_mt(DiscoveredList& refs_list, // The last ref must have its discovered field pointing to itself. oop next_discovered = (current_head != NULL) ? current_head : obj; - oop retest = RawAccess<>::oop_atomic_cmpxchg(next_discovered, discovered_addr, oop(NULL)); + oop retest = HeapAccess::oop_atomic_cmpxchg(next_discovered, discovered_addr, oop(NULL)); if (retest == NULL) { // This thread just won the right to enqueue the object.