jdk/src/share/classes/sun/font/StrikeCache.java
changeset 21278 ef8a3a2a72f2
parent 9035 1255eb81cc2f
child 22567 5816a47fa4dd
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
   164 
   164 
   165                /* Allow a client to override the reference type used to
   165                /* Allow a client to override the reference type used to
   166                 * cache strikes. The default is "soft" which hints to keep
   166                 * cache strikes. The default is "soft" which hints to keep
   167                 * the strikes around. This property allows the client to
   167                 * the strikes around. This property allows the client to
   168                 * override this to "weak" which hint to the GC to free
   168                 * override this to "weak" which hint to the GC to free
   169                 * memory more agressively.
   169                 * memory more aggressively.
   170                 */
   170                 */
   171                String refType =
   171                String refType =
   172                    System.getProperty("sun.java2d.font.reftype", "soft");
   172                    System.getProperty("sun.java2d.font.reftype", "soft");
   173                cacheRefTypeWeak = refType.equals("weak");
   173                cacheRefTypeWeak = refType.equals("weak");
   174 
   174