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

Fonts created with createFont not being freed by GC.

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b62
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Fonts created with createFont have never been freed until JRE exit although in 1.5
        code was added that was supposed to allow this and use the "2D disposer" mechanism
        once the font became unreferenced to free the native resources (ie temporary file)
        created.

        Unfortunately the disposer record keeps a strong reference to the Font (actually
        the Font2D) itself due to making the disposer class a non-static nested (inner)
        class of the Font2D subclass and so implicitly it has a reference to its enclosing
        instance.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                prr Philip Race
                Reporter:
                prr Philip Race
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: