From 2ec0e87f43a00199b9296c7dae84536d113680a2 Mon Sep 17 00:00:00 2001 From: Jesper Wilhelmsson Date: Sun, 10 Nov 2013 00:07:29 +0100 Subject: [PATCH] 8027911: Assertion in the collector policy when running gc/arguments/TestMaxNewSize.java Update NewSize when _initial_gen0_size is changed Reviewed-by: tschatzl, brutisso --- hotspot/src/share/vm/memory/collectorPolicy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotspot/src/share/vm/memory/collectorPolicy.cpp b/hotspot/src/share/vm/memory/collectorPolicy.cpp index 8c3e95a0550..0db0f749697 100644 --- a/hotspot/src/share/vm/memory/collectorPolicy.cpp +++ b/hotspot/src/share/vm/memory/collectorPolicy.cpp @@ -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) {