src/hotspot/cpu/x86/relocInfo_x86.cpp
changeset 58015 dd84de796f2c
parent 54786 ebf733a324d4
equal deleted inserted replaced
58014:aba258cd7df8 58015:dd84de796f2c
    49       *pd_address_in_code() = x;
    49       *pd_address_in_code() = x;
    50     }
    50     }
    51   } else if (which == Assembler::narrow_oop_operand) {
    51   } else if (which == Assembler::narrow_oop_operand) {
    52     address disp = Assembler::locate_operand(addr(), which);
    52     address disp = Assembler::locate_operand(addr(), which);
    53     // both compressed oops and compressed classes look the same
    53     // both compressed oops and compressed classes look the same
    54     if (Universe::heap()->is_in_reserved((oop)x)) {
    54     if (CompressedOops::is_in((void*)x)) {
    55     if (verify_only) {
    55     if (verify_only) {
    56       guarantee(*(uint32_t*) disp == CompressedOops::encode((oop)x), "instructions must match");
    56       guarantee(*(uint32_t*) disp == CompressedOops::encode((oop)x), "instructions must match");
    57     } else {
    57     } else {
    58       *(int32_t*) disp = CompressedOops::encode((oop)x);
    58       *(int32_t*) disp = CompressedOops::encode((oop)x);
    59     }
    59     }