8027911: Assertion in the collector policy when running gc/arguments/TestMaxNewSize.java
authorjwilhelm
Sun, 10 Nov 2013 00:07:29 +0100
changeset 21566 4463f810db82
parent 21563 ccbd86010788
child 21567 938a7ca4d2aa
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
hotspot/src/share/vm/memory/collectorPolicy.cpp
--- 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) {