[OpenJDK 2D-Dev] StrikeCache implementation question
linuxhippy at gmail.com
Fri Apr 24 17:41:52 UTC 2009
Today I tried replacing my own glyph-cache logic with StrikeCache's,
simply removing a glyph from the native cache when StrikeCache removes
For XRender thats more or less all logic I need :)
That didn't work out very well. I get the server-compiler by default,
which doesn't seem to release SoftReferences even when forcing GCs.
So after ~50.000 cached glyphs my Xserver died :-/
Even when using the X11 pipeline which doesn't do any native caching,
running Java2Demo's TransformAnim with 10 animated strings results in
java consuming 1.8Gb RSS after some minutes.
Would a cache-algoyrthm instead of using References cause troubles
with StrikeCache's multithreading capability, or would the performance
impact be too high?
It would also solve the problem with References cleared immediatly
when starting applications with the client-jvm.
Thank you in advance, Clemens
More information about the 2d-dev