mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-26 02:00:12 +00:00
8038502: Deflater.needsInput() should use synchronization
Reviewed-by: chegar
This commit is contained in:
parent
08216fc198
commit
780e19cb1e
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user