8230730: UseCompressedOops test crash with assertion failure
authorzgu
Sat, 07 Sep 2019 10:04:07 -0400
changeset 58039 c7374ff3f3a3
parent 58038 aa3715655834
child 58040 d99af76d7689
8230730: UseCompressedOops test crash with assertion failure Reviewed-by: stefank, eosterlund
src/hotspot/share/oops/compressedOops.cpp
--- 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");