src/hotspot/cpu/x86/relocInfo_x86.cpp
changeset 49592 77fb0be7d19f
parent 47881 0ce0ac68ace7
child 54780 f8d182aedc92
--- a/src/hotspot/cpu/x86/relocInfo_x86.cpp	Fri Mar 23 12:55:39 2018 +0100
+++ b/src/hotspot/cpu/x86/relocInfo_x86.cpp	Thu Mar 15 21:24:10 2018 +0100
@@ -26,6 +26,7 @@
 #include "asm/macroAssembler.hpp"
 #include "code/relocInfo.hpp"
 #include "nativeInst_x86.hpp"
+#include "oops/compressedOops.inline.hpp"
 #include "oops/klass.inline.hpp"
 #include "oops/oop.inline.hpp"
 #include "runtime/safepoint.hpp"
@@ -51,9 +52,9 @@
     // both compressed oops and compressed classes look the same
     if (Universe::heap()->is_in_reserved((oop)x)) {
     if (verify_only) {
-      guarantee(*(uint32_t*) disp == oopDesc::encode_heap_oop((oop)x), "instructions must match");
+      guarantee(*(uint32_t*) disp == CompressedOops::encode((oop)x), "instructions must match");
     } else {
-      *(int32_t*) disp = oopDesc::encode_heap_oop((oop)x);
+      *(int32_t*) disp = CompressedOops::encode((oop)x);
     }
   } else {
       if (verify_only) {