mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
Merge
This commit is contained in:
commit
dcd1fc358f
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue