changeset 4591:63e31ce40bdb

8009928: PSR:PERF Increase default string table size Summary: Increase default string table size to 60013 for 64-bit platforms. Reviewed-by: coleenp, dholmes
author hseigel
date Wed, 17 Apr 2013 08:20:02 -0400
parents f2c0ccccc6b6
children b80cc96882f7 41ed397cc0cd
files src/share/vm/runtime/arguments.cpp src/share/vm/utilities/globalDefinitions.hpp
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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) {
--- 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;
 
 
 //----------------------------------------------------------------------------------------------------