From 4a9cbe7745a7538f87e7099dbe11bef9e5985cef Mon Sep 17 00:00:00 2001 From: jmasa Date: Tue, 5 Aug 2014 15:41:12 -0700 Subject: [PATCH] 8034056: assert(_heap_alignment >= _space_alignment) failed: heap_alignment less than space_alignment Reviewed-by: tschatzl, tamao --- src/share/vm/memory/collectorPolicy.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/share/vm/memory/collectorPolicy.cpp b/src/share/vm/memory/collectorPolicy.cpp index 53fcf4f76..db6af88ee 100644 --- a/src/share/vm/memory/collectorPolicy.cpp +++ b/src/share/vm/memory/collectorPolicy.cpp @@ -183,13 +183,9 @@ size_t CollectorPolicy::compute_heap_alignment() { // Requirements of any new remembered set implementations must be added here. size_t alignment = GenRemSet::max_alignment_constraint(GenRemSet::CardTable); - // 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) { - // in presence of large pages we have to make sure that our - // alignment is large page aware + if (UseLargePages) { + // In presence of large pages we have to make sure that our + // alignment is large page aware. alignment = lcm(os::large_page_size(), alignment); } -- GitLab