8027911: Assertion in the collector policy when running gc/arguments/TestMaxNewSize.java

Update NewSize when _initial_gen0_size is changed

Reviewed-by: tschatzl, brutisso
This commit is contained in:
Jesper Wilhelmsson 2013-11-10 00:07:29 +01:00
parent 6f46da6198
commit 2ec0e87f43

View File

@ -621,7 +621,7 @@ void TwoGenerationCollectorPolicy::initialize_size_info() {
// Write back to flags if necessary
if (NewSize != _initial_gen0_size) {
FLAG_SET_ERGO(uintx, NewSize, _max_gen0_size);
FLAG_SET_ERGO(uintx, NewSize, _initial_gen0_size);
}
if (MaxNewSize != _max_gen0_size) {