Re: RFR: 8287281: adjust guarantee in Handshake::execute for the case of target thread being current [v4]

2022-06-03 Thread Patricio Chilano Mateo
On Fri, 3 Jun 2022 09:45:31 GMT, Johan Sjölén wrote: >> Please review this PR for fixing JDK-8287281. >> >> If a thread is handshake safe we immediately execute the closure, instead of >> going through the regular Handshake process. >> >> Finally: Should `VirtualThreadGetThreadClosure` and i

Re: RFR: 8286960: Test serviceability/jvmti/vthread/SuspendResume2 crashed: missing ThreadsListHandle in calling context

2022-05-25 Thread Patricio Chilano Mateo
On Wed, 25 May 2022 07:23:36 GMT, Serguei Spitsyn wrote: > A part of this issue was contributed with the following changeset: > > commit ea23e7333e03abb4aca3e9f3854bab418a4b70e2 > Author: Daniel D. Daugherty <[dcu...@openjdk.org](mailto:dcu...@openjdk.org)> > Date: Mon Nov 8 14:45:04 2021 +

Re: RFR: 8276658: Clean up JNI local handles code [v2]

2021-11-12 Thread Patricio Chilano Mateo
On Thu, 11 Nov 2021 13:58:06 GMT, Coleen Phillimore wrote: >> JNI Local handles can only be created by JavaThread (there's an assert in >> make_local) but the fields are added to Thread. >> Move the fields to JavaThread and adding JavaThread* argument. >> Also, the global freelist isn't very use

Re: RFR: 8274004: Change 'nonleaf' rank name [v2]

2021-10-07 Thread Patricio Chilano Mateo
On Thu, 7 Oct 2021 15:28:31 GMT, Coleen Phillimore wrote: >> Also fixes: 8273956: Add checking for rank values >> >> This change does 3 things. I could separate them but this has all been >> tested together and most of the change is mechanical. The first is a simple >> rename of nonleaf => s

Integrated: 8253197: vmTestbase/nsk/jvmti/StopThread/stopthrd007/TestDescription.java fails with "ERROR: DebuggeeSleepingThread: ThreadDeath lost"

2021-09-30 Thread Patricio Chilano Mateo
On Tue, 28 Sep 2021 22:07:38 GMT, Patricio Chilano Mateo wrote: > Hi, > > Please review this simple fix. As pointed out by @dholmes-ora in the bug > comments, the ThreadDeath exception could be delivered and thrown while the > target JavaThread is still executing within th

Re: RFR: 8253197: vmTestbase/nsk/jvmti/StopThread/stopthrd007/TestDescription.java fails with "ERROR: DebuggeeSleepingThread: ThreadDeath lost"

2021-09-30 Thread Patricio Chilano Mateo
On Wed, 29 Sep 2021 18:35:27 GMT, Chris Plummer wrote: >> Hi, >> >> Please review this simple fix. As pointed out by @dholmes-ora in the bug >> comments, the ThreadDeath exception could be delivered and thrown while the >> target JavaThread is still executing within the Wicket.unlock call. To

Re: RFR: 8253197: vmTestbase/nsk/jvmti/StopThread/stopthrd007/TestDescription.java fails with "ERROR: DebuggeeSleepingThread: ThreadDeath lost"

2021-09-29 Thread Patricio Chilano Mateo
On Wed, 29 Sep 2021 00:47:43 GMT, David Holmes wrote: > Fix seems quite reasonable. > Thanks for the review David! Patricio - PR: https://git.openjdk.java.net/jdk/pull/5742

RFR: 8253197: vmTestbase/nsk/jvmti/StopThread/stopthrd007/TestDescription.java fails with "ERROR: DebuggeeSleepingThread: ThreadDeath lost"

2021-09-28 Thread Patricio Chilano Mateo
Hi, Please review this simple fix. As pointed out by @dholmes-ora in the bug comments, the ThreadDeath exception could be delivered and thrown while the target JavaThread is still executing within the Wicket.unlock call. To fix it I moved the unlock call inside the try block. I was able to repr

Re: RFR: 8273916: Remove 'special' ranking [v3]

2021-09-21 Thread Patricio Chilano Mateo
On Tue, 21 Sep 2021 12:07:06 GMT, Coleen Phillimore wrote: >> This change removes the special ranking and folds it into nosafepoint. You >> have to look at commit #3 to see this actual part of the change that doesn't >> include JDK-8273915. >> This passes tier1-6 also. > > Coleen Phillimore ha

Re: RFR: 8272788: Nonleaf ranked locks should not be safepoint_check_never [v3]

2021-09-01 Thread Patricio Chilano Mateo
On Tue, 31 Aug 2021 21:52:12 GMT, Coleen Phillimore wrote: >> I moved nonleaf ranked locks to be leaf (or leaf+something). Many of the >> leaf locks are safepoint_check_never. Segregating this rank into safepoint >> checking and non-safepoint checking is left for a future RFE. >> Tested with

Re: RFR: 8273217: Make ParHeapInspectTask _safepoint_check_never

2021-09-01 Thread Patricio Chilano Mateo
On Wed, 1 Sep 2021 01:40:17 GMT, Coleen Phillimore wrote: > Make lock be declared as safepoint_check_never. > Ran tier1-3 tests and test that uses this code: > serviceability/dcmd/gc/ClassHistogramTest.java LGTM. Thanks, Patricio - Marked as reviewed by pchilanomate (Committer).

Re: RFR: 8269466: Factor out the common code for initializing and starting internal VM JavaThreads [v2]

2021-06-30 Thread Patricio Chilano Mateo
On Wed, 30 Jun 2021 01:31:30 GMT, David Holmes wrote: >> Please see the JBS issue for more details, but basically we have 8 different >> kinds of internal VM JavaThreads (grouping the three types of CompilerThread >> together) that all basically duplicated the logic for initializing >> (prepar

Re: RFR: 8265753: Remove manual JavaThread transitions to blocked [v3]

2021-05-26 Thread Patricio Chilano Mateo
On Wed, 26 May 2021 18:30:16 GMT, Robbin Ehn wrote: >> Just for consistency, shouldn't we just use ThreadBlockInVMPreprocess in >> mutex.cpp as we are using it in objectMonitor.cpp? > > You mean revert your change of having the monitor as a parameter to > ThreadBlockInVM? > And instead just pla

Re: RFR: 8265753: Remove manual JavaThread transitions to blocked [v7]

2021-05-26 Thread Patricio Chilano Mateo
On Tue, 25 May 2021 07:06:58 GMT, Robbin Ehn wrote: >> Please consider this change which removes the manual transitions to blocked. >> This adds a preprocess template/functor which is executed in the destructor >> of 'ThreadBlockInVM' if we are going to do any processing. >> This gives us a way

Re: RFR: 8265753: Remove manual JavaThread transitions to blocked [v3]

2021-05-26 Thread Patricio Chilano Mateo
On Mon, 17 May 2021 07:43:06 GMT, Robbin Ehn wrote: >> src/hotspot/share/runtime/interfaceSupport.inline.hpp line 277: >> >>> 275: class ThreadBlockInVM { >>> 276: InFlightMutexRelease _ifmr; >>> 277: ThreadBlockInVMPreprocess _tbivmpp; >> >> Why delegate to the TBIVMPP instead of extending

Re: RFR: 8257831: Suspend with handshakes [v13]

2021-04-20 Thread Patricio Chilano Mateo
On Tue, 20 Apr 2021 06:48:47 GMT, Robbin Ehn wrote: >> A suspend request is done by handshaking thread target thread(s). When >> executing the handshake operation we know the target mutator thread is in a >> dormant state (as in safepoint safe state). We have a guarantee that it will >> check

Re: RFR: 8257831: Suspend with handshakes [v2]

2021-04-19 Thread Patricio Chilano Mateo
On Fri, 9 Apr 2021 15:25:16 GMT, Daniel D. Daugherty wrote: >> If we process the async suspension handshake we can go to safepoint. >> And before safepoint we must drop the tty lock. > > Is this worth a comment above the `break_tty_lock_for_safepoint()` call? I also thought we could remove this

Re: RFR: 8257831: Suspend with handshakes [v2]

2021-04-07 Thread Patricio Chilano Mateo
On Wed, 7 Apr 2021 14:33:00 GMT, Robbin Ehn wrote: >> test/hotspot/jtreg/serviceability/jvmti/SuspendWithCurrentThread/SuspendWithCurrentThread.java >> line 132: >> >>> 130: ThreadToSuspend.setAllThreadsReady(); >>> 131: >>> 132: while (!checkSuspendedStatus()) { >> >>

Re: RFR: 8257831: Suspend with handshakes [v3]

2021-04-06 Thread Patricio Chilano Mateo
On Wed, 31 Mar 2021 08:27:35 GMT, Robbin Ehn wrote: >> A suspend request is done by handshaking thread target thread(s). When >> executing the handshake operation we know the target mutator thread is in a >> dormant state (as in safepoint safe state). We have a guarantee that it will >> check

Re: RFR: 8257831: Suspend with handshakes [v2]

2021-04-06 Thread Patricio Chilano Mateo
On Tue, 6 Apr 2021 15:46:17 GMT, Richard Reingruber wrote: >> (technically this will be ordered by the poll is since polls are only >> disarmed by threads them selfs) >> (meaning if you really promise to call should_process() after you have seen >> "set_suspend(true);" you will see the async ha

Re: RFR: 8264711: More runtime TRAPS cleanups [v2]

2021-04-05 Thread Patricio Chilano Mateo
On Mon, 5 Apr 2021 20:24:31 GMT, Harold Seigel wrote: > Thanks Lois and Patricio for reviewing the change! > I removed my bogus change to ObjectSynchronizer::jni_exit() which also made > calls consistent in jfrJavaSupport.cpp. > Harold Thanks Harold! Fix looks good. - PR: https://g

Re: RFR: 8264711: More runtime TRAPS cleanups [v2]

2021-04-05 Thread Patricio Chilano Mateo
On Mon, 5 Apr 2021 20:27:53 GMT, Harold Seigel wrote: >> Please review this additional cleanup of use of TRAPS in hotspot runtime >> code. The changes were tested with Mach5 tiers 1-2 on Linux, Mac OS, and >> Windows and Mach5 tiers 3-5 on Linux x64. >> >> Thanks, Harold > > Harold Seigel has

Re: RFR: 8264711: More runtime TRAPS cleanups

2021-04-05 Thread Patricio Chilano Mateo
On Mon, 5 Apr 2021 17:57:13 GMT, Harold Seigel wrote: > Please review this additional cleanup of use of TRAPS in hotspot runtime > code. The changes were tested with Mach5 tiers 1-2 on Linux, Mac OS, and > Windows and Mach5 tiers 3-5 on Linux x64. > > Thanks, Harold Hi Harold, I looked at t

Re: RFR: 8257831: Suspend with handshakes [v3]

2021-03-31 Thread Patricio Chilano Mateo
On Wed, 31 Mar 2021 06:32:40 GMT, David Holmes wrote: >> Robbin Ehn has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains three commits: >> >> - Merge branch 'master' into SuspendInHandshake >> - Merge branch 'master' into SuspendInHa

Re: RFR: 8257831: Suspend with handshakes [v3]

2021-03-31 Thread Patricio Chilano Mateo
On Wed, 31 Mar 2021 08:27:35 GMT, Robbin Ehn wrote: >> A suspend request is done by handshaking thread target thread(s). When >> executing the handshake operation we know the target mutator thread is in a >> dormant state (as in safepoint safe state). We have a guarantee that it will >> check

Re: RFR: 8257831: Suspend with handshakes [v2]

2021-03-31 Thread Patricio Chilano Mateo
On Tue, 30 Mar 2021 13:26:13 GMT, Richard Reingruber wrote: >> Robbin Ehn has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains two commits: >> >> - Merge branch 'master' into SuspendInHandshake >> - 8257831: Suspend with handshake (r

Re: RFR: 8257831: Suspend with handshakes [v3]

2021-03-31 Thread Patricio Chilano Mateo
On Wed, 31 Mar 2021 08:27:35 GMT, Robbin Ehn wrote: >> A suspend request is done by handshaking thread target thread(s). When >> executing the handshake operation we know the target mutator thread is in a >> dormant state (as in safepoint safe state). We have a guarantee that it will >> check

Re: RFR: 8262910: Cleanup THREAD/TRAPS/naming and typing issues in ObjectMonitor and related code [v3]

2021-03-04 Thread Patricio Chilano Mateo
On Wed, 3 Mar 2021 19:24:17 GMT, Patricio Chilano Mateo wrote: >> David Holmes has updated the pull request incrementally with one additional >> commit since the last revision: >> >> More pointer declaration style fixups > > Hi David, > > Changes look

Re: RFR: 8262910: Cleanup THREAD/TRAPS/naming and typing issues in ObjectMonitor and related code

2021-03-03 Thread Patricio Chilano Mateo
On Wed, 3 Mar 2021 05:15:48 GMT, David Holmes wrote: > ObjectMonitors can only be used by JavaThreads (modulo some interactions with > hashcodes and deflation) but we use "Thread*" almost everywhere mainly due to > use of TRAPS (and TRAPS will itself use JavaThread once JDK-8252685 is done). >

Re: RFR: 8231627: ThreadsListHandleInErrorHandlingTest.java fails in printing all threads [v2]

2021-01-05 Thread Patricio Chilano Mateo
On Tue, 5 Jan 2021 23:45:06 GMT, Coleen Phillimore wrote: >> Daniel D. Daugherty has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Address comments from coleenp and pchilano. > > LGTM! Looks good, thanks Dan! - PR: https://g

Re: RFR: 8231627: runtime/ErrorHandling/ThreadsListHandleInErrorHandlingTest.java fails because error occurred during printing all threads

2021-01-04 Thread Patricio Chilano Mateo
On Thu, 24 Dec 2020 17:33:21 GMT, Daniel D. Daugherty wrote: > A small robustness fix in ThreadsSMRSupport::print_info_on() to reduce the > likelihood of crashes during error reporting. Uses Threads_lock->try_lock() > for safety and restricts some reporting to when the Threads_lock has been > ac

Integrated: 8258057: serviceability/attach/RemovingUnixDomainSocketTest.java doesn't ignore VM warnings

2020-12-17 Thread Patricio Chilano Mateo
On Fri, 11 Dec 2020 17:25:33 GMT, Patricio Chilano Mateo wrote: > Hi, > > Please review the following small fix for test > RemovingUnixDomainSocketTest.java. As explained in the bug comments, the > issue is due to having two different StreamPumper objects consuming from the

Re: RFR: 8258057: serviceability/attach/RemovingUnixDomainSocketTest.java doesn't ignore VM warnings [v2]

2020-12-17 Thread Patricio Chilano Mateo
On Tue, 15 Dec 2020 20:52:36 GMT, Alex Menkov wrote: >> Patricio Chilano Mateo has updated the pull request incrementally with one >> additional commit since the last revision: >> >> include 'VM Warning' in stderr search > > Marked as reviewed by

Re: RFR: 8258057: serviceability/attach/RemovingUnixDomainSocketTest.java doesn't ignore VM warnings [v2]

2020-12-16 Thread Patricio Chilano Mateo
On Wed, 16 Dec 2020 01:19:43 GMT, David Holmes wrote: >> Patricio Chilano Mateo has updated the pull request incrementally with one >> additional commit since the last revision: >> >> include 'VM Warning' in stderr search > > test/lib/jdk/test

Re: RFR: 8258057: serviceability/attach/RemovingUnixDomainSocketTest.java doesn't ignore VM warnings [v2]

2020-12-16 Thread Patricio Chilano Mateo
entioned in 8248162 > we might not want to hide all warning messages. > > Without the patch I can consistently reproduce the issue. With the patch the > test always passes. > > Thanks, > Patricio Patricio Chilano Mateo has updated the pull request incrementally with one ad

Re: RFR: 8258057: serviceability/attach/RemovingUnixDomainSocketTest.java doesn't ignore VM warnings

2020-12-15 Thread Patricio Chilano Mateo
test always passes. >> >> Thanks, >> Patricio > > Changes requested by amenkov (Reviewer). > _Mailing list message from [David Holmes](mailto:david.hol...@oracle.com) on > [serviceability-dev](mailto:serviceability-dev@openjdk.java.net):_ > > On 15/12/2020 10:0

Re: RFR: 8258057: serviceability/attach/RemovingUnixDomainSocketTest.java doesn't ignore VM warnings

2020-12-11 Thread Patricio Chilano Mateo
On Fri, 11 Dec 2020 21:47:33 GMT, Patricio Chilano Mateo wrote: >>> Pumpers created by ProcessTools.startProcess() log the process >>> stdout/stderr. >>> It's quite useful for failure analysis. >> >> This was the type of thing I was hinting at

Re: RFR: 8258057: serviceability/attach/RemovingUnixDomainSocketTest.java doesn't ignore VM warnings

2020-12-11 Thread Patricio Chilano Mateo
On Fri, 11 Dec 2020 20:48:23 GMT, Chris Plummer wrote: >> From what I can tell (after a bit of possibly inaccurate grepping) this is >> the only test that uses `PrcoessTools.startProcess()` in combination with >> `out.stderrShouldBeEmtpyIgnoreWarnings()`, so I assume this issue of split >> std

RFR: 8258057: serviceability/attach/RemovingUnixDomainSocketTest.java doesn't ignore VM warnings

2020-12-11 Thread Patricio Chilano Mateo
Hi, Please review the following small fix for test RemovingUnixDomainSocketTest.java. As explained in the bug comments, the issue is due to having two different StreamPumper objects consuming from the same stderr, one created by ProcessTools.startProcess() and another by OutputAnalyzer(). In t

Re: RFR: 8244679: JVM/TI GetCurrentContendedMonitor/contmon001 failed due to "(IsSameObject#3) unexpected monitor object: 0x000000562336DBA8"

2020-11-11 Thread Patricio Chilano Mateo
On Wed, 11 Nov 2020 20:33:15 GMT, Robbin Ehn wrote: > As the stack trace in the bug shows, we cannot load classes, since we may > take a monitor. > Resulting in an unexpected result to GetCurrentContendedMonitor(). > Trying to use some decent primitive, e.g. Wicket/Semaphore/.., without being >

Re: RFR: 8244679: JVM/TI GetCurrentContendedMonitor/contmon001 failed due to "(IsSameObject#3) unexpected monitor object: 0x000000562336DBA8"

2020-11-11 Thread Patricio Chilano Mateo
On Wed, 11 Nov 2020 20:33:15 GMT, Robbin Ehn wrote: > As the stack trace in the bug shows, we cannot load classes, since we may > take a monitor. > Resulting in an unexpected result to GetCurrentContendedMonitor(). > Trying to use some decent primitive, e.g. Wicket/Semaphore/.., without being >

Re: RFR: 8244679: JVM/TI GetCurrentContendedMonitor/contmon001 failed due to "(IsSameObject#3) unexpected monitor object: 0x000000562336DBA8"

2020-11-11 Thread Patricio Chilano Mateo
On Wed, 11 Nov 2020 20:33:15 GMT, Robbin Ehn wrote: > As the stack trace in the bug shows, we cannot load classes, since we may > take a monitor. > Resulting in an unexpected result to GetCurrentContendedMonitor(). > Trying to use some decent primitive, e.g. Wicket/Semaphore/.., without being >

Re: RFR: 8238761: Asynchronous handshakes [v5]

2020-09-22 Thread Patricio Chilano Mateo
On Tue, 22 Sep 2020 07:54:57 GMT, Robbin Ehn wrote: >> This patch implements asynchronous handshake, which changes how handshakes >> works by default. Asynchronous handshakes >> are target only executed, which they may never be executed. (target may >> block on socket for the rest of VM lifetim

Re: RFR: 8238761: Asynchronous handshakes [v2]

2020-09-18 Thread Patricio Chilano Mateo
On Thu, 17 Sep 2020 18:57:33 GMT, Patricio Chilano Mateo wrote: >> Robbin Ehn has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fixed double checks >> Added NSV >> ProcessResult t

Re: RFR: 8238761: Asynchronous handshakes [v2]

2020-09-17 Thread Patricio Chilano Mateo
On Thu, 17 Sep 2020 12:07:15 GMT, Robbin Ehn wrote: >> This patch implements asynchronous handshake, which changes how handshakes >> works by default. Asynchronous handshakes >> are target only executed, which they may never be executed. (target may >> block on socket for the rest of VM lifetim

Re: RFR: 8238761: Asynchronous handshakes

2020-09-16 Thread Patricio Chilano
Hi Robbin, Changes look good to me! Some minor comments: src/hotspot/share/prims/jvmtiThreadState.cpp 222:   assert(current_thread == get_thread() || 223:  SafepointSynchronize::is_at_safepoint() || 224: get_thread()->is_handshake_safe_for(current_thread), 225:  "call by myself /

Re: RFR: 8242427: JVMTI frame pop operations should use Thread-Local Handshakes

2020-08-28 Thread Patricio Chilano
Hi Yasumasa, On 8/27/20 10:18 PM, Yasumasa Suenaga wrote: Hi Patricio, On 2020/08/27 15:20, Patricio Chilano wrote: Hi Yasumasa, On 8/26/20 8:57 PM, Yasumasa Suenaga wrote: Hi Patricio, Thanks for your review, but webrev.00 has been rotten. Can you review webrev.02?   webrev: http

Re: RFR: 8242427: JVMTI frame pop operations should use Thread-Local Handshakes

2020-08-26 Thread Patricio Chilano
safepoint? Thanks, Patricio Thanks, Yasumasa On 2020/08/27 7:50, Patricio Chilano wrote: Hi Yasumasa, On 8/26/20 4:34 AM, Yasumasa Suenaga wrote: Hi Patricio, David, Thanks for your comment! I updated webrev which includes the fix which is commented by Patricio, and it passed submit repo. So

Re: RFR: 8242427: JVMTI frame pop operations should use Thread-Local Handshakes

2020-08-26 Thread Patricio Chilano
On 2020/08/26 10:13, Patricio Chilano wrote: Hi Yasumasa, On 8/23/20 11:40 PM, Yasumasa Suenaga wrote: Hi all, I want to hear your opinions about the change for JDK-8242427. I'm trying to migrate following operations to direct handshake.     - VM_UpdateForPopTopFrame     - VM_SetFra

Re: 8242427: JVMTI frame pop operations should use Thread-Local Handshakes

2020-08-25 Thread Patricio Chilano
Hi Yasumasa, On 8/23/20 11:40 PM, Yasumasa Suenaga wrote: Hi all, I want to hear your opinions about the change for JDK-8242427. I'm trying to migrate following operations to direct handshake.     - VM_UpdateForPopTopFrame     - VM_SetFramePop     - VM_GetCurrentLocation Some operations (VM_

Re: RFR: 8242428: JVMTI thread operations should use Thread-Local Handshake

2020-07-09 Thread Patricio Chilano
http://hg.openjdk.java.net/jdk/submit/file/45f52142db9d/test/hotspot/jtreg/serviceability/jvmti/GetThreadListStackTraces/libOneGetThreadListStackTraces.cpp On 2020/07/10 2:18, Patricio Chilano wrote: On 7/9/20 12:00 PM, Patricio Chilano wrote: Hi Yasumasa, On 7/9/20 9:30 AM, Yasumasa Suenaga wrote: On 2020/

Re: RFR: 8242428: JVMTI thread operations should use Thread-Local Handshake

2020-07-09 Thread Patricio Chilano
On 7/9/20 12:00 PM, Patricio Chilano wrote: Hi Yasumasa, On 7/9/20 9:30 AM, Yasumasa Suenaga wrote: On 2020/07/09 17:58, David Holmes wrote: Hi Yasumasa, On 9/07/2020 10:25 am, Yasumasa Suenaga wrote: Hi Dan, Thanks for your comment! I uploaded new webrev: http://cr.openjdk.java.net

Re: RFR: 8242428: JVMTI thread operations should use Thread-Local Handshake

2020-07-09 Thread Patricio Chilano
Hi Yasumasa, On 7/9/20 9:30 AM, Yasumasa Suenaga wrote: On 2020/07/09 17:58, David Holmes wrote: Hi Yasumasa, On 9/07/2020 10:25 am, Yasumasa Suenaga wrote: Hi Dan, Thanks for your comment! I uploaded new webrev:    http://cr.openjdk.java.net/~ysuenaga/JDK-8242428/webrev.09/    Diff from pr

Re: RFR(S) 8238585: Use handshake for JvmtiEventControllerPrivate::enter_interp_only_mode() and don't make compiled methods on stack not_entrant

2020-04-25 Thread Patricio Chilano
change in the middle of the handshake actually changed. Thanks, Patricio I'll look a bit more at the updated patch but at first glance looks good. Thanks, Richard. -Original Message- From: Patricio Chilano Sent: Freitag, 24. April 2020 19:14 To: Reingruber, Richard ; Yasumasa

Re: RFR(S) 8238585: Use handshake for JvmtiEventControllerPrivate::enter_interp_only_mode() and don't make compiled methods on stack not_entrant

2020-04-24 Thread Patricio Chilano
s://bugs.openjdk.java.net/browse/JDK-8230594?focusedCommentId=14301763&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14301763 -Original Message- From: Yasumasa Suenaga Sent: Freitag, 24. April 2020 17:23 To: Reingruber, Richard ; Patricio Chilan

Re: RFR 8240902: JDI shared memory connector can use already closed Handles

2020-03-19 Thread Patricio Chilano
    No comments. Thumbs up. Thanks for looking at this Dan! Patricio Dan On 3/19/20 2:18 AM, Patricio Chilano wrote: Hi David, On 3/18/20 8:10 PM, David Holmes wrote: Hi Patricio, On 19/03/2020 6:44 am, Patricio Chilano wrote: Hi David, On 3/18/20 4:27 AM, David Holmes wrote: Hi Pat

Re: RFR 8240902: JDI shared memory connector can use already closed Handles

2020-03-19 Thread Patricio Chilano
Thanks David! Patricio On 3/19/20 4:50 AM, David Holmes wrote: Hi Patricio, Incremental changes look good. Thanks, David On 19/03/2020 4:18 pm, Patricio Chilano wrote: Hi David, On 3/18/20 8:10 PM, David Holmes wrote: Hi Patricio, On 19/03/2020 6:44 am, Patricio Chilano wrote: Hi David

Re: RFR 8240902: JDI shared memory connector can use already closed Handles

2020-03-18 Thread Patricio Chilano
Hi David, On 3/18/20 8:10 PM, David Holmes wrote: Hi Patricio, On 19/03/2020 6:44 am, Patricio Chilano wrote: Hi David, On 3/18/20 4:27 AM, David Holmes wrote: Hi Patricio, On 18/03/2020 6:14 am, Patricio Chilano wrote: Hi all, Please review the following patch: Bug: https

Re: RFR 8240902: JDI shared memory connector can use already closed Handles

2020-03-18 Thread Patricio Chilano
vePacket_internal(connection, packet); 1234 LEAVE_CONNECTION(connection); 1235 return rc; 1236 } Done. Fix all those. Some other nits were already commented by David and Dan. I'd suggest to test with tier-5 as well for more safety. Thanks for looking at this Serguei! I'll give it a

Re: RFR 8240902: JDI shared memory connector can use already closed Handles

2020-03-18 Thread Patricio Chilano
Hi Dan, On 3/18/20 5:30 PM, Daniel D. Daugherty wrote: On 3/17/20 4:14 PM, Patricio Chilano wrote: Hi all, Please review the following patch: Bug: https://bugs.openjdk.java.net/browse/JDK-8240902 Webrev: http://cr.openjdk.java.net/~pchilanomate/8240902/v1/webrev/ src/jdk.jdi/share/native

Re: RFR 8240902: JDI shared memory connector can use already closed Handles

2020-03-18 Thread Patricio Chilano
Hi David, On 3/18/20 4:27 AM, David Holmes wrote: Hi Patricio, On 18/03/2020 6:14 am, Patricio Chilano wrote: Hi all, Please review the following patch: Bug: https://bugs.openjdk.java.net/browse/JDK-8240902 Webrev: http://cr.openjdk.java.net/~pchilanomate/8240902/v1/webrev/ Calling

RFR 8240902: JDI shared memory connector can use already closed Handles

2020-03-17 Thread Patricio Chilano
Hi all, Please review the following patch: Bug: https://bugs.openjdk.java.net/browse/JDK-8240902 Webrev: http://cr.openjdk.java.net/~pchilanomate/8240902/v1/webrev/ Calling closeConnection() on an already created/opened connection includes calls to CloseHandle() on objects that can still be us

Re: RFR(S) 8238585: Use handshake for JvmtiEventControllerPrivate::enter_interp_only_mode() and don't make compiled methods on stack not_entrant

2020-02-14 Thread Patricio Chilano
rther encouraged to do it with a handshake :) Ah! I think you can still do it with a handshake with the Deoptimization::deoptimize_all_marked() like solution. I can change the if-else statement with just the Handshake::execute() call in 8239084. But up to you.  : ) Thanks, Patricio Thanks again, Richar

Re: RFR(S) 8238585: Use handshake for JvmtiEventControllerPrivate::enter_interp_only_mode() and don't make compiled methods on stack not_entrant

2020-02-13 Thread Patricio Chilano
Hi Richard, I’m only commenting on the handshake changes. I see that operation VM_EnterInterpOnlyMode can be called inside operation VM_SetFramePop which also allows nested operations. Here is a comment in VM_SetFramePop definition: // Nested operation must be allowed for the VM_EnterInterpOn

Re: RFR 8215050: [TESTBUG] serviceability/tmtools/jstack/WaitNotifyThreadTest.java fails when run with flag -Xcomp

2018-12-08 Thread Patricio Chilano
Hi David, On 12/8/18 6:21 PM, David Holmes wrote: Hi Patricio, On 9/12/2018 9:04 am, Patricio Chilano wrote: Hi, Could you review this small fix for test serviceability/tmtools/jstack/WaitNotifyThreadTest.java ? After change 8214148 the test fails if the flag -Xcomp is used as explained in

RFR 8215050: [TESTBUG] serviceability/tmtools/jstack/WaitNotifyThreadTest.java fails when run with flag -Xcomp

2018-12-08 Thread Patricio Chilano
Hi, Could you review this small fix for test serviceability/tmtools/jstack/WaitNotifyThreadTest.java ? After change 8214148 the test fails if the flag -Xcomp is used as explained in the bug details. The proposed change is to identified this special case and set the monitor address to match the

Re: RFR 8214148: [TESTBUG] serviceability/tmtools/jstack/WaitNotifyThreadTest.java is not doing what is expected

2018-12-04 Thread Patricio Chilano
Thanks David! Patricio On 12/3/18 11:30 PM, David Holmes wrote: Looks good! Thanks, David On 4/12/2018 2:48 am, Patricio Chilano wrote: Hi David, On 12/3/18 2:14 AM, David Holmes wrote: Hi Patricio, On 1/12/2018 2:31 am, Patricio Chilano wrote: Hi David, On 11/29/18 8:05 PM, David

Re: RFR 8214148: [TESTBUG] serviceability/tmtools/jstack/WaitNotifyThreadTest.java is not doing what is expected

2018-12-03 Thread Patricio Chilano
Hi David, On 12/3/18 2:14 AM, David Holmes wrote: Hi Patricio, On 1/12/2018 2:31 am, Patricio Chilano wrote: Hi David, On 11/29/18 8:05 PM, David Holmes wrote: Hi Patricio, This seems very complicated and I'm not quite seeing how it all goes together. The check for waiting to re-loc

Re: RFR 8214148: [TESTBUG] serviceability/tmtools/jstack/WaitNotifyThreadTest.java is not doing what is expected

2018-11-30 Thread Patricio Chilano
fyAll();    <= take stack dump here => } Cheers, David On 30/11/2018 5:52 am, Daniel D. Daugherty wrote: Adding serviceability-dev@... since the 'tmtools' including 'jstack' are owned by the Serviceability team. Dan On 11/28/18 4:21 PM, Patricio Chilano wrote: Hi all,