src/share/classes/java/util/WeakHashMap.java
Print this page
rev 5051 : 7173918: Update Alternative String Hashing Defaults
Summary: Set default alternative string hashing threshold to 512.
Reviewed-by: duke
*** 193,203 ****
* {@code java.util.althashing.threshold} to an integer value. 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;
/**
* holds values which can't be initialized until after VM is booted.
*/
private static class Holder {
--- 193,203 ----
* {@code java.util.althashing.threshold} to an integer value. 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 = 512;
/**
* holds values which can't be initialized until after VM is booted.
*/
private static class Holder {