6611637: NullPointerException in sun.font.GlyphLayout$EngineRecord.init
authorprr
Mon, 19 May 2008 11:25:32 -0700
changeset 559 7f92d623aa8a
parent 558 14291c56e115
child 560 3a8029083a72
6611637: NullPointerException in sun.font.GlyphLayout$EngineRecord.init Reviewed-by: tdv, jgodinez
jdk/src/share/classes/sun/font/GlyphLayout.java
--- a/jdk/src/share/classes/sun/font/GlyphLayout.java	Fri May 16 03:10:58 2008 +0400
+++ b/jdk/src/share/classes/sun/font/GlyphLayout.java	Mon May 19 11:25:32 2008 -0700
@@ -85,7 +85,7 @@
     private GVData _gvdata;
 
     // cached glyph layout data for reuse
-    private static GlyphLayout cache;  // reusable
+    private static volatile GlyphLayout cache;  // reusable
 
     private LayoutEngineFactory _lef;  // set when get is called, unset when done is called
     private TextRecord _textRecord;    // the text we're working on, used by iterators