OpenJDK / jdk / jdk
changeset 7757:451411eff24b
6891551: Font rasterisation uses more heap than needed for some strikes.
Reviewed-by: jgodinez
author | prr |
---|---|
date | Thu, 23 Dec 2010 15:28:59 -0800 |
parents | 3739cf877c57 |
children | 3ed475e9013d |
files | jdk/src/share/classes/sun/font/FileFontStrike.java |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/jdk/src/share/classes/sun/font/FileFontStrike.java Thu Dec 23 11:01:37 2010 -0800 +++ b/jdk/src/share/classes/sun/font/FileFontStrike.java Thu Dec 23 15:28:59 2010 -0800 @@ -60,8 +60,8 @@ private volatile int glyphCacheFormat = UNINITIALISED; - /* segmented arrays are blocks of 256 */ - private static final int SEGSHIFT = 8; + /* segmented arrays are blocks of 32 */ + private static final int SEGSHIFT = 5; private static final int SEGSIZE = 1 << SEGSHIFT; private boolean segmentedCache; @@ -171,7 +171,7 @@ mapper = fileFont.getMapper(); int numGlyphs = mapper.getNumGlyphs(); - /* Always segment for fonts with > 2K glyphs, but also for smaller + /* Always segment for fonts with > 256 glyphs, but also for smaller * fonts with non-typical sizes and transforms. * Segmenting for all non-typical pt sizes helps to minimise memory * usage when very many distinct strikes are created.