Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8006176

Switch to optimal identity hash code generator

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • 10
    • 9
    • hotspot

      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/

            Unassigned Unassigned
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: