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

Can we get rid of sun.misc.SoftCache?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 7, 8, 9
    • client-libs
    • None
    • 2d
    • generic
    • generic

      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.

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

              Created:
              Updated: