Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/parallelScavenge/generationSizer.cpp @ 13069:ee527493b36d
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: jmasa, tschatzl
author | sjohanss |
---|---|
date | Fri, 08 Nov 2013 17:46:53 +0100 |
parents | 8f07aa079343 |
children |
comparison
equal
deleted
inserted
replaced
13068:11b116661830 | 13069:ee527493b36d |
---|---|
73 // Can a page size be something else than a power of two? | 73 // Can a page size be something else than a power of two? |
74 assert(is_power_of_2((intptr_t)page_sz), "must be a power of 2"); | 74 assert(is_power_of_2((intptr_t)page_sz), "must be a power of 2"); |
75 size_t new_alignment = round_to(page_sz, _gen_alignment); | 75 size_t new_alignment = round_to(page_sz, _gen_alignment); |
76 if (new_alignment != _gen_alignment) { | 76 if (new_alignment != _gen_alignment) { |
77 _gen_alignment = new_alignment; | 77 _gen_alignment = new_alignment; |
78 _space_alignment = new_alignment; | |
78 // Redo everything from the start | 79 // Redo everything from the start |
79 initialize_flags(); | 80 initialize_flags(); |
80 } | 81 } |
81 TwoGenerationCollectorPolicy::initialize_size_info(); | 82 TwoGenerationCollectorPolicy::initialize_size_info(); |
82 | 83 |