mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-16 05:15:22 +00:00
8215243: JShell tests failing intermitently with \"Problem cleaning up the following threads:\"
Do not reset closed state in the StopDetectingInputStream.write Reviewed-by: rfield
This commit is contained in:
parent
79d7ae7633
commit
35bd56fcdf
@ -113,7 +113,7 @@ public final class StopDetectingInputStream extends InputStream {
|
||||
}
|
||||
|
||||
public synchronized void write(int b) {
|
||||
if (state != State.BUFFER) {
|
||||
if (state == State.READ) {
|
||||
state = State.WAIT;
|
||||
}
|
||||
int newEnd = (end + 1) % buffer.length;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user