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

(valhalla) WeakHashMap for value classes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: core-libs
    • Labels:
      None

      Description

      WeakHashMap uses WeakReference for keys, allowing it to retain only keys and values that are strongly referenced elsewhere.

      The behavior of WeakReference (or any Reference class) is not defined for value class objects.

      WeakHashMap could benefit from one or modes to determine how value objects as keys should be allowed or retained.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rriggs Roger Riggs
              Reporter:
              rriggs Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: