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

Fonts created with createFont not being freed by GC.

XMLWordPrintable

    • 2d
    • b62
    • generic
    • generic

        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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: