JDK-7180621 : fix broken threshold value in 7180240
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 7u6
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-06-28
  • Updated: 2013-06-26
  • Resolved: 2012-07-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7u45Fixed
Related Reports
Relates :  
Description
The incorrect value was committed (again) for the Hashtable alternative hashing threshold.

Comments
WORK AROUND http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/9ca4ae899116
09-07-2012

SUGGESTED FIX http://cr.openjdk.java.net/~mduigou/7180621/0/webrev/
09-07-2012

SUGGESTED FIX Sent to reviewers email. diff --git a/src/share/classes/java/util/Hashtable.java b/src/share/classes/java/util/Hashtable.java --- a/src/share/classes/java/util/Hashtable.java +++ b/src/share/classes/java/util/Hashtable.java @@ -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.
28-06-2012

EVALUATION update the value to the correct value.
28-06-2012