src/share/classes/sun/font/PhysicalStrike.java

Print this page
rev 1297 : [mq]: fontmanager.patch

@@ -34,10 +34,18 @@
 
 
 public abstract class PhysicalStrike extends FontStrike {
 
     static final long INTMASK = 0xffffffffL;
+    static boolean longAddresses;
+    static {
+        switch (StrikeCache.nativeAddressSize) {
+        case 8: longAddresses = true; break;
+        case 4: longAddresses = false; break;
+        default: throw new RuntimeException("Unexpected address size");
+        }
+    }
 
     private PhysicalFont physicalFont;
     protected CharToGlyphMapper mapper;
     /* the ScalerContext is a native structure pre-filled with the
      * info needed to setup the scaler for this strike. Its immutable