8034056: assert(_heap_alignment >= _space_alignment) failed: heap_alignment less than space_alignment

Reviewed-by: tschatzl, sjohanss
This commit is contained in:
Jon Masamitsu 2014-08-05 15:41:12 -07:00
parent 94d0494b27
commit e57b1279b2

View File

@ -176,13 +176,9 @@ size_t CollectorPolicy::compute_heap_alignment() {
size_t alignment = GenRemSet::max_alignment_constraint();
// Parallel GC does its own alignment of the generations to avoid requiring a
// large page (256M on some platforms) for the permanent generation. The
// other collectors should also be updated to do their own alignment and then
// this use of lcm() should be removed.
if (UseLargePages && !UseParallelGC) {
if (UseLargePages) {
// In presence of large pages we have to make sure that our
// alignment is large page aware
// alignment is large page aware.
alignment = lcm(os::large_page_size(), alignment);
}