8009928: PSR:PERF Increase default string table size
authorhseigel
Wed, 17 Apr 2013 08:20:02 -0400
changeset 17022 584161d608a5
parent 16992 f32234a1018a
child 17023 aab2b408ebfe
child 17024 49cbeca23983
8009928: PSR:PERF Increase default string table size Summary: Increase default string table size to 60013 for 64-bit platforms. Reviewed-by: coleenp, dholmes
hotspot/src/share/vm/runtime/arguments.cpp
hotspot/src/share/vm/utilities/globalDefinitions.hpp
--- 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) {
--- 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;
 
 
 //----------------------------------------------------------------------------------------------------