United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6927458 font system should cache transient strikes with weak references.
JDK-6927458 : font system should cache transient strikes with weak references.

Details
Type:
Bug
Submit Date:
2010-02-17
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
client-libs
OS:
generic
Sub-Component:
2d
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
Since many different rotation or general transforms may used for a glyph
during animation scenarios, we should be caching these more weakly to
faster reclaim native and Java heap. Presently we use Soft references
which are reclaimed only when the heap cannot be expanded.
There is of course a trade off against performance as subsequent uses
may exist and if they come after a GC, we need to re-create the glyph.
However in testing this seems acceptable given the potential benefit to
more stable memory use. And the reduced GC load actually helps performance in
high memory usage scenarios.

                                    

Comments
EVALUATION

This doesn't fix 6893655, although it should make it significantly less likely
to be encountered in any real app and is a very simple change.
                                     
2010-02-17
EVALUATION

http://hg.openjdk.java.net/jdk7/build/jdk/rev/4e47e55dd717
                                     
2011-01-17



Hardware and Software, Engineered to Work Together