mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
8224815: Remove non-GC uses of CollectedHeap::is_in_reserved()
Reviewed-by: stefank, coleenp
This commit is contained in:
parent
d19e6eae9e
commit
f869706f5f
55 changed files with 242 additions and 239 deletions
|
@ -57,8 +57,7 @@ inline oop CompressedOops::decode(narrowOop v) {
|
|||
|
||||
inline narrowOop CompressedOops::encode_not_null(oop v) {
|
||||
assert(!is_null(v), "oop value can never be zero");
|
||||
assert(check_obj_alignment(v), "Address not aligned");
|
||||
assert(Universe::heap()->is_in_reserved(v), "Address not in heap");
|
||||
DEBUG_ONLY(Universe::heap()->check_oop_location(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