mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
7196103: NPG: Unable to allocate bit map for parallel garbage collection for the requested heap size
Don't allocate huge class metaspace size by default on x64 Reviewed-by: stefank, jmasa, kvn
This commit is contained in:
parent
12b9a4edbb
commit
6fda647450
4 changed files with 24 additions and 8 deletions
|
@ -858,7 +858,7 @@ jint Universe::initialize_heap() {
|
|||
ReservedSpace Universe::reserve_heap(size_t heap_size, size_t alignment) {
|
||||
// Add in the class metaspace area so the classes in the headers can
|
||||
// be compressed the same as instances.
|
||||
size_t total_reserved = heap_size + ClassMetaspaceSize;
|
||||
size_t total_reserved = align_size_up(heap_size + ClassMetaspaceSize, alignment);
|
||||
char* addr = Universe::preferred_heap_base(total_reserved, Universe::UnscaledNarrowOop);
|
||||
|
||||
ReservedHeapSpace total_rs(total_reserved, alignment, UseLargePages, addr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue