src/share/vm/memory/collectorPolicy.cpp

Print this page
rev 6836 : 8034056: assert(_heap_alignment >= _space_alignment) failed: heap_alignment less than space_alignment
Reviewed-by: tschatzl, sjohanss

*** 181,197 **** // There is only the GenRemSet in Hotspot and only the GenRemSet::CardTable // is supported. // 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 alignment = lcm(os::large_page_size(), alignment); } return alignment; } --- 181,193 ---- // There is only the GenRemSet in Hotspot and only the GenRemSet::CardTable // is supported. // Requirements of any new remembered set implementations must be added here. size_t alignment = GenRemSet::max_alignment_constraint(GenRemSet::CardTable); ! 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); } return alignment; }