8231113: Remove CollectedHeap::check_oop_location()

Reviewed-by: stefank, eosterlund, tschatzl
This commit is contained in:
Per Lidén 2019-09-19 16:05:47 +02:00
parent 35a9f6864a
commit b053f09769
9 changed files with 7 additions and 29 deletions

View file

@ -58,7 +58,8 @@ inline oop CompressedOops::decode(narrowOop v) {
inline narrowOop CompressedOops::encode_not_null(oop v) {
assert(!is_null(v), "oop value can never be zero");
DEBUG_ONLY(Universe::heap()->check_oop_location(v);)
assert(is_object_aligned(v), "address not aligned: " PTR_FORMAT, p2i((void*)v));
assert(is_in(v), "address not in heap range: " PTR_FORMAT, p2i((void*)v));
uint64_t pd = (uint64_t)(pointer_delta((void*)v, (void*)base(), 1));
assert(OopEncodingHeapMax > pd, "change encoding max if new encoding");
uint64_t result = pd >> shift();