8230730: UseCompressedOops test crash with assertion failure

Reviewed-by: stefank, eosterlund
This commit is contained in:
Zhengyu Gu 2019-09-07 10:04:07 -04:00
parent c788d9841c
commit ecf83c94b8

View file

@ -79,7 +79,7 @@ void CompressedOops::initialize(const ReservedHeapSpace& heap_space) {
false));
// base() is one page below the heap.
assert((intptr_t)base() <= (intptr_t)(_heap_address_range.start() - os::vm_page_size()) ||
assert((intptr_t)base() <= ((intptr_t)_heap_address_range.start() - os::vm_page_size()) ||
base() == NULL, "invalid value");
assert(shift() == LogMinObjAlignmentInBytes ||
shift() == 0, "invalid value");