< prev index next >

src/hotspot/cpu/x86/relocInfo_x86.cpp

Print this page

        

@@ -49,11 +49,11 @@
       *pd_address_in_code() = x;
     }
   } else if (which == Assembler::narrow_oop_operand) {
     address disp = Assembler::locate_operand(addr(), which);
     // both compressed oops and compressed classes look the same
-    if (CompressedOops::is_in((void*)x)) {
+    if (Universe::heap()->is_in_reserved((oop)x)) {
     if (verify_only) {
       guarantee(*(uint32_t*) disp == CompressedOops::encode((oop)x), "instructions must match");
     } else {
       *(int32_t*) disp = CompressedOops::encode((oop)x);
     }
< prev index next >