Re: RFR (S) 8229900: RedefineDeleteJmethod.java fails with -Xcheck:jni

2019-10-01 Thread David Holmes
Hi Coleen, Sorry rather long-winded reply ... On 1/10/2019 11:52 pm, coleen.phillim...@oracle.com wrote: Summary: Remove RedefineClasses adjustment and test, but improve checking for method/class matching. Tested with tier1 with -Xcheck:jni locally, and tier1 on Oracle platforms. open

Re: RFR: 8170299: Debugger does not stop inside the low memory notifications code

2019-10-01 Thread David Holmes
Hi Daniil, Thanks again for your perseverance with this one. This looks fine to me. Thanks, David - On 2/10/2019 6:57 am, Daniil Titov wrote: Hello, Please review a new version of the change [1] that fixes the problem with the debugger not stopping in the low memory notification

Re: RFR (M): 8231595 [TEST] develop a test case for SuspendThreadList including current thread

2019-10-01 Thread David Holmes
Looks good. Thanks, David On 2/10/2019 9:57 am, serguei.spit...@oracle.com wrote: Hi David, Yes, this is another place to fix the same typo, thanks. It has to be results[i] instead of err. I'll update the webrev in place. Thanks, Serguei On 10/1/19 4:00 PM, David Holmes wrote: Hi Serguei,

Re: RFR: 8231289: Disentangle JvmtiRawMonitor from ObjectMonitor and clean it up

2019-10-01 Thread David Holmes
On 2/10/2019 9:27 am, coleen.phillim...@oracle.com wrote: On 10/1/19 6:21 PM, David Holmes wrote: Hi Coleen, Thanks for taking a look. On 2/10/2019 7:04 am, coleen.phillim...@oracle.com wrote:

Re: RFR (M): 8231595 [TEST] develop a test case for SuspendThreadList including current thread

