提交 2cdd0629 编写于 作者: S sherman

4465490: Suspicious about double-check locking idiom being used in the code

Summary: to use volatile for the double-checked object
Reviewed-by: weijun
上级 628d48b4
......@@ -76,7 +76,7 @@ class JarVerifier {
private ByteArrayOutputStream baos;
/** The ManifestDigester object */
private ManifestDigester manDig;
private volatile ManifestDigester manDig;
/** the bytes for the manDig object */
byte manifestRawBytes[] = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册