RFR: JDK-8210252: com/sun/jdi/DebuggerThreadTest.java fails with NPE

2018-09-04 Thread Gary Adams
Here's a quick fix to avoid the NPE using a getThreadGroup() which could be null if the thread has terminated. Issue: https://bugs.openjdk.java.net/browse/JDK-8210252 diff --git a/test/jdk/com/sun/jdi/DebuggerThreadTest.java b/test/jdk/com/sun/jdi/DebuggerThreadTest.java --- a/test/jdk/com/

Re: 8210087: Classes in jdk.unsupported not accessible from jconsole plugin

2018-09-04 Thread Erik Joelsson
Looks good. /Erik On 2018-09-03 00:27, Alan Bateman wrote: JDK-8210087 [1] is an issue with the launcher generated for jconsole. The launcher needs to be compiled with --add-modules ALL-DEFAULT so that plugins compiled (and run) in an unnamed module can make use of exported APIs in modules

Re: RFR: JDK-8210252: com/sun/jdi/DebuggerThreadTest.java fails with NPE

2018-09-04 Thread Chris Plummer
Hi Gary, Why has the thread exited if the debuggee is still running? Chris On 9/4/18 5:22 AM, Gary Adams wrote: Here's a quick fix to avoid the NPE using a getThreadGroup() which could be null if the thread has terminated.   Issue: https://bugs.openjdk.java.net/browse/JDK-8210252 diff --git

Re: RFR: JDK-8210252: com/sun/jdi/DebuggerThreadTest.java fails with NPE

2018-09-04 Thread serguei.spit...@oracle.com
Hi Gary, I'm Okay with this fix. Thanks, Serguei On 9/4/18 05:22, Gary Adams wrote: Here's a quick fix to avoid the NPE using a getThreadGroup() which could be null if the thread has terminated.   Issue: https://bugs.openjdk.java.net/browse/JDK-8210252 diff --git a/test/jdk/com/sun/jdi/Debu

Re: RFR JDK-8210243: [TEST] rewrite com/sun/jdi shell tests to java version - step3

2018-09-04 Thread Alex Menkov
Hi Chris, fixed. Updated webrev: http://cr.openjdk.java.net/~amenkov/sh2java/step3/webrev.04/ On 08/31/2018 15:53, Chris Plummer wrote: Hi Alex, Overall it looks good.  159 // jdb prompt when debuggee is not started nor suspended after breakpoint How about "and is not suspended". And

Re: RFR JDK-8210243: [TEST] rewrite com/sun/jdi shell tests to java version - step3

2018-09-04 Thread Chris Plummer
Looks good. Chris On 9/4/18 11:01 AM, Alex Menkov wrote: Hi Chris, fixed. Updated webrev: http://cr.openjdk.java.net/~amenkov/sh2java/step3/webrev.04/ On 08/31/2018 15:53, Chris Plummer wrote: Hi Alex, Overall it looks good.   159 // jdb prompt when debuggee is not started nor suspen

Re: RFR: JDK-8210252: com/sun/jdi/DebuggerThreadTest.java fails with NPE

2018-09-04 Thread Gary Adams
I'm not sure which thread exited causes the NPE. This patch will let the test continue and at least let the list of threads be processed. The test walks up the parents to the initial thread and then "enumerates()" the set of the threads to check. There is an inherent race condition in enumerate(

Re: RFR: JDK-8210252: com/sun/jdi/DebuggerThreadTest.java fails with NPE

2018-09-04 Thread Chris Plummer
Can you reproduce the problem? If so, maybe to find out which thread is a problem you could check for null, print the thread info, and then fail the test. Chris On 9/4/18 11:14 AM, Gary Adams wrote: I'm not sure which thread exited causes the NPE. This patch will let  the test continue and at

Re: RFR: JDK-8210252: com/sun/jdi/DebuggerThreadTest.java fails with NPE

2018-09-04 Thread Gary Adams
I haven't been able to reproduce the problem locally. Trying larger test runs on mach5 now. Here's the output from a successful test run. If any of the threads exited, they would have a null group name. Howdy! Thread [0] group = 'system' name = 'Reference Handler' daemon = true Thread [1] group

Re: RFR: JDK-8210252: com/sun/jdi/DebuggerThreadTest.java fails with NPE

2018-09-04 Thread Chris Plummer
Hi Gary, The failed case only had: Thread [0] group = 'system' name = 'Reference Handler' daemon = true Thread [1] group = 'system' name = 'Finalizer' daemon = true Thread [2] group = 'system' name = 'Signal Dispatcher' daemon = true Thread [3] group = 'system' name = 'process reaper' daemon = t

Re: RFR JDK-8210243: [TEST] rewrite com/sun/jdi shell tests to java version - step3

2018-09-04 Thread serguei.spit...@oracle.com
Hi Alex, Thank you for the explanations and update! Thanks, Serguei On 8/31/18 10:26, Alex Menkov wrote: Hi Serguei, On 08/30/2018 23:12, serguei.spit...@oracle.com wrote: Hi Alex, It looks good in general but not sure I understand all the changes. Could you, please, tell a little bit more

Re: RFR JDK-8210243: [TEST] rewrite com/sun/jdi shell tests to java version - step3

2018-09-04 Thread serguei.spit...@oracle.com
Hi Alex, It looks good. Just one minor question. http://cr.openjdk.java.net/~amenkov/sh2java/step3/webrev.04/test/jdk/com/sun/jdi/NullLocalVariable.java.udiff.html -dojdbCmds() -{ - #set -x - cmd stop at badscope:4 ; $sleepcmd - runToBkpt

Re: RFR JDK-8210243: [TEST] rewrite com/sun/jdi shell tests to java version - step3

2018-09-04 Thread Alex Menkov
Hi Serguei, sleepcmd is empty, so it's NOP. --alex On 09/04/2018 12:28, serguei.spit...@oracle.com wrote: Hi Alex, It looks good. Just one minor question. http://cr.openjdk.java.net/~amenkov/sh2java/step3/webrev.04/test/jdk/com/sun/jdi/NullLocalVariable.java.udiff.html -dojdbCmds() -{ - #se

Re: RFR JDK-8210243: [TEST] rewrite com/sun/jdi shell tests to java version - step3

2018-09-04 Thread serguei.spit...@oracle.com
Okay, thanks! Serguei On 9/4/18 14:30, Alex Menkov wrote: Hi Serguei, sleepcmd is empty, so it's NOP. --alex On 09/04/2018 12:28, serguei.spit...@oracle.com wrote: Hi Alex, It looks good. Just one minor question. http://cr.openjdk.java.net/~amenkov/sh2java/step3/webrev.04/test/jdk/com/sun

Re: RFR (M) 8210198: Clean up JNI_ENV_ARG for vmTestbase/jvmti/Get[A-F] tests

2018-09-04 Thread serguei.spit...@oracle.com
Hi Jc, It looks good to me. Thank you for this cleanup! Thanks, Serguei On 9/4/18 16:12, JC Beyler wrote: Hi all, Continuing the removal

RFR(L/M) : 8210112 : remove jdk.testlibrary.ProcessTools

2018-09-04 Thread Igor Ignatyev
http://cr.openjdk.java.net/~iignatyev//8210112/webrev.00/index.html > 2375 lines changed: 322 ins; 1662 del; 391 mod Hi all, could you please review the patch which removes jdk.testlibrary.ProcessTools and its friends and replaces all theirs usages w/ corresponding classes from jdk.test.lib.pro