--- a/src/hotspot/share/memory/heapShared.inline.hpp Tue Sep 17 09:51:02 2019 +0200
+++ b/src/hotspot/share/memory/heapShared.inline.hpp Tue Sep 17 09:51:02 2019 +0200
@@ -27,6 +27,7 @@
#include "oops/compressedOops.inline.hpp"
#include "memory/heapShared.hpp"
+#include "utilities/align.hpp"
#if INCLUDE_G1GC
#include "gc/g1/g1Allocator.inline.hpp"
#endif
@@ -40,7 +41,7 @@
inline oop HeapShared::decode_from_archive(narrowOop v) {
assert(!CompressedOops::is_null(v), "narrow oop value can never be zero");
oop result = (oop)(void*)((uintptr_t)_narrow_oop_base + ((uintptr_t)v << _narrow_oop_shift));
- assert(check_obj_alignment(result), "address not aligned: " INTPTR_FORMAT, p2i((void*) result));
+ assert(is_object_aligned(result), "address not aligned: " INTPTR_FORMAT, p2i((void*) result));
return result;
}