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

[lworld] Totalize System.identityHashCode for inline types.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • repo-valhalla
    • repo-valhalla
    • tools
    • generic
    • generic

      From http://cr.openjdk.java.net/~briangoetz/valhalla/sov/02-object-model.html:

      System::identityHashCode. The main use of identityHashCode is in the implementation of data structures such as IdentityHashMap, as a filter in front of ==. We can totalize identityHashCode in the same way we totalize equality – deriving a hash from the hash of all the fields.

      Currently, we barf if it can be determined statically that the operand to the identityHashCode call is an inline instance

      The actual derivation of the hash may be handled by a separate ticket against the relevant JRE project.

            sadayapalam Srikanth Adayapalam (Inactive)
            sadayapalam Srikanth Adayapalam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: