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
--- a/hotspot/src/share/vm/memory/collectorPolicy.cpp Thu Nov 07 15:17:10 2013 +0100
+++ b/hotspot/src/share/vm/memory/collectorPolicy.cpp Sun Nov 10 00:07:29 2013 +0100
@@ -621,7 +621,7 @@
// 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) {