RFR 8237858: PlainSocketImpl.socketAccept() handles EINTR incorrectly
Vyom Tiwari
vyommani at gmail.com
Thu Jun 18 08:02:26 UTC 2020
Hi,
Please find the latest webrev(
http://cr.openjdk.java.net/~vtewari/8237858/webrev0.4/index.html) where i
fix the build issue as well.
Thanks,
Vyom
On Wed, Jun 17, 2020 at 3:34 PM Vyom Tiwari <vyommani at gmail.com> wrote:
> 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
>
--
Thanks,
Vyom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20200618/cde6e04d/attachment.htm>
More information about the net-dev
mailing list