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 <vyomm...@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.bate...@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