changeset 5385:38d2807c7801

7180621: Hashtable has incorrect alternative hashing threshold default value Reviewed-by: dholmes
author mduigou
date Thu, 28 Jun 2012 16:12:58 -0700
parents 7cb9be8b6478
children 5b74dcc8191d
files src/share/classes/java/util/Hashtable.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/Hashtable.java	Mon Jul 09 11:40:07 2012 +0400
+++ b/src/share/classes/java/util/Hashtable.java	Thu Jun 28 16:12:58 2012 -0700
@@ -167,13 +167,13 @@
      * The default threshold of map capacity above which alternative hashing is
      * used for String keys. Alternative hashing reduces the incidence of
      * collisions due to weak hash code calculation for String keys.
-     * <p/>
+     * <p>
      * This value may be overridden by defining the system property
      * {@code jdk.map.althashing.threshold}. A property value of {@code 1}
      * forces alternative hashing to be used at all times whereas
      * {@code -1} value ensures that alternative hashing is never used.
      */
-    static final int ALTERNATIVE_HASHING_THRESHOLD_DEFAULT = 512;
+    static final int ALTERNATIVE_HASHING_THRESHOLD_DEFAULT = Integer.MAX_VALUE;
 
     /**
      * holds values which can't be initialized until after VM is booted.