提交 6513d92a 编写于 作者: C coffeys

8038502: Deflater.needsInput() should use synchronization

Reviewed-by: chegar
上级 aa8ad7d0
...@@ -318,7 +318,9 @@ class Deflater { ...@@ -318,7 +318,9 @@ class Deflater {
* should be called in order to provide more input * should be called in order to provide more input
*/ */
public boolean needsInput() { public boolean needsInput() {
return len <= 0; synchronized (zsRef) {
return len <= 0;
}
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册