changeset 6801:ab4548891480

6883953: java -client -XX:ValueMapInitialSize=0 crashes Summary: Added lower bound check for ValueMapInitialSize Reviewed-by: kvn Contributed-by: ygaevsky@azulsystems.com
author adlertz
date Tue, 20 May 2014 09:35:05 +0200
parents fa14838b03c4
children 05b726bce3e6
files src/share/vm/runtime/arguments.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Tue Sep 30 13:14:22 2014 +0200
+++ b/src/share/vm/runtime/arguments.cpp	Tue May 20 09:35:05 2014 +0200
@@ -2389,6 +2389,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