Switch to optimal identity hash code generator

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • 10
    • Affects Version/s: 9
    • Component/s: 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/

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

              Created:
              Updated:
              Resolved: