changeset 53181:ff1c86e85d02

8215243: JShell tests failing intermitently with \"Problem cleaning up the following threads:\" Summary: Do not reset closed state in the StopDetectingInputStream.write Reviewed-by: rfield
author jlahoda
date Thu, 13 Dec 2018 08:26:07 +0100
parents 9d60798b21af
children b9d34a97a4be
files src/jdk.jshell/share/classes/jdk/internal/jshell/tool/StopDetectingInputStream.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/StopDetectingInputStream.java	Wed Dec 12 23:08:01 2018 -0800
+++ b/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/StopDetectingInputStream.java	Thu Dec 13 08:26:07 2018 +0100
@@ -113,7 +113,7 @@
     }
 
     public synchronized void write(int b) {
-        if (state != State.BUFFER) {
+        if (state == State.READ) {
             state = State.WAIT;
         }
         int newEnd = (end + 1) % buffer.length;