changeset 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 28674af341ac
children 236cecd9ec97
files src/share/vm/memory/collectorPolicy.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/memory/collectorPolicy.cpp	Thu Nov 07 15:17:10 2013 +0100
+++ b/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) {