Mercurial > hg > truffle
diff src/share/vm/memory/universe.cpp @ 6736:11fb740ce98f
7196103: NPG: Unable to allocate bit map for parallel garbage collection for the requested heap size
Summary: Don't allocate huge class metaspace size by default on x64
Reviewed-by: stefank, jmasa, kvn
author | coleenp |
---|---|
date | Fri, 07 Sep 2012 16:42:25 -0400 |
parents | aed758eda82a |
children | 2a48c84f1d04 |
line wrap: on
line diff
--- a/src/share/vm/memory/universe.cpp Fri Sep 07 12:04:16 2012 -0400 +++ b/src/share/vm/memory/universe.cpp Fri Sep 07 16:42:25 2012 -0400 @@ -858,7 +858,7 @@ 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);