Mercurial > hg > graal-compiler
diff src/share/vm/runtime/arguments.cpp @ 6998:49f0841607b7
Merge.
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 20 Nov 2012 22:50:44 +0100 |
parents | edb2d7ed9a01 2cb439954abf |
children | 7d815d842ee0 |
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp Tue Nov 20 22:50:09 2012 +0100 +++ b/src/share/vm/runtime/arguments.cpp Tue Nov 20 22:50:44 2012 +0100 @@ -24,6 +24,7 @@ #include "precompiled.hpp" #include "classfile/javaAssertions.hpp" +#include "classfile/symbolTable.hpp" #include "compiler/compilerOracle.hpp" #include "memory/allocation.inline.hpp" #include "memory/cardTableRS.hpp" @@ -1862,6 +1863,11 @@ status = status && verify_percentage(MinHeapFreeRatio, "MinHeapFreeRatio"); status = status && verify_percentage(MaxHeapFreeRatio, "MaxHeapFreeRatio"); + // Divide by bucket size to prevent a large size from causing rollover when + // calculating amount of memory needed to be allocated for the String table. + status = status && verify_interval(StringTableSize, defaultStringTableSize, + (max_uintx / StringTable::bucket_size()), "StringTable size"); + if (MinHeapFreeRatio > MaxHeapFreeRatio) { jio_fprintf(defaultStream::error_stream(), "MinHeapFreeRatio (" UINTX_FORMAT ") must be less than or "