changeset 5467:9ca4ae899116

7180621: Hashtable has incorrect alternative hashing threshold default value Reviewed-by: dholmes
author mduigou
date Thu, 28 Jun 2012 16:12:58 -0700
parents a73386183d31
children 9fb1e142ebe6
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	Thu Jun 28 11:41:26 2012 -0700
+++ 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.