-
Enhancement
-
Resolution: Duplicate
-
P4
-
9
Reported by one of our customers, relying heavily on System.identityHashCode(...) for their performance. They figured out the global state in current identity hashcode generator penalizes scalability. Their workaround is to switch -XX:hashCode=5 to the thread-local Marsaglia's XorShift generator.
This issues considers switching -XX:hashCode=5 (or some other generator) by default.
See also: http://cr.openjdk.java.net/~shade/8006176/randomicity/
This issues considers switching -XX:hashCode=5 (or some other generator) by default.
See also: http://cr.openjdk.java.net/~shade/8006176/randomicity/
- duplicates
-
JDK-8003985 Support @Contended Annotation - JEP 142
- Closed
- relates to
-
JDK-7161302 Bad multi-threaded performance of Object.hashCode
- Closed