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

[JVMCI] improve HotSpotResolvedJavaFieldImpl.hashCode()

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9, 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b34

      Description

      The JVMCI method HotSpotResolvedJavaFieldImpl.hashCode() currently does not consider the holder of a field when computing the hash code. Due to that, lots of collisions are happening when HotSpotResolvedJavaFieldImpl objects are being used in a hash map as keys. This impacts performance.

      Doing the change is not urgent but it should be backported to JDK 9 in some update release.

        Attachments

          Activity

            People

            • Assignee:
              chaeubl Christian Haeubl
              Reporter:
              chaeubl Christian Haeubl
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: