changeset 559:7f92d623aa8a

6611637: NullPointerException in sun.font.GlyphLayout$EngineRecord.init Reviewed-by: tdv, jgodinez
author prr
date Mon, 19 May 2008 11:25:32 -0700
parents 14291c56e115
children 3a8029083a72
files jdk/src/share/classes/sun/font/GlyphLayout.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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