From f019ce131ee76d41b088dd06d9029033b474da07 Mon Sep 17 00:00:00 2001 From: adlertz Date: Tue, 20 May 2014 09:35:05 +0200 Subject: [PATCH] 6883953: java -client -XX:ValueMapInitialSize=0 crashes Summary: Added lower bound check for ValueMapInitialSize Reviewed-by: kvn Contributed-by: ygaevsky@azulsystems.com --- src/share/vm/runtime/arguments.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/share/vm/runtime/arguments.cpp b/src/share/vm/runtime/arguments.cpp index 3a77d80f3..312162143 100644 --- a/src/share/vm/runtime/arguments.cpp +++ b/src/share/vm/runtime/arguments.cpp @@ -2389,6 +2389,9 @@ bool Arguments::check_vm_args_consistency() { status = status && verify_percentage(MarkSweepDeadRatio, "MarkSweepDeadRatio"); status = status && verify_min_value(MarkSweepAlwaysCompactCount, 1, "MarkSweepAlwaysCompactCount"); +#ifdef COMPILER1 + status = status && verify_min_value(ValueMapInitialSize, 1, "ValueMapInitialSize"); +#endif if (PrintNMTStatistics) { #if INCLUDE_NMT -- GitLab