mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
8231113: Remove CollectedHeap::check_oop_location()
Reviewed-by: stefank, eosterlund, tschatzl
This commit is contained in:
parent
35a9f6864a
commit
b053f09769
9 changed files with 7 additions and 29 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue