RFR 8237858: PlainSocketImpl.socketAccept() handles EINTR incorrectly

Alan Bateman Alan.Bateman at oracle.com
Tue Mar 17 07:03:26 UTC 2020



On 17/03/2020 05:21, Vyom Tiwari wrote:
> Hi Daniel/Michael,
>
> Please find the latest 
> webrev(http://cr.openjdk.java.net/~vtewari/8237858/webrev0.2/index.html), 
> where i put a test case as well.
>
Can you look at make/test/JtregNativeJdk.gmk? That should give you ideas 
on how to develop tests that use JNI code. You should just need two 
native methods, one to call pthread_self, the other call pthread_kill. 
It could potentially use sun.nio.ch.NativeThread but we'll see how far 
you get first. Once you have the primitives it should be easy to create 
a test that signals a thread blocked in read, write or accept.

-Alan


More information about the net-dev mailing list