343 |
343 |
344 void print_on(outputStream* st) const; |
344 void print_on(outputStream* st) const; |
345 }; |
345 }; |
346 |
346 |
347 // byte_size is the size of the associated virtualspace. |
347 // byte_size is the size of the associated virtualspace. |
348 VirtualSpaceNode::VirtualSpaceNode(size_t byte_size) : _top(NULL), _next(NULL), _rs(0), _container_count(0) { |
348 VirtualSpaceNode::VirtualSpaceNode(size_t byte_size) : _top(NULL), _next(NULL), _rs(), _container_count(0) { |
349 // align up to vm allocation granularity |
349 // align up to vm allocation granularity |
350 byte_size = align_size_up(byte_size, os::vm_allocation_granularity()); |
350 byte_size = align_size_up(byte_size, os::vm_allocation_granularity()); |
351 |
351 |
352 // This allocates memory with mmap. For DumpSharedspaces, try to reserve |
352 // This allocates memory with mmap. For DumpSharedspaces, try to reserve |
353 // configurable address, generally at the top of the Java heap so other |
353 // configurable address, generally at the top of the Java heap so other |