8230730: UseCompressedOops test crash with assertion failure
Reviewed-by: stefank, eosterlund
--- a/src/hotspot/share/oops/compressedOops.cpp Sat Sep 07 15:44:04 2019 +0200
+++ b/src/hotspot/share/oops/compressedOops.cpp Sat Sep 07 10:04:07 2019 -0400
@@ -79,7 +79,7 @@
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");