# HG changeset patch # User hseigel # Date 1366201202 14400 # Node ID 63e31ce40bdb145edcdb58b491167becc2b53531 # Parent f2c0ccccc6b67d20f700157520fd098730c4781a 8009928: PSR:PERF Increase default string table size Summary: Increase default string table size to 60013 for 64-bit platforms. Reviewed-by: coleenp, dholmes diff -r f2c0ccccc6b6 -r 63e31ce40bdb src/share/vm/runtime/arguments.cpp --- a/src/share/vm/runtime/arguments.cpp Tue Apr 16 08:59:29 2013 -0700 +++ b/src/share/vm/runtime/arguments.cpp Wed Apr 17 08:20:02 2013 -0400 @@ -1901,7 +1901,7 @@ // 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, + status = status && verify_interval(StringTableSize, minimumStringTableSize, (max_uintx / StringTable::bucket_size()), "StringTable size"); if (MinHeapFreeRatio > MaxHeapFreeRatio) { diff -r f2c0ccccc6b6 -r 63e31ce40bdb src/share/vm/utilities/globalDefinitions.hpp --- a/src/share/vm/utilities/globalDefinitions.hpp Tue Apr 16 08:59:29 2013 -0700 +++ b/src/share/vm/utilities/globalDefinitions.hpp Wed Apr 17 08:20:02 2013 -0400 @@ -328,9 +328,10 @@ //---------------------------------------------------------------------------------------------------- -// Minimum StringTableSize value +// Default and minimum StringTableSize values -const int defaultStringTableSize=1009; +const int defaultStringTableSize = NOT_LP64(1009) LP64_ONLY(60013); +const int minimumStringTableSize=1009; //----------------------------------------------------------------------------------------------------