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

Can we get rid of sun.misc.SoftCache?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 7, 8, 9
    • Fix Version/s: tbd
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
      2d
    • CPU:
      generic
    • OS:
      generic

      Description

      When generifying SoftCache I discovered two potential type problems in it: I don't think it has worked properly ever. There appears to be only one place in the entire JDK where this class is used: sun.awt.SunToolKit.

      If this could be replaced by say just a WeakHashMap or equivalent with SoftReferences we could be able to get rid of more than 440 lines of SoftCache implementation in sun.misc, which currently is the root of most warnings in said package.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              prr Philip Race
              Reporter:
              lagergren Marcus Lagergren
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: