-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
The test/jdk/java/net/Socket/asyncClose/AsyncClose.java test launches several tests. Each of these tests then launch a couple of threads, one of which waits for the other thread to arrive at the operation being tested. The wait is currently implemented by a Thread.sleep() of 5 seconds.
In a different area of the JDK tests, we use a stack analysis mechanism to identify whether the target thread has arrived at a (blocking) operation. Using similar technique here can help reduce the wait time and thus the duration of these tests. It will also remove the possibility of the waiting Thread not waiting long enough for the other thread to reach the operation.
In a different area of the JDK tests, we use a stack analysis mechanism to identify whether the target thread has arrived at a (blocking) operation. Using similar technique here can help reduce the wait time and thus the duration of these tests. It will also remove the possibility of the waiting Thread not waiting long enough for the other thread to reach the operation.