jdk/src/share/classes/sun/font/StrikeCache.java
changeset 3928 be186a33df9b
parent 2371 021228e73859
child 4252 0e645080f74b
--- a/jdk/src/share/classes/sun/font/StrikeCache.java	Tue Aug 04 17:25:36 2009 -0700
+++ b/jdk/src/share/classes/sun/font/StrikeCache.java	Fri Aug 07 18:31:11 2009 +0200
@@ -237,7 +237,7 @@
              * any glyphs. In this case we still want to free the scaler
              * context.
              */
-            if (FontManager.longAddresses) {
+            if (longAddresses()) {
                 freeLongMemory(new long[0], disposer.pScalerContext);
             } else {
                 freeIntMemory(new int[0], disposer.pScalerContext);
@@ -245,6 +245,10 @@
         }
     }
 
+    private static boolean longAddresses() {
+        return nativeAddressSize == 8;
+    }
+
     static void disposeStrike(final FontStrikeDisposer disposer) {
         // we need to execute the strike disposal on the rendering thread
         // because they may be accessed on that thread at the time of the