comparison src/share/vm/memory/collectorPolicy.cpp @ 5655:3ad2b68d107e

8027911: Assertion in the collector policy when running gc/arguments/TestMaxNewSize.java Summary: Update NewSize when _initial_gen0_size is changed Reviewed-by: tschatzl, brutisso
author jwilhelm
date Sun, 10 Nov 2013 00:07:29 +0100
parents 8f07aa079343
children 236cecd9ec97
comparison
equal deleted inserted replaced
47:5e00042db012 48:02a879588740
619 _initial_gen1_size = MAX2(_initial_gen1_size, _min_gen1_size); 619 _initial_gen1_size = MAX2(_initial_gen1_size, _min_gen1_size);
620 _initial_gen1_size = MIN2(_initial_gen1_size, _max_gen1_size); 620 _initial_gen1_size = MIN2(_initial_gen1_size, _max_gen1_size);
621 621
622 // Write back to flags if necessary 622 // Write back to flags if necessary
623 if (NewSize != _initial_gen0_size) { 623 if (NewSize != _initial_gen0_size) {
624 FLAG_SET_ERGO(uintx, NewSize, _max_gen0_size); 624 FLAG_SET_ERGO(uintx, NewSize, _initial_gen0_size);
625 } 625 }
626 626
627 if (MaxNewSize != _max_gen0_size) { 627 if (MaxNewSize != _max_gen0_size) {
628 FLAG_SET_ERGO(uintx, MaxNewSize, _max_gen0_size); 628 FLAG_SET_ERGO(uintx, MaxNewSize, _max_gen0_size);
629 } 629 }