Mercurial > hg > truffle
changeset 8753:919a5f9f36a9
Merge
author | zgu |
---|---|
date | Fri, 15 Mar 2013 17:12:17 -0700 |
parents | 1fc4d4768b90 (current diff) 82f49e8e2c28 (diff) |
children | 82ab039b9680 |
files | |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/memory/metaspace.cpp Fri Mar 15 17:24:40 2013 -0400 +++ b/src/share/vm/memory/metaspace.cpp Fri Mar 15 17:12:17 2013 -0700 @@ -334,6 +334,9 @@ // byte_size is the size of the associated virtualspace. 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 // space at low memory so that other shared images don't conflict. // This is the same address as memory needed for UseCompressedOops but