Re: RFR 8193879: Java debugger hangs on method invocation

2018-10-09 Thread serguei . spitsyn
Hi Severin, On 10/9/18 8:50 AM, Severin Gehwolf wrote: Hi Seguei, On Mon, 2018-10-08 at 17:57 -0700, serguei.spit...@oracle.com wrote: Hi Severin, You already fixed a couple of deadlocks in the debugger method invocation and have an expertise in this area. Do you have any time to review the w

Re: RFR 8193879: Java debugger hangs on method invocation

2018-10-09 Thread Severin Gehwolf
Hi Seguei, On Mon, 2018-10-08 at 17:57 -0700, serguei.spit...@oracle.com wrote: > Hi Severin, > > You already fixed a couple of deadlocks in the debugger method > invocation and have an expertise in this area. > Do you have any time to review the webrev from Daniil? Sorry, not at the moment. It'

Re: RFR 8193879: Java debugger hangs on method invocation

2018-10-08 Thread Daniil Titov
, 2018 at 5:53 PM To: Daniil Titov , Chris Plummer , Cc: serviceability-dev Subject: Re: RFR 8193879: Java debugger hangs on method invocation Hi Daniil, It seems to me, this fix is going to work. The freeze() method only cares there are no pending resume commands: 99 synchronized

Re: RFR 8193879: Java debugger hangs on method invocation

2018-10-08 Thread serguei.spit...@oracle.com
is Plummer , Cc: serviceability-dev Subject: Re: RFR 8193879: Java debugger hangs on method invocation   Hi Daniil, It seems to me, this fix is goi

Re: RFR 8193879: Java debugger hangs on method invocation

2018-10-08 Thread Daniil Titov
); +    return (BreakpointEvent) waitForRequestedEvent(request); Best regards, Daniil From: "serguei.spit...@oracle.com" Date: Monday, October 8, 2018 at 5:53 PM To: Daniil Titov , Chris Plummer , Cc: serviceability-dev Subject: Re: RFR 8193879: Java debugger hangs on method invocat

Re: RFR 8193879: Java debugger hangs on method invocation

2018-10-08 Thread serguei.spit...@oracle.com
Hi Severin, You already fixed a couple of deadlocks in the debugger method invocation and have an expertise in this area. Do you have any time to review the webrev from Daniil? Otherwise, I'd like to keep you aware about this fix. Thanks,

Re: RFR 8193879: Java debugger hangs on method invocation

2018-10-08 Thread serguei.spit...@oracle.com
Hi Daniil, It seems to me, this fix is going to work. The freeze() method only cares there are no pending resume commands: 99 synchronized void freeze() { 100 if (cache == null && (pendingResumeCommands.isEmpty())) { 101 /

Re: RFR 8193879: Java debugger hangs on method invocation

2018-10-05 Thread gary.ad...@oracle.com
Looks OK to me. On 10/4/18 5:19 PM, Daniil Titov wrote: Hi Gary and Chris, Please review an updated version of the patch that has newly added test for the case when suspend policy is set to SUSPEND_EVENT_THREAD reimplemented using JDI API. Thus, the changes in src/jdk.jdi/share/classes/com/s

Re: RFR 8193879: Java debugger hangs on method invocation

2018-10-04 Thread Chris Plummer
On 10/4/18 6:00 PM, Alex Menkov wrote: On 10/04/2018 16:11, Chris Plummer wrote: On 10/4/18 2:53 PM, Alex Menkov wrote: On 10/04/2018 10:28, Chris Plummer wrote: On 10/4/18 5:12 AM, Gary Adams wrote: In TTY.java do you need to force a simple prompt for the breakpoint event output? What pr

Re: RFR 8193879: Java debugger hangs on method invocation

2018-10-04 Thread Alex Menkov
On 10/04/2018 16:11, Chris Plummer wrote: On 10/4/18 2:53 PM, Alex Menkov wrote: On 10/04/2018 10:28, Chris Plummer wrote: On 10/4/18 5:12 AM, Gary Adams wrote: In TTY.java do you need to force a simple prompt for the breakpoint event output? What prevents currentThread from being set at

Re: RFR 8193879: Java debugger hangs on method invocation

2018-10-04 Thread Chris Plummer
On 10/4/18 2:53 PM, Alex Menkov wrote: On 10/04/2018 10:28, Chris Plummer wrote: On 10/4/18 5:12 AM, Gary Adams wrote: In TTY.java do you need to force a simple prompt for the breakpoint event output? What prevents currentThread from being set at the time you are printing the prompt?  103  

Re: RFR 8193879: Java debugger hangs on method invocation

2018-10-04 Thread Alex Menkov
Looks good to me. --alex On 10/04/2018 15:13, Daniil Titov wrote: Hi Alex, Just several minutes ago in another email I sent an updated patch on review (please see email attached). The patch has reimplemented tests and no longer uses JdbTest , so the changes you mentioned are no longer there.

Re: RFR 8193879: Java debugger hangs on method invocation

2018-10-04 Thread Daniil Titov
Hi Alex, Just several minutes ago in another email I sent an updated patch on review (please see email attached). The patch has reimplemented tests and no longer uses JdbTest , so the changes you mentioned are no longer there. I also created issue https://bugs.openjdk.java.net/browse/JDK-821173

Re: RFR 8193879: Java debugger hangs on method invocation

2018-10-04 Thread Alex Menkov
On 10/04/2018 10:28, Chris Plummer wrote: On 10/4/18 5:12 AM, Gary Adams wrote: In TTY.java do you need to force a simple prompt for the breakpoint event output? What prevents currentThread from being set at the time you are printing the prompt?  103 // Print the prompt if suspend p

Re: RFR 8193879: Java debugger hangs on method invocation

2018-10-04 Thread Daniil Titov
Hi Gary and Chris, Please review an updated version of the patch that has newly added test for the case when suspend policy is set to SUSPEND_EVENT_THREAD reimplemented using JDI API. Thus, the changes in src/jdk.jdi/share/classes/com/sun/tools/example/debug/tty/TTY.java are no longer required

Re: RFR 8193879: Java debugger hangs on method invocation

2018-10-04 Thread Chris Plummer
On 10/4/18 5:12 AM, Gary Adams wrote: In TTY.java do you need to force a simple prompt for the breakpoint event output? What prevents currentThread from being set at the time you are printing the prompt?  103 // Print the prompt if suspend policy is SUSPEND_EVENT_THREAD. In case of  10

Re: RFR 8193879: Java debugger hangs on method invocation

2018-10-04 Thread Gary Adams
In TTY.java do you need to force a simple prompt for the breakpoint event output? What prevents currentThread from being set at the time you are printing the prompt? 103 // Print the prompt if suspend policy is SUSPEND_EVENT_THREAD. In case of 104 // SUSPEND_ALL policy this is