# HG changeset patch # User zgu # Date 1567818735 14400 # Fri Sep 06 21:12:15 2019 -0400 # Node ID ffd5f228275f040657a83152b4330b283d0503d2 # Parent 1ebc2f316e45e357056cd9ae41ea43461901cf50 8230730: UseCompressedOops test crash with assertion failure diff --git a/src/hotspot/share/oops/compressedOops.cpp b/src/hotspot/share/oops/compressedOops.cpp --- a/src/hotspot/share/oops/compressedOops.cpp +++ b/src/hotspot/share/oops/compressedOops.cpp @@ -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");