Re: RFR: JDK-4903717: nsk/jdi/ThreadReference/isSuspended/issuspended002 failing

2019-02-22 Thread serguei . spitsyn
Hi Gary, Thank you for cosmetic changes. One thing to notice there is no guard against spurious wakeup for this:    108 Threadissuspended002a.waitnotifyObj.wait(); But I doubt it causes these timeouts as they are very well reproducible. This time I looked more to the debugger side. The code is

Re: RFR: JDK-8181383: com/sun/jdi/OptionTest.java fails intermittently with bind failed: Address already in use

2019-02-22 Thread serguei . spitsyn
Hi Alex, It looks good to me. Just minor comments. http://cr.openjdk.java.net/~amenkov/OptionTest_socket/webrev/test/jdk/com/sun/jdi/RunToExit.java.udiff.html + // port the debuggee is listening on + private static String address; Local style is to use /**/ comments on class level that start

Re: RFR (S) 8181171: Deleting method for RedefineClasses breaks ResolvedMethodName

2019-02-22 Thread serguei . spitsyn
Hi Coleen, It looks good to me. Just a couple of minor comments. http://cr.openjdk.java.net/~coleenp/2019/8181171.01/webrev/src/java.base/share/classes/jdk/internal/misc/Unsafe.java.udiff.html + * Throws NoSuchMethodError; for use by the VM for redefinition support. + * @since 1.12 + */  Repl

Re: RFR: JDK-4903717: nsk/jdi/ThreadReference/isSuspended/issuspended002 failing

2019-02-22 Thread Alex Menkov
Hi Gary, Double resumed thread2 and suspended main thread is one of the tested scenarios, and you just dropped it. This doesn't look good. --alex On 02/22/2019 11:52, Gary Adams wrote: After 1000 successful testruns, it seems like a reasonable solution is to resume the main thread to resolve

Re: JDK-8219143: jdb should support breakpoint thread filters

2019-02-22 Thread Chris Plummer
Thanks Alex! I'm not too concerned about future extensions. Also it was even suggested in a comment in the code to remove the need for at/in. I think the main reason for supporting named parameters would be to allow them to occur in any order, which isn't supported now. Chris On 2/22/19 4:3

Re: JDK-8219143: jdb should support breakpoint thread filters

2019-02-22 Thread Alex Menkov
+1 (although I prefer named parameters as unnamed restricts future syntax extensions). --alex On 02/22/2019 15:13, serguei.spit...@oracle.com wrote: Hi Chris, It looks good. Thank you for the update! Thanks, Serguei On 2/22/19 12:24 PM, Chris Plummer wrote: Please review the updated webre

RFR: JDK-8181383: com/sun/jdi/OptionTest.java fails intermittently with bind failed: Address already in use

2019-02-22 Thread Alex Menkov
Hi all, Please review a fix for https://bugs.openjdk.java.net/browse/JDK-8181383 webrev: http://cr.openjdk.java.net/~amenkov/OptionTest_socket/webrev/ The change fixes OptionTest and RunToExit tests to avoid "address already in use" failures by using dynamic port allocation (address=0). OptionT

RFR (S) 8181171: Deleting method for RedefineClasses breaks ResolvedMethodName

2019-02-22 Thread coleen . phillimore
8210457: JVM crash in ResolvedMethodTable::add_method(Handle) Summary: Add a function to call NSME in ResolvedMethodTable to replace deleted methods. This Unsafe.throwX trick is also used for vtable initialization for throwing IllegalAccessError.  Tested with redefinition tests in the reposit

Re: JDK-8219143: jdb should support breakpoint thread filters

2019-02-22 Thread Chris Plummer
Thanks! On 2/22/19 3:13 PM, serguei.spit...@oracle.com wrote: Hi Chris, It looks good. Thank you for the update! Thanks, Serguei On 2/22/19 12:24 PM, Chris Plummer wrote:

Re: JDK-8219143: jdb should support breakpoint thread filters

2019-02-22 Thread serguei . spitsyn
Hi Chris, It looks good. Thank you for the update! Thanks, Serguei On 2/22/19 12:24 PM, Chris Plummer wrote: Please review the updated webrev: http://cr.openjdk.java.net/~cjplummer/8219143/webrev.02/index.html They syntax is now:     stop [go|thread] [] Basically I just removed the

Re: RFR: 8219571: ProblemList serviceability/sa/TestJmapCoreMetaspace.java

2019-02-22 Thread Stefan Karlsson
Thanks, Igor! StefanK On 2019-02-22 22:02, Igor Ignatyev wrote: Hi Stefan, LGTM. -- Igor On Feb 22, 2019, at 1:00 PM, Stefan Karlsson wrote: Hi all, Please review this patch to ProblemList serviceability/sa/TestJmapCoreMetaspace.java https://cr.openjdk.java.net/~stefank/8219571/webrev.