2019-10-01 Thread serguei . spitsyn
Hi David, Yes, this is another place to fix the same typo, thanks. It has to be results[i] instead of err. I'll update the webrev in place. Thanks, Serguei On 10/1/19 4:00 PM, David Holmes wrote: Hi Serguei, Shouldn't this:  80   for (int i = 0; i < threadsCount; i++) {   81 LOG(" 

Re: RFR: 8231289: Disentangle JvmtiRawMonitor from ObjectMonitor and clean it up

2019-10-01 Thread coleen . phillimore
On 10/1/19 6:21 PM, David Holmes wrote: Hi Coleen, Thanks for taking a look. On 2/10/2019 7:04 am, coleen.phillim...@oracle.com wrote: http://cr.openjdk.java.net/~dholmes/8231289/webrev/src/hotspot/share/prims/jvmtiEnv.cpp.frames.html I think it's odd that PROPER_TRANSITIONS looked

Re: RFR (M): 8231595 [TEST] develop a test case for SuspendThreadList including current thread

2019-10-01 Thread David Holmes
Hi Serguei, Shouldn't this: 80 for (int i = 0; i < threadsCount; i++) { 81 LOG(" thread #%d: (%d)", i, (int)results[i]); 82 check_jvmti_status(jni, err, "suspendTestedThreads: error in SuspendThreadList"); also be testing results[i] rather than err? Or do you need to test err

Re: RFR (M): 8231595 [TEST] develop a test case for SuspendThreadList including current thread

2019-10-01 Thread serguei . spitsyn
Alex, Chris and David, The updated webrev is: http://cr.openjdk.java.net/~sspitsyn/webrevs/2019/8231595-jvmti-susp-tlist.3/ This version changes are:   - the "first" and "last" are passed to the test to set the suspenderIndex   - fixed typo at line 120   - the ThreadToSuspend.run() loop is

Re: RFR: 8231289: Disentangle JvmtiRawMonitor from ObjectMonitor and clean it up

2019-10-01 Thread David Holmes
Hi Coleen, Thanks for taking a look. On 2/10/2019 7:04 am, coleen.phillim...@oracle.com wrote: http://cr.openjdk.java.net/~dholmes/8231289/webrev/src/hotspot/share/prims/jvmtiEnv.cpp.frames.html I think it's odd that PROPER_TRANSITIONS looked like the right thing to do, but we always took

Re: RFR (S) 8229900: RedefineDeleteJmethod.java fails with -Xcheck:jni

2019-10-01 Thread coleen . phillimore
Serguei, thank you for the code review! Coleen On 10/1/19 5:46 PM, serguei.spit...@oracle.com wrote: Hi Coleen, The fix looks good to me. Thank you for taking care about the test! Thanks, Serguei On 10/1/19 6:52 AM, coleen.phillim...@oracle.com wrote: Summary: Remove RedefineClasses

Re: RFR (S) 8229900: RedefineDeleteJmethod.java fails with -Xcheck:jni

2019-10-01 Thread serguei . spitsyn
Hi Coleen, The fix looks good to me. Thank you for taking care about the test! Thanks, Serguei On 10/1/19 6:52 AM, coleen.phillim...@oracle.com wrote: Summary: Remove RedefineClasses adjustment and test, but improve checking for method/class matching. Tested with tier1 with -Xcheck:jni

Re: RFR (M): 8231595 [TEST] develop a test case for SuspendThreadList including current thread

2019-10-01 Thread serguei . spitsyn
Hi Alex, On 10/1/19 12:23 PM, Alex Menkov wrote: Hi Serguei, Looks good. The only note: (libSuspendWithCurrentThread.cpp) 115 check_jvmti_status(jni, err, "resumeTestedThreads: error in ResumeThreadList"); This check in a cycle looks useless. Nice catch, thanks! The

Re: RFR (M): 8231595 [TEST] develop a test case for SuspendThreadList including current thread

2019-10-01 Thread serguei . spitsyn
Hi Chris, On 10/1/19 12:46 PM, Chris Plummer wrote: Hi Serguei, If someone changes THREADS_COUNT, then SuspenderIndex would no longer do what we want. I suggest passing in something like "first" and "last". Okay, I'll update it this way.  120 *  - main thread registers tested threads

Re: RFR: 8231289: Disentangle JvmtiRawMonitor from ObjectMonitor and clean it up

2019-10-01 Thread coleen . phillimore
http://cr.openjdk.java.net/~dholmes/8231289/webrev/src/hotspot/share/prims/jvmtiEnv.cpp.frames.html I think it's odd that PROPER_TRANSITIONS looked like the right thing to do, but we always took the alternate path with the large comment about why it is evil.  Can we have an RFE to move this

Re: RFR: 8170299: Debugger does not stop inside the low memory notifications code

2019-10-01 Thread Daniil Titov
Hello, Please review a new version of the change [1] that fixes the problem with the debugger not stopping in the low memory notification code. The fix moves the send notifications task from not visible ServiceThread to a new visible NotificationThread. This version of the change also

Re: [RFR] 8196969: JTreg Failure: serviceability/sa/ClhsdbJstack.java causes NPE

2019-10-01 Thread Chris Plummer
Hi Severin, Sorry, this is not an area that I have any expertise in. However, I did confirm that it fixes the NPE I was seeing with JShellHeapDumpTest.java, which brings up a question. You said this happens with -Xcomp, but I was never using -Xcomp. Might it also be triggered without -Xcomp?

Re: RFR (M): 8231595 [TEST] develop a test case for SuspendThreadList including current thread

2019-10-01 Thread Chris Plummer
Hi Serguei, If someone changes THREADS_COUNT, then SuspenderIndex would no longer do what we want. I suggest passing in something like "first" and "last".  120  *  - main thread registers tested threads withing the native agent library Should be "within". I think you should add a

Re: RFR (M): 8231595 [TEST] develop a test case for SuspendThreadList including current thread

2019-10-01 Thread Alex Menkov
Hi Serguei, Looks good. The only note: (libSuspendWithCurrentThread.cpp) 115 check_jvmti_status(jni, err, "resumeTestedThreads: error in ResumeThreadList"); This check in a cycle looks useless. No need for new webrev. --alex On 09/30/2019 22:45, serguei.spit...@oracle.com wrote: Hi

Re: RFR(S): 8231288: "jhsdb jmap" test needed to reproduce issues that used to be reproduced by JShellHeapDumpTest

2019-10-01 Thread Chris Plummer
On 10/1/19 2:59 AM, Severin Gehwolf wrote: Hi Chris, On Mon, 2019-09-30 at 12:59 -0700, Chris Plummer wrote: Hello, Please review the following: https://bugs.openjdk.java.net/browse/JDK-8231288 http://cr.openjdk.java.net/~cjplummer/8231288/webrev.00/index.html There were a number of jmap

RFR (S) 8229900: RedefineDeleteJmethod.java fails with -Xcheck:jni

2019-10-01 Thread coleen . phillimore
Summary: Remove RedefineClasses adjustment and test, but improve checking for method/class matching. Tested with tier1 with -Xcheck:jni locally, and tier1 on Oracle platforms. open webrev at http://cr.openjdk.java.net/~coleenp/2019/8229900.01/webrev bug link

[8u] RFR: 8195088: [TEST_BUG] StartManagementAgent got unexpected exception

2019-10-01 Thread Severin Gehwolf
Hi, Please review this OpenJDK 8u vs. Oracle JDK 8 parity patch. I wasn't sure whether I need review for this one as the bug in question is a JDK 8-only bug and the patch applies as-is. Anyway, here it is: Bug: https://bugs.openjdk.java.net/browse/JDK-8195088 webrev:

Re: RFR(S): 8231288: "jhsdb jmap" test needed to reproduce issues that used to be reproduced by JShellHeapDumpTest

2019-10-01 Thread Severin Gehwolf
Hi Chris, On Mon, 2019-09-30 at 12:59 -0700, Chris Plummer wrote: > Hello, > > Please review the following: > > https://bugs.openjdk.java.net/browse/JDK-8231288 > http://cr.openjdk.java.net/~cjplummer/8231288/webrev.00/index.html > > There were a number of jmap issues that

Re: [RFR] 8196969: JTreg Failure: serviceability/sa/ClhsdbJstack.java causes NPE

2019-10-01 Thread Severin Gehwolf
On Tue, 2019-10-01 at 10:29 +0100, Andrew Haley wrote: > On 9/27/19 1:12 PM, Severin Gehwolf wrote: > > The proposed patch handles serialized null scopes similar to the > > hotspot side of things, by returning a null scope. CompiledVFrame > > already deals with null scopes when in debugging mode.

Re: [RFR] 8196969: JTreg Failure: serviceability/sa/ClhsdbJstack.java causes NPE

2019-10-01 Thread Andrew Haley
On 9/27/19 1:12 PM, Severin Gehwolf wrote: > The proposed patch handles serialized null scopes similar to the > hotspot side of things, by returning a null scope. CompiledVFrame > already deals with null scopes when in debugging mode. > > Bug: https://bugs.openjdk.java.net/browse/JDK-8196969 >

Re: [RFR] 8196969: JTreg Failure: serviceability/sa/ClhsdbJstack.java causes NPE

2019-10-01 Thread Severin Gehwolf
Anyone? Chris maybe? On Fri, 2019-09-27 at 14:12 +0200, Severin Gehwolf wrote: > Hi, > > Could I please get reviews for this SA fix? The issue only happens > intermittently and with -Xcomp. The new regression test reproduces the > issue somewhat reliably. I got 10/10 fails for unpatched, but

Re: RFR: 8231289: Disentangle JvmtiRawMonitor from ObjectMonitor and clean it up

2019-10-01 Thread serguei.spit...@oracle.com
Hi David, I've started reviewing this and expecting to finish it tomorrow. Thanks, Serguei On 9/30/19 15:52, David Holmes wrote: ping! Thanks, David On 24/09/2019 3:09 pm, David Holmes wrote: Bug: https://bugs.openjdk.java.net/browse/JDK-8231289 webrev:

Re: RFR (M): 8231595 [TEST] develop a test case for SuspendThreadList including current thread

2019-10-01 Thread serguei.spit...@oracle.com
Hi David, Thank you for review! I'll fix the typos. Thanks, Serguei On 9/30/19 23:15, David Holmes wrote: Hi Serguei, Seems okay - thanks for the explanation. A couple of typos in the Java file: SuspenThreadList finction Thanks, David On 1/10/2019 3:45 pm, serguei.spit...@oracle.com

Re: RFR (M): 8231595 [TEST] develop a test case for SuspendThreadList including current thread

2019-10-01 Thread David Holmes
Hi Serguei, Seems okay - thanks for the explanation. A couple of typos in the Java file: SuspenThreadList finction Thanks, David On 1/10/2019 3:45 pm, serguei.spit...@oracle.com wrote: Hi Chris, David and Alex, The updated webrev is: