-
Bug
-
Resolution: Fixed
-
P4
-
5.0, 6
-
b62
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2131562 | 5.0u7 | Philip Race | P4 | Resolved | Fixed | b01 |
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.
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.
- backported by
-
JDK-2131562 Fonts created with createFont not being freed by GC.
- Resolved