src/share/classes/java/util/HashMap.java

Print this page
rev 5051 : 7173918: Update Alternative String Hashing Defaults
Summary: Set default alternative string hashing threshold to 512.
Reviewed-by: duke

@@ -184,11 +184,11 @@
      * {@code java.util.althashing.threshold}. A property value of {@code 1}
      * forces alternative hashing to be used at all times whereas
      * {@code 2147483648 } ({@code Integer.MAX_VALUE}) value ensures that
      * alternative hashing is never used.
      */
-    static final int ALTERNATE_HASHING_THRESHOLD_DEFAULT = 0;
+    static final int ALTERNATE_HASHING_THRESHOLD_DEFAULT = 512;
 
     /**
      * holds values which can't be initialized until after VM is booted.
      */
     private static class Holder {