--- old/src/hotspot/cpu/x86/relocInfo_x86.cpp 2018-03-21 16:40:55.139888490 +0100 +++ new/src/hotspot/cpu/x86/relocInfo_x86.cpp 2018-03-21 16:40:54.939888497 +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) {