提交 f019ce13 编写于 作者: A adlertz

6883953: java -client -XX:ValueMapInitialSize=0 crashes

Summary: Added lower bound check for ValueMapInitialSize
Reviewed-by: kvn
Contributed-by: ygaevsky@azulsystems.com
上级 e4292c3f
...@@ -2389,6 +2389,9 @@ bool Arguments::check_vm_args_consistency() { ...@@ -2389,6 +2389,9 @@ bool Arguments::check_vm_args_consistency() {
status = status && verify_percentage(MarkSweepDeadRatio, "MarkSweepDeadRatio"); status = status && verify_percentage(MarkSweepDeadRatio, "MarkSweepDeadRatio");
status = status && verify_min_value(MarkSweepAlwaysCompactCount, 1, "MarkSweepAlwaysCompactCount"); status = status && verify_min_value(MarkSweepAlwaysCompactCount, 1, "MarkSweepAlwaysCompactCount");
#ifdef COMPILER1
status = status && verify_min_value(ValueMapInitialSize, 1, "ValueMapInitialSize");
#endif
if (PrintNMTStatistics) { if (PrintNMTStatistics) {
#if INCLUDE_NMT #if INCLUDE_NMT
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册