RFR 8237858: PlainSocketImpl.socketAccept() handles EINTR incorrectly
Vyom Tiwari
vyommani at gmail.com
Wed Jun 17 10:04:20 UTC 2020
Hi Alan,
Please find the latest webrev(
http://cr.openjdk.java.net/~vtewari/8237858/webrev0.3/index.html). I tried
to incorporate the suggestion given by you.I created the NativeThread class
which has functions that send signals to threads.
Note: I am facing some compilation issue when i am trying to build my
native code using JDK builds scripts, i am hoping someone will help to
resolve this issue. I manually build the native library and copy in the
required folder before running my tests.
Thanks,
Vyom
On Tue, Mar 17, 2020 at 12:33 PM Alan Bateman <Alan.Bateman at oracle.com>
wrote:
>
>
> 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
>
--
Thanks,
Vyom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20200617/be6cb358/attachment.htm>
More information about the net-dev
mailing list