src/share/vm/gc_implementation/parallelScavenge/generationSizer.cpp

Print this page
rev 5623 : 8027960: Assertion assert(end >= start) failed during nightly testing on solaris
Summary: Needed to update _space_alignment in generation sizer to ensure correct sizing of spaces.
Reviewed-by:

@@ -73,10 +73,11 @@
   // Can a page size be something else than a power of two?
   assert(is_power_of_2((intptr_t)page_sz), "must be a power of 2");
   size_t new_alignment = round_to(page_sz, _gen_alignment);
   if (new_alignment != _gen_alignment) {
     _gen_alignment = new_alignment;
+    _space_alignment = new_alignment;
     // Redo everything from the start
     initialize_flags();
   }
   TwoGenerationCollectorPolicy::initialize_size_info();