提交 a4c5df0e 编写于 作者: S stefank

8026392: Metachunks and Metablocks are using a too large alignment

Reviewed-by: coleenp, jmasa
上级 ef7c07c7
......@@ -33,7 +33,14 @@ class VirtualSpaceNode;
const size_t metadata_chunk_initialize = 0xf7f7f7f7;
size_t Metachunk::object_alignment() {
return ARENA_AMALLOC_ALIGNMENT;
// Must align pointers and sizes to 8,
// so that 64 bit types get correctly aligned.
const size_t alignment = 8;
// Make sure that the Klass alignment also agree.
STATIC_ASSERT(alignment == (size_t)KlassAlignmentInBytes);
return alignment;
}
size_t Metachunk::overhead() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册