提交 664cf863 编写于 作者: Z zgu

8009614: nsk/split_verifier/stress/ifelse/ifelse002_30 fails with...

8009614: nsk/split_verifier/stress/ifelse/ifelse002_30 fails with 'assert((size & (granularity - 1)) == 0) failed: size not aligned to os::vm_allocation_granularity()
Summary: Align up vm allocation size to os defined granularity
Reviewed-by: dholmes, coleenp
上级 8458636d
...@@ -334,6 +334,9 @@ class VirtualSpaceNode : public CHeapObj<mtClass> { ...@@ -334,6 +334,9 @@ class VirtualSpaceNode : public CHeapObj<mtClass> {
// byte_size is the size of the associated virtualspace. // byte_size is the size of the associated virtualspace.
VirtualSpaceNode::VirtualSpaceNode(size_t byte_size) : _top(NULL), _next(NULL), _rs(0) { VirtualSpaceNode::VirtualSpaceNode(size_t byte_size) : _top(NULL), _next(NULL), _rs(0) {
// align up to vm allocation granularity
byte_size = align_size_up(byte_size, os::vm_allocation_granularity());
// This allocates memory with mmap. For DumpSharedspaces, allocate the // This allocates memory with mmap. For DumpSharedspaces, allocate the
// space at low memory so that other shared images don't conflict. // space at low memory so that other shared images don't conflict.
// This is the same address as memory needed for UseCompressedOops but // This is the same address as memory needed for UseCompressedOops but
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册