6883953: java -client -XX:ValueMapInitialSize=0 crashes
Summary: Added lower bound check for ValueMapInitialSize
Reviewed-by: kvn
Contributed-by: ygaevsky@azulsystems.com
--- a/hotspot/src/share/vm/runtime/arguments.cpp Mon May 19 13:49:25 2014 -0700
+++ b/hotspot/src/share/vm/runtime/arguments.cpp Tue May 20 09:35:05 2014 +0200
@@ -2363,6 +2363,9 @@
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