8038502: Deflater.needsInput() should use synchronization

Reviewed-by: chegar
This commit is contained in:
Sean Coffey 2015-10-15 14:41:37 +01:00
parent 08216fc198
commit 780e19cb1e

View File

@ -318,7 +318,9 @@ class Deflater {
* should be called in order to provide more input
*/
public boolean needsInput() {
return len <= 0;
synchronized (zsRef) {
return len <= 0;
}
}
/**