# HG changeset patch # User hseigel # Date 1366201202 14400 # Node ID 584161d608a5020b755d58d3996707128cf2c71c # Parent f32234a1018aadd9d35fca111d31a3b704bcb282 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 f32234a1018a -r 584161d608a5 hotspot/src/share/vm/runtime/arguments.cpp --- a/hotspot/src/share/vm/runtime/arguments.cpp Tue Apr 16 08:59:29 2013 -0700 +++ b/hotspot/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 f32234a1018a -r 584161d608a5 hotspot/src/share/vm/utilities/globalDefinitions.hpp --- a/hotspot/src/share/vm/utilities/globalDefinitions.hpp Tue Apr 16 08:59:29 2013 -0700 +++ b/hotspot/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; //----------------------------------------------------------------------------------------------------