JDK-8010325 : Remove hash32() method and hash32 int field from java.lang.String
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2013-03-19
  • Updated: 2017-05-17
  • Resolved: 2013-06-12
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 8
8 b96Fixed
Related Reports
Blocks :  
Blocks :  
Relates :  
Description
The alternative string hashing implementation (http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/43bd5ee0205e) added a new public method on String:

    public int hash32()

as well as a new int field (also named, "hash32") to cache the return value for hash32().

After the 8005698 work is complete, the alternative hashing algorithm will no longer be used, and we will be in a position to remove the new public method before it gets baked into the JDK in 8, and remove the new int field, saving heap space.

Comments
ConcurrentHashMap also makes use of hash32(), so we will also need JDK-8005704 to be finished.
30-05-2013