8009928: PSR:PERF Increase default string table size

Wed, 17 Apr 2013 08:20:02 -0400

author
hseigel
date
Wed, 17 Apr 2013 08:20:02 -0400
changeset 4958
63e31ce40bdb
parent 4928
f2c0ccccc6b6
child 4959
b80cc96882f7
child 4960
41ed397cc0cd

8009928: PSR:PERF Increase default string table size
Summary: Increase default string table size to 60013 for 64-bit platforms.
Reviewed-by: coleenp, dholmes

src/share/vm/runtime/arguments.cpp file | annotate | diff | comparison | revisions
src/share/vm/utilities/globalDefinitions.hpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/runtime/arguments.cpp	Tue Apr 16 08:59:29 2013 -0700
     1.2 +++ b/src/share/vm/runtime/arguments.cpp	Wed Apr 17 08:20:02 2013 -0400
     1.3 @@ -1901,7 +1901,7 @@
     1.4  
     1.5    // Divide by bucket size to prevent a large size from causing rollover when
     1.6    // calculating amount of memory needed to be allocated for the String table.
     1.7 -  status = status && verify_interval(StringTableSize, defaultStringTableSize,
     1.8 +  status = status && verify_interval(StringTableSize, minimumStringTableSize,
     1.9      (max_uintx / StringTable::bucket_size()), "StringTable size");
    1.10  
    1.11    if (MinHeapFreeRatio > MaxHeapFreeRatio) {
     2.1 --- a/src/share/vm/utilities/globalDefinitions.hpp	Tue Apr 16 08:59:29 2013 -0700
     2.2 +++ b/src/share/vm/utilities/globalDefinitions.hpp	Wed Apr 17 08:20:02 2013 -0400
     2.3 @@ -328,9 +328,10 @@
     2.4  
     2.5  
     2.6  //----------------------------------------------------------------------------------------------------
     2.7 -// Minimum StringTableSize value
     2.8 +// Default and minimum StringTableSize values
     2.9  
    2.10 -const int defaultStringTableSize=1009;
    2.11 +const int defaultStringTableSize = NOT_LP64(1009) LP64_ONLY(60013);
    2.12 +const int minimumStringTableSize=1009;
    2.13  
    2.14  
    2.15  //----------------------------------------------------------------------------------------------------

mercurial