changeset 50920:d9160a3c97c1

8203848: Missing remembered set entry in j.l.ref.references after JDK-8203028 Summary: Collect remembered sets for discovered fields while adding them to the list of discovered references. Reviewed-by: kbarrett, eosterlund
author tschatzl
date Mon, 02 Jul 2018 09:38:20 +0200
parents 803cfa425026
children 7f462e8383f6
files src/hotspot/share/gc/shared/referenceProcessor.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/gc/shared/referenceProcessor.cpp	Mon Jul 02 09:28:23 2018 +0200
+++ b/src/hotspot/share/gc/shared/referenceProcessor.cpp	Mon Jul 02 09:38:20 2018 +0200
@@ -1033,7 +1033,7 @@
   // 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<AS_NO_KEEPALIVE>::oop_atomic_cmpxchg(next_discovered, discovered_addr, oop(NULL));
 
   if (retest == NULL) {
     // This thread just won the right to enqueue the object.