6883953: java -client -XX:ValueMapInitialSize=0 crashes
authoradlertz
Tue, 20 May 2014 09:35:05 +0200
changeset 24486 0fd7d077f8a9
parent 24485 165c44e3edbb
child 24487 71ff0bd674eb
6883953: java -client -XX:ValueMapInitialSize=0 crashes Summary: Added lower bound check for ValueMapInitialSize Reviewed-by: kvn Contributed-by: ygaevsky@azulsystems.com
hotspot/src/share/vm/runtime/arguments.cpp
--- 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