Re: RFR: 8219571: ProblemList serviceability/sa/TestJmapCoreMetaspace.java

2019-02-22 Thread Igor Ignatyev
Hi Stefan, LGTM. -- Igor > On Feb 22, 2019, at 1:00 PM, Stefan Karlsson > wrote: > > Hi all, > > Please review this patch to ProblemList > serviceability/sa/TestJmapCoreMetaspace.java > > https://cr.openjdk.java.net/~stefank/8219571/webrev.01/ > https://bugs.openjdk.java.net/browse/JDK-821

RFR: 8219571: ProblemList serviceability/sa/TestJmapCoreMetaspace.java

2019-02-22 Thread Stefan Karlsson
Hi all, Please review this patch to ProblemList serviceability/sa/TestJmapCoreMetaspace.java https://cr.openjdk.java.net/~stefank/8219571/webrev.01/ https://bugs.openjdk.java.net/browse/JDK-8219571 Original bug: https://bugs.openjdk.java.net/browse/JDK-8219443 Thanks, StefanK

Re: JDK-8219143: jdb should support breakpoint thread filters

2019-02-22 Thread Chris Plummer
Please review the updated webrev: http://cr.openjdk.java.net/~cjplummer/8219143/webrev.02/index.html They syntax is now:     stop [go|thread] [] Basically I just removed the need to specify "threadid" before .

Re: RFR: JDK-4903717: nsk/jdi/ThreadReference/isSuspended/issuspended002 failing

2019-02-22 Thread Gary Adams
After 1000 successful testruns, it seems like a reasonable solution is to resume the main thread to resolve any locks holding back the thread2 reaching the desired breakpoint. Updated webrev: http://cr.openjdk.java.net/~gadams/4903717/webrev.01/ Changes in this iteration: - cosmetic changes

Re: RFR: 8219585: [TESTBUG] sun/management/jmxremote/bootstrap/JMXInterfaceBindingTest.java passes trivially when it shouldn't

2019-02-22 Thread Daniel Fuchs
Hi Severin, Did you manage to make the test pass locally? This test has had a long history of failing, and I've come to suspect that it might be flawed. First - it has /timeout=5. I believe that's much too short. It immediately failed the first time I ran it locally on my machine. Then it uses

Re: RFR (XS) 8219574: Minimal VM build failure after JDK-8219414

2019-02-22 Thread Chris Plummer
Apologies. I had two separate threads for this review, and replied on the thread that no one else replied to, then later saw the thread with all the activity. Chris On 2/22/19 8:48 AM, Chris Plummer wrote: Looks good. Chris On 2/22/19 1:51 AM, Aleksey Shipilev wrote: Bug:    https://bugs.o

Re: RFR (XS) 8219574: Minimal VM build failure after JDK-8219414

2019-02-22 Thread Chris Plummer
Looks good. Chris On 2/22/19 1:51 AM, Aleksey Shipilev wrote: Bug: https://bugs.openjdk.java.net/browse/JDK-8219574 Fix: diff -r e94ed0236046 src/hotspot/os/linux/os_linux.cpp --- a/src/hotspot/os/linux/os_linux.cpp Fri Feb 22 09:23:37 2019 +0100 +++ b/src/hotspot/os/linux/os_linux.cpp Fri

Re: RFR (XS) 8219574: Minimal VM build failure after JDK-8219414

2019-02-22 Thread Aleksey Shipilev
On 2/22/19 2:14 PM, David Holmes wrote: > On 22/02/2019 11:02 pm, Aleksey Shipilev wrote: >> On 2/22/19 1:55 PM, Jini George wrote: >>> Looks good to me. Thanks for taking care of this, Aleksey! >> >> No problem. I'll run it through jdk-submit to catch weird failures, and then >> push. > > After

RFR: 8219585: [TESTBUG] sun/management/jmxremote/bootstrap/JMXInterfaceBindingTest.java passes trivially when it shouldn't

2019-02-22 Thread Severin Gehwolf
Hi! Bug: https://bugs.openjdk.java.net/browse/JDK-8219585 Could somebody please review this trivial testbug. For a config like [1] the logic prior JDK-8145982 returned this list for getAddressesForLocalHost(): [localhost/127.0.0.1, localhost/192.168.1.18, localhost/0:0:0:0:0:0:0:1] Post JDK-814

Re: RFR (XS) 8219574: Minimal VM build failure after JDK-8219414

2019-02-22 Thread David Holmes
On 22/02/2019 11:02 pm, Aleksey Shipilev wrote: On 2/22/19 1:55 PM, Jini George wrote: Looks good to me. Thanks for taking care of this, Aleksey! No problem. I'll run it through jdk-submit to catch weird failures, and then push. After a second review of course. Reviewed. Thanks, David -

