hotspot/src/share/vm/gc/cms/promotionInfo.hpp
changeset 33105 294e48b4f704
parent 30764 fec48bf5a827
child 34129 41cd6f08f3e8
equal deleted inserted replaced
33104:a7c0f60a1294 33105:294e48b4f704
    71       // The next pointer is a compressed oop stored in the top 32 bits
    71       // The next pointer is a compressed oop stored in the top 32 bits
    72       res = (PromotedObject*)oopDesc::decode_heap_oop(_data._narrow_next);
    72       res = (PromotedObject*)oopDesc::decode_heap_oop(_data._narrow_next);
    73     } else {
    73     } else {
    74       res = (PromotedObject*)(_next & next_mask);
    74       res = (PromotedObject*)(_next & next_mask);
    75     }
    75     }
    76     assert(oop(res)->is_oop_or_null(true /* ignore mark word */), err_msg("Expected an oop or NULL at " PTR_FORMAT, p2i(oop(res))));
    76     assert(oop(res)->is_oop_or_null(true /* ignore mark word */), "Expected an oop or NULL at " PTR_FORMAT, p2i(oop(res)));
    77     return res;
    77     return res;
    78   }
    78   }
    79   inline void setNext(PromotedObject* x) {
    79   inline void setNext(PromotedObject* x) {
    80     assert(((intptr_t)x & ~next_mask) == 0, "Conflict in bit usage, "
    80     assert(((intptr_t)x & ~next_mask) == 0, "Conflict in bit usage, "
    81            "or insufficient alignment of objects");
    81            "or insufficient alignment of objects");