src/hotspot/share/gc/shared/cardTableRS.cpp
changeset 49592 77fb0be7d19f
parent 49455 848864ed9b17
child 49733 6f0a3ea5ab75
--- a/src/hotspot/share/gc/shared/cardTableRS.cpp	Fri Mar 23 12:55:39 2018 +0100
+++ b/src/hotspot/share/gc/shared/cardTableRS.cpp	Thu Mar 15 21:24:10 2018 +0100
@@ -28,6 +28,7 @@
 #include "gc/shared/generation.hpp"
 #include "gc/shared/space.inline.hpp"
 #include "memory/allocation.inline.hpp"
+#include "oops/access.inline.hpp"
 #include "oops/oop.inline.hpp"
 #include "runtime/atomic.hpp"
 #include "runtime/java.hpp"
@@ -351,7 +352,7 @@
            "Error: jp " PTR_FORMAT " should be within "
            "[_begin, _end) = [" PTR_FORMAT "," PTR_FORMAT ")",
            p2i(jp), p2i(_begin), p2i(_end));
-    oop obj = oopDesc::load_decode_heap_oop(p);
+    oop obj = RawAccess<>::oop_load(p);
     guarantee(obj == NULL || (HeapWord*)obj >= _boundary,
               "pointer " PTR_FORMAT " at " PTR_FORMAT " on "
               "clean card crosses boundary" PTR_FORMAT,