< prev index next >
src/hotspot/share/memory/heapShared.inline.hpp
Print this page
*** 25,34 ****
--- 25,35 ----
#ifndef SHARE_MEMORY_HEAPSHARED_INLINE_HPP
#define SHARE_MEMORY_HEAPSHARED_INLINE_HPP
#include "oops/compressedOops.inline.hpp"
#include "memory/heapShared.hpp"
+ #include "utilities/align.hpp"
#if INCLUDE_G1GC
#include "gc/g1/g1Allocator.inline.hpp"
#endif
#if INCLUDE_CDS_JAVA_HEAP
*** 38,48 ****
}
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));
return result;
}
#endif
--- 39,49 ----
}
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(is_object_aligned(result), "address not aligned: " INTPTR_FORMAT, p2i((void*) result));
return result;
}
#endif
< prev index next >