changeset 2397:91bcd8fc04f2

4465490: Suspicious about double-check locking idiom being used in the code Summary: to use volatile for the double-checked object Reviewed-by: weijun
author sherman
date Sun, 16 May 2010 21:22:07 -0700
parents 2fb3d7dbaa32
children 43f83a2cf5b5
files src/share/classes/java/util/jar/JarVerifier.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/jar/JarVerifier.java	Fri May 14 13:46:53 2010 -0700
+++ b/src/share/classes/java/util/jar/JarVerifier.java	Sun May 16 21:22:07 2010 -0700
@@ -76,7 +76,7 @@
     private ByteArrayOutputStream baos;
 
     /** The ManifestDigester object */
-    private ManifestDigester manDig;
+    private volatile ManifestDigester manDig;
 
     /** the bytes for the manDig object */
     byte manifestRawBytes[] = null;