8205050: ZGC: Incorrect use of RootAccess in ZHeapIterator
authorpliden
Fri, 15 Jun 2018 13:31:50 +0200
changeset 50585 1bddf2ab9ae7
parent 50584 0eae3ed86296
child 50586 4bba6dea2e73
child 56765 d02da43d8b98
8205050: ZGC: Incorrect use of RootAccess in ZHeapIterator Reviewed-by: stefank, eosterlund
src/hotspot/share/gc/z/zHeapIterator.cpp
--- a/src/hotspot/share/gc/z/zHeapIterator.cpp	Fri Jun 15 13:31:43 2018 +0200
+++ b/src/hotspot/share/gc/z/zHeapIterator.cpp	Fri Jun 15 13:31:50 2018 +0200
@@ -63,7 +63,7 @@
   virtual void do_oop(oop* p) {
     // Load barrier needed here for the same reason we
     // need fixup_partial_loads() in ZHeap::mark_end()
-    const oop obj = RootAccess<>::oop_load(p);
+    const oop obj = ZBarrier::load_barrier_on_oop_field(p);
     _iter->push(obj);
     _iter->drain(_cl);
   }