提交 4a9cbe77 编写于 作者: J jmasa

8034056: assert(_heap_alignment >= _space_alignment) failed: heap_alignment...

8034056: assert(_heap_alignment >= _space_alignment) failed: heap_alignment less than space_alignment
Reviewed-by: tschatzl, tamao
上级 0fe44690
...@@ -183,13 +183,9 @@ size_t CollectorPolicy::compute_heap_alignment() { ...@@ -183,13 +183,9 @@ size_t CollectorPolicy::compute_heap_alignment() {
// Requirements of any new remembered set implementations must be added here. // Requirements of any new remembered set implementations must be added here.
size_t alignment = GenRemSet::max_alignment_constraint(GenRemSet::CardTable); size_t alignment = GenRemSet::max_alignment_constraint(GenRemSet::CardTable);
// Parallel GC does its own alignment of the generations to avoid requiring a if (UseLargePages) {
// large page (256M on some platforms) for the permanent generation. The // In presence of large pages we have to make sure that our
// other collectors should also be updated to do their own alignment and then // alignment is large page aware.
// 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
alignment = lcm(os::large_page_size(), alignment); alignment = lcm(os::large_page_size(), alignment);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册