Re: RFR (XS) 8219574: Minimal VM build failure after JDK-8219414

2019-02-22 Thread Aleksey Shipilev
On 2/22/19 1:55 PM, Jini George wrote: > Looks good to me. Thanks for taking care of this, Aleksey! No problem. I'll run it through jdk-submit to catch weird failures, and then push. -Aleksey signature.asc Description: OpenPGP digital signature

Re: RFR (XS) 8219574: Minimal VM build failure after JDK-8219414

2019-02-22 Thread Jini George
Looks good to me. Thanks for taking care of this, Aleksey! - Jini. On 2/22/2019 5:56 PM, Aleksey Shipilev wrote: On 2/22/19 12:19 PM, Jini George wrote: JDK-8219414 decoupled CDS and DumpPrivateMappingsInCore. Removing the #INCLUDE_CDS guard from the definition of ClassLoader::close_jrt_image

Re: RFR (XS) 8219574: Minimal VM build failure after JDK-8219414

2019-02-22 Thread Aleksey Shipilev
On 2/22/19 12:19 PM, Jini George wrote: > JDK-8219414 decoupled CDS and DumpPrivateMappingsInCore. Removing the > #INCLUDE_CDS guard from the > definition of ClassLoader::close_jrt_image() got missed out (My bad! Missed > that during the review). > So, since ClassLoader::close_jrt_image() is deco

Re: RFR (XS) 8219574: Minimal VM build failure after JDK-8219414

2019-02-22 Thread Jini George
Hi Aleksey, JDK-8219414 decoupled CDS and DumpPrivateMappingsInCore. Removing the #INCLUDE_CDS guard from the definition of ClassLoader::close_jrt_image() got missed out (My bad! Missed that during the review). So, since ClassLoader::close_jrt_image() is decoupled from CDS, it might be better

Re: RFR: JDK-4903717: nsk/jdi/ThreadReference/isSuspended/issuspended002 failing

2019-02-22 Thread gary.ad...@oracle.com
I'll make a pass over the code for cosmetic fixes after the test is working correctly. I think the purpose of the lockingObject is to ensure the debugger has time to enable the breakpoint and perform the double resume before debuggee thread2 is released to run to the expected breakpoint. I'm ass

Re: RFR (XS) 8219574: Minimal VM build failure after JDK-8219414

2019-02-22 Thread David Holmes
On 22/02/2019 9:12 pm, Aleksey Shipilev wrote: On 2/22/19 11:48 AM, David Holmes wrote: diff -r e94ed0236046 src/hotspot/os/linux/os_linux.cpp --- a/src/hotspot/os/linux/os_linux.cpp Fri Feb 22 09:23:37 2019 +0100 +++ b/src/hotspot/os/linux/os_linux.cpp Fri Feb 22 10:51:11 2019 +0100 @@ -1357,11

Re: RFR (XS) 8219574: Minimal VM build failure after JDK-8219414

2019-02-22 Thread Aleksey Shipilev
On 2/22/19 11:48 AM, David Holmes wrote: >> diff -r e94ed0236046 src/hotspot/os/linux/os_linux.cpp >> --- a/src/hotspot/os/linux/os_linux.cpp Fri Feb 22 09:23:37 2019 +0100 >> +++ b/src/hotspot/os/linux/os_linux.cpp Fri Feb 22 10:51:11 2019 +0100 >> @@ -1357,11 +1357,11 @@ >>   // called from signa

Re: RFR (XS) 8219574: Minimal VM build failure after JDK-8219414

2019-02-22 Thread David Holmes
Hi Aleksey, On 22/02/2019 7:51 pm, Aleksey Shipilev wrote: Bug: https://bugs.openjdk.java.net/browse/JDK-8219574 Fix: diff -r e94ed0236046 src/hotspot/os/linux/os_linux.cpp --- a/src/hotspot/os/linux/os_linux.cpp Fri Feb 22 09:23:37 2019 +0100 +++ b/src/hotspot/os/linux/os_linux.cpp Fri Feb

RFR (XS) 8219574: Minimal VM build failure after JDK-8219414

2019-02-22 Thread Aleksey Shipilev
Bug: https://bugs.openjdk.java.net/browse/JDK-8219574 Fix: diff -r e94ed0236046 src/hotspot/os/linux/os_linux.cpp --- a/src/hotspot/os/linux/os_linux.cpp Fri Feb 22 09:23:37 2019 +0100 +++ b/src/hotspot/os/linux/os_linux.cpp Fri Feb 22 10:51:11 2019 +0100 @@ -1357,11 +1357,11 @@ // called from