Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v7]

2022-07-01 Thread Chris Plummer
On Sat, 2 Jul 2022 05:16:22 GMT, Chris Plummer wrote: >> test/jdk/com/sun/jdi/SuspendAfterDeath.java line 73: >> >>> 71: >>> 72: public class SuspendAfterDeath extends TestScaffold { >>> 73: private volatile ThreadReference thread; >> >> One minor naming suggestion: >> The name `thread` is

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v8]

2022-07-01 Thread Chris Plummer
On Sat, 2 Jul 2022 06:21:36 GMT, Chris Plummer wrote: >> This fixes a bug in the debug agent when there is a request to suspend a >> virtual thread that has already terminated. The issue was that unless the >> debug agent was currently under a "suspend all", it would not properly put >> the vi

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v9]

2022-07-01 Thread Chris Plummer
> This fixes a bug in the debug agent when there is a request to suspend a > virtual thread that has already terminated. The issue was that unless the > debug agent was currently under a "suspend all", it would not properly put > the virtual thread on the `otherThreads` list, and instead added i

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v8]

2022-07-01 Thread Chris Plummer
> This fixes a bug in the debug agent when there is a request to suspend a > virtual thread that has already terminated. The issue was that unless the > debug agent was currently under a "suspend all", it would not properly put > the virtual thread on the `otherThreads` list, and instead added i

[jdk19] Integrated: 8288703: GetThreadState returns 0 for virtual thread that has terminated

2022-07-01 Thread Serguei Spitsyn
On Fri, 1 Jul 2022 17:47:51 GMT, Serguei Spitsyn wrote: > This is fixing the JVM TI GetThreadState issue which returns for terminated > virtual thread state = 0 instead of 2 (`JVMTI_THREAD_STATE_TERMINATED`). The > problem was in the function `JvmtiEnvBase::get_threadOop_and_JavaThread` > whic

Re: [jdk19] RFR: 8288703: GetThreadState returns 0 for virtual thread that has terminated [v3]

2022-07-01 Thread Serguei Spitsyn
On Sat, 2 Jul 2022 03:35:11 GMT, Serguei Spitsyn wrote: >> This is fixing the JVM TI GetThreadState issue which returns for terminated >> virtual thread state = 0 instead of 2 (`JVMTI_THREAD_STATE_TERMINATED`). The >> problem was in the function `JvmtiEnvBase::get_threadOop_and_JavaThread` >>

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v7]

2022-07-01 Thread Serguei Spitsyn
On Sat, 2 Jul 2022 05:23:04 GMT, Chris Plummer wrote: >> test/jdk/com/sun/jdi/TestScaffold.java line 976: >> >>> 974: } >>> 975: }); >>> 976: Thread.currentThread().setName(OLD_MAIN_THREAD_NAME); >> >> Just want to understand what is this thread naming is

Re: [jdk19] RFR: 8289439: Clarify relationship between ThreadStart/ThreadEnd and can_support_virtual_threads capability

2022-07-01 Thread Chris Plummer
On Thu, 30 Jun 2022 13:20:22 GMT, Alan Bateman wrote: > The description of the ThreadStart/End events in the JVM TI spec needs > rewording to make it clearer when these events are sent for virtual threads > and when VirtualThreadXXX events are sent instead. Marked as reviewed by cjplummer (Rev

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v7]

2022-07-01 Thread Chris Plummer
On Sat, 2 Jul 2022 02:32:09 GMT, Serguei Spitsyn wrote: >> Chris Plummer has updated the pull request incrementally with one additional >> commit since the last revision: >> >> provide a slightly more descriptive @summary > > test/jdk/com/sun/jdi/SuspendAfterDeath.java line 73: > >> 71: >>

Re: [jdk19] RFR: 8288703: GetThreadState returns 0 for virtual thread that has terminated [v3]

2022-07-01 Thread Alan Bateman
On Sat, 2 Jul 2022 03:22:31 GMT, Serguei Spitsyn wrote: > Interesting enough that I've found the existing test which already had needed > coverage: ` > test/hotspot/jtreg/serviceability/jvmti/thread/GetThreadState/thrstat03` But > this test was adjusted to adopt to incorrect GetThreadState res

Re: [jdk19] RFR: 8288703: GetThreadState returns 0 for virtual thread that has terminated [v3]

2022-07-01 Thread Alan Bateman
On Sat, 2 Jul 2022 03:35:11 GMT, Serguei Spitsyn wrote: >> This is fixing the JVM TI GetThreadState issue which returns for terminated >> virtual thread state = 0 instead of 2 (`JVMTI_THREAD_STATE_TERMINATED`). The >> problem was in the function `JvmtiEnvBase::get_threadOop_and_JavaThread` >>

Re: RFR: 8289230: Move PlatformXXX class declarations out of os_xxx.hpp [v4]

2022-07-01 Thread Ioi Lam
> There are only two implementations of these classes (one for windows, and one > for posix): > > - PlatformEvent > - PlatformParker > - PlatformMutex > - PlatformMonitor > - ThreadCrashProtection > > Before this PR, these classes are declared in os_xxx.hpp. This causes > excessive inclusion of

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v7]

2022-07-01 Thread Serguei Spitsyn
On Fri, 1 Jul 2022 18:17:35 GMT, Chris Plummer wrote: >> This fixes a bug in the debug agent when there is a request to suspend a >> virtual thread that has already terminated. The issue was that unless the >> debug agent was currently under a "suspend all", it would not properly put >> the vi

Re: [jdk19] RFR: 8288703: GetThreadState returns 0 for virtual thread that has terminated [v3]

2022-07-01 Thread Serguei Spitsyn
> This is fixing the JVM TI GetThreadState issue which returns for terminated > virtual thread state = 0 instead of 2 (`JVMTI_THREAD_STATE_TERMINATED`). The > problem was in the function `JvmtiEnvBase::get_threadOop_and_JavaThread` > which does a check and reurns JVMTI_ERROR_THREAD_NOT_ALIVE a l

Re: [jdk19] RFR: 8288703: GetThreadState returns 0 for virtual thread that has terminated [v2]

2022-07-01 Thread Serguei Spitsyn
On Sat, 2 Jul 2022 03:10:05 GMT, Serguei Spitsyn wrote: >> test/hotspot/jtreg/serviceability/jvmti/vthread/SelfSuspendDisablerTest/libSelfSuspendDisablerTest.cpp >> line 68: >> >>> 66: } >>> 67: >>> 68: } >> >> it might be helpful to add >> >> // extern "C" >> >> after the brace as it con

Re: [jdk19] RFR: 8288703: GetThreadState returns 0 for virtual thread that has terminated [v2]

2022-07-01 Thread Serguei Spitsyn
On Fri, 1 Jul 2022 19:59:25 GMT, Chris Plummer wrote: >> Serguei Spitsyn has updated the pull request incrementally with one >> additional commit since the last revision: >> >> fix serviceability/jvmti/thread/thrstat03 to except correct GetThreadState >> result for terminated vthreads > > te

Re: [jdk19] RFR: 8288703: GetThreadState returns 0 for virtual thread that has terminated [v2]

2022-07-01 Thread Serguei Spitsyn
On Fri, 1 Jul 2022 18:51:55 GMT, Alan Bateman wrote: >> Serguei Spitsyn has updated the pull request incrementally with one >> additional commit since the last revision: >> >> fix serviceability/jvmti/thread/thrstat03 to except correct GetThreadState >> result for terminated vthreads > > tes

Re: [jdk19] RFR: 8288703: GetThreadState returns 0 for virtual thread that has terminated [v2]

2022-07-01 Thread Serguei Spitsyn
On Fri, 1 Jul 2022 18:53:36 GMT, Alan Bateman wrote: >> Serguei Spitsyn has updated the pull request incrementally with one >> additional commit since the last revision: >> >> fix serviceability/jvmti/thread/thrstat03 to except correct GetThreadState >> result for terminated vthreads > > tes

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v7]

2022-07-01 Thread Serguei Spitsyn
On Fri, 1 Jul 2022 18:17:35 GMT, Chris Plummer wrote: >> This fixes a bug in the debug agent when there is a request to suspend a >> virtual thread that has already terminated. The issue was that unless the >> debug agent was currently under a "suspend all", it would not properly put >> the vi

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v7]

2022-07-01 Thread Serguei Spitsyn
On Fri, 1 Jul 2022 18:17:35 GMT, Chris Plummer wrote: >> This fixes a bug in the debug agent when there is a request to suspend a >> virtual thread that has already terminated. The issue was that unless the >> debug agent was currently under a "suspend all", it would not properly put >> the vi

Re: [jdk19] RFR: 8288703: GetThreadState returns 0 for virtual thread that has terminated [v2]

2022-07-01 Thread Chris Plummer
On Fri, 1 Jul 2022 21:48:29 GMT, Serguei Spitsyn wrote: >> This is fixing the JVM TI GetThreadState issue which returns for terminated >> virtual thread state = 0 instead of 2 (`JVMTI_THREAD_STATE_TERMINATED`). The >> problem was in the function `JvmtiEnvBase::get_threadOop_and_JavaThread` >>

Re: RFR: 8289230: Move PlatformXXX class declarations out of os_xxx.hpp [v3]

2022-07-01 Thread Calvin Cheung
On Tue, 28 Jun 2022 20:13:01 GMT, Ioi Lam wrote: >> There are only two implementations of these classes (one for windows, and >> one for posix): >> >> - PlatformEvent >> - PlatformParker >> - PlatformMutex >> - PlatformMonitor >> - ThreadCrashProtection >> >> Before this PR, these classes are

Re: [jdk19] RFR: 8288703: GetThreadState returns 0 for virtual thread that has terminated [v2]

2022-07-01 Thread Serguei Spitsyn
> This is fixing the JVM TI GetThreadState issue which returns for terminated > virtual thread state = 0 instead of 2 (`JVMTI_THREAD_STATE_TERMINATED`). The > problem was in the function `JvmtiEnvBase::get_threadOop_and_JavaThread` > which does a check and reurns JVMTI_ERROR_THREAD_NOT_ALIVE a l

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v7]

2022-07-01 Thread Chris Plummer
On Fri, 1 Jul 2022 18:17:35 GMT, Chris Plummer wrote: >> This fixes a bug in the debug agent when there is a request to suspend a >> virtual thread that has already terminated. The issue was that unless the >> debug agent was currently under a "suspend all", it would not properly put >> the vi

Re: [jdk19] RFR: 8288703: GetThreadState returns 0 for virtual thread that has terminated

2022-07-01 Thread Chris Plummer
On Fri, 1 Jul 2022 17:47:51 GMT, Serguei Spitsyn wrote: > This is fixing the JVM TI GetThreadState issue which returns for terminated > virtual thread state = 0 instead of 2 (`JVMTI_THREAD_STATE_TERMINATED`). The > problem was in the function `JvmtiEnvBase::get_threadOop_and_JavaThread` > whic

Re: [jdk19] RFR: 8289439: Clarify relationship between ThreadStart/ThreadEnd and can_support_virtual_threads capability

2022-07-01 Thread Alan Bateman
On Fri, 1 Jul 2022 18:49:52 GMT, Chris Plummer wrote: > Is there a reason you chose to use "by" instead of "for"? The specification of these two events have always used "generated by" in the first sentence of the description so it's just keeping it consistent. The thread lifecycle events are

Re: [jdk19] RFR: 8288703: GetThreadState returns 0 for virtual thread that has terminated

2022-07-01 Thread Alex Menkov
On Fri, 1 Jul 2022 17:47:51 GMT, Serguei Spitsyn wrote: > This is fixing the JVM TI GetThreadState issue which returns for terminated > virtual thread state = 0 instead of 2 (`JVMTI_THREAD_STATE_TERMINATED`). The > problem was in the function `JvmtiEnvBase::get_threadOop_and_JavaThread` > whic

Re: [jdk19] RFR: 8288703: GetThreadState returns 0 for virtual thread that has terminated

2022-07-01 Thread Alan Bateman
On Fri, 1 Jul 2022 17:47:51 GMT, Serguei Spitsyn wrote: > This is fixing the JVM TI GetThreadState issue which returns for terminated > virtual thread state = 0 instead of 2 (`JVMTI_THREAD_STATE_TERMINATED`). The > problem was in the function `JvmtiEnvBase::get_threadOop_and_JavaThread` > whic

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v7]

2022-07-01 Thread Alan Bateman
On Fri, 1 Jul 2022 18:17:35 GMT, Chris Plummer wrote: >> This fixes a bug in the debug agent when there is a request to suspend a >> virtual thread that has already terminated. The issue was that unless the >> debug agent was currently under a "suspend all", it would not properly put >> the vi

Re: [jdk19] RFR: 8289439: Clarify relationship between ThreadStart/ThreadEnd and can_support_virtual_threads capability

2022-07-01 Thread Chris Plummer
On Thu, 30 Jun 2022 13:20:22 GMT, Alan Bateman wrote: > The description of the ThreadStart/End events in the JVM TI spec needs > rewording to make it clearer when these events are sent for virtual threads > and when VirtualThreadXXX events are sent instead. src/hotspot/share/prims/jvmti.xml li

Re: RFR: 8256811: Delayed/missed jdwp class unloading events [v12]

2022-07-01 Thread Chris Plummer
On Fri, 1 Jul 2022 12:57:55 GMT, Zhengyu Gu wrote: >> Currently, jdi only check and process class unloading event when it detects >> a new GC cycle. >> >> After [JDK-8212879](https://bugs.openjdk.org/browse/JDK-8212879), posting >> class events can overlap with GC finish event, that results, s

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v7]

2022-07-01 Thread Chris Plummer
> This fixes a bug in the debug agent when there is a request to suspend a > virtual thread that has already terminated. The issue was that unless the > debug agent was currently under a "suspend all", it would not properly put > the virtual thread on the `otherThreads` list, and instead added i

[jdk19] RFR: 8288703: GetThreadState returns 0 for virtual thread that has terminated

2022-07-01 Thread Serguei Spitsyn
This is fixing the JVM TI GetThreadState issue which returns for terminated virtual thread state = 0 instead of 2 (`JVMTI_THREAD_STATE_TERMINATED`). The problem was in the function `JvmtiEnvBase::get_threadOop_and_JavaThread` which does a check and reurns JVMTI_ERROR_THREAD_NOT_ALIVE a little bi

Re: [jdk19] RFR: 8289439: Clarify relationship between ThreadStart/ThreadEnd and can_support_virtual_threads capability

2022-07-01 Thread Serguei Spitsyn
On Thu, 30 Jun 2022 13:20:22 GMT, Alan Bateman wrote: > The description of the ThreadStart/End events in the JVM TI spec needs > rewording to make it clearer when these events are sent for virtual threads > and when VirtualThreadXXX events are sent instead. Looks good. Thanks, Serguei ---

[jdk19] Integrated: 8289585: ProblemList sun/tools/jhsdb/JStackStressTest.java on linux-aarch64

2022-07-01 Thread Daniel D . Daugherty
On Fri, 1 Jul 2022 16:12:17 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList sun/tools/jhsdb/JStackStressTest.java on > linux-aarch64. This pull request has now been integrated. Changeset: 20124ac7 Author:Daniel D. Daugherty URL: https://git.openjdk.org/jdk19/commit/

Re: [jdk19] RFR: 8289585: ProblemList sun/tools/jhsdb/JStackStressTest.java on linux-aarch64

2022-07-01 Thread Daniel D . Daugherty
On Fri, 1 Jul 2022 16:16:50 GMT, Kevin Walls wrote: >> A trivial fix to ProblemList sun/tools/jhsdb/JStackStressTest.java on >> linux-aarch64. > > Marked as reviewed by kevinw (Committer). @kevinjwalls - Thanks for the fast review! - PR: https://git.openjdk.org/jdk19/pull/100

Re: [jdk19] RFR: 8289585: ProblemList sun/tools/jhsdb/JStackStressTest.java on linux-aarch64

2022-07-01 Thread Daniel D . Daugherty
On Fri, 1 Jul 2022 16:13:56 GMT, Brian Burkhalter wrote: >> A trivial fix to ProblemList sun/tools/jhsdb/JStackStressTest.java on >> linux-aarch64. > > Marked as reviewed by bpb (Reviewer). @bplb - Thanks for the lightning fast review! - PR: https://git.openjdk.org/jdk19/pull/100

Re: [jdk19] RFR: 8289585: ProblemList sun/tools/jhsdb/JStackStressTest.java on linux-aarch64

2022-07-01 Thread Kevin Walls
On Fri, 1 Jul 2022 16:12:17 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList sun/tools/jhsdb/JStackStressTest.java on > linux-aarch64. Marked as reviewed by kevinw (Committer). - PR: https://git.openjdk.org/jdk19/pull/100

Re: [jdk19] RFR: 8289585: ProblemList sun/tools/jhsdb/JStackStressTest.java on linux-aarch64

2022-07-01 Thread Brian Burkhalter
On Fri, 1 Jul 2022 16:12:17 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList sun/tools/jhsdb/JStackStressTest.java on > linux-aarch64. Marked as reviewed by bpb (Reviewer). - PR: https://git.openjdk.org/jdk19/pull/100

[jdk19] RFR: 8289585: ProblemList sun/tools/jhsdb/JStackStressTest.java on linux-aarch64

2022-07-01 Thread Daniel D . Daugherty
A trivial fix to ProblemList sun/tools/jhsdb/JStackStressTest.java on linux-aarch64. - Commit messages: - 8289585: ProblemList sun/tools/jhsdb/JStackStressTest.java on linux-aarch64 Changes: https://git.openjdk.org/jdk19/pull/100/files Webrev: https://webrevs.openjdk.org/?repo=jd

Re: [jdk19] RFR: 8289439: Clarify relationship between ThreadStart/ThreadEnd and can_support_virtual_threads capability

2022-07-01 Thread Daniel D . Daugherty
On Thu, 30 Jun 2022 13:20:22 GMT, Alan Bateman wrote: > The description of the ThreadStart/End events in the JVM TI spec needs > rewording to make it clearer when these events are sent for virtual threads > and when VirtualThreadXXX events are sent instead. Thumbs up. - Marked as

Integrated: 8289534: Change 'uncomplicated' hotspot runtime options

2022-07-01 Thread Harold Seigel
On Thu, 30 Jun 2022 18:39:58 GMT, Harold Seigel wrote: > Please review this small fix to change range constrained JVM runtime options > from 64 bits to 32 bits. This fix was tested with Mach5 tiers 1-2 on Linux, > Mac OS, and Windows, and Mach5 tiers 3-5 on Linux x64. > > Thanks, Harold This

Re: RFR: 8289534: Change 'uncomplicated' hotspot runtime options [v2]

2022-07-01 Thread Harold Seigel
On Fri, 1 Jul 2022 12:28:35 GMT, David Holmes wrote: >> Harold Seigel has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix copyright date > > src/hotspot/share/runtime/perfMemory.cpp line 2: > >> 1: /* >> 2: * Copyright (c) 2001, 2021,

Re: RFR: 8289534: Change 'uncomplicated' hotspot runtime options

2022-07-01 Thread Harold Seigel
On Thu, 30 Jun 2022 18:39:58 GMT, Harold Seigel wrote: > Please review this small fix to change range constrained JVM runtime options > from 64 bits to 32 bits. This fix was tested with Mach5 tiers 1-2 on Linux, > Mac OS, and Windows, and Mach5 tiers 3-5 on Linux x64. > > Thanks, Harold Than

Re: RFR: 8289534: Change 'uncomplicated' hotspot runtime options [v2]

2022-07-01 Thread Harold Seigel
> Please review this small fix to change range constrained JVM runtime options > from 64 bits to 32 bits. This fix was 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 updated the pull request incrementally with

Re: RFR: 8256811: Delayed/missed jdwp class unloading events [v9]

2022-07-01 Thread Zhengyu Gu
On Thu, 30 Jun 2022 14:54:47 GMT, Zhengyu Gu wrote: >> I just noticed the test is being added to a newly created >> hotspot/jtreg/serviciability/jdi directory. It should be placed in one of >> the existing jdi test locations, either nsk/jdi or jdk/com/sun/jdi. I think >> the latter would be be

Re: RFR: 8256811: Delayed/missed jdwp class unloading events [v12]

2022-07-01 Thread Zhengyu Gu
> Currently, jdi only check and process class unloading event when it detects a > new GC cycle. > > After [JDK-8212879](https://bugs.openjdk.org/browse/JDK-8212879), posting > class events can overlap with GC finish event, that results, sometimes, it > only captures partial or even empty unload

Re: RFR: 8289534: Change 'uncomplicated' hotspot runtime options

2022-07-01 Thread David Holmes
On Thu, 30 Jun 2022 18:39:58 GMT, Harold Seigel wrote: > Please review this small fix to change range constrained JVM runtime options > from 64 bits to 32 bits. This fix was tested with Mach5 tiers 1-2 on Linux, > Mac OS, and Windows, and Mach5 tiers 3-5 on Linux x64. > > Thanks, Harold The

Re: [jdk19] RFR: 8289439: Clarify relationship between ThreadStart/ThreadEnd and can_support_virtual_threads capability

2022-07-01 Thread David Holmes
On Thu, 30 Jun 2022 13:20:22 GMT, Alan Bateman wrote: > The description of the ThreadStart/End events in the JVM TI spec needs > rewording to make it clearer when these events are sent for virtual threads > and when VirtualThreadXXX events are sent instead. This seems fine to me.

Re: [jdk19] RFR: 8289439: Clarify relationship between ThreadStart/ThreadEnd and can_support_virtual_threads capability

2022-07-01 Thread Alan Bateman
On Thu, 30 Jun 2022 19:39:17 GMT, Serguei Spitsyn wrote: >> The description of the ThreadStart/End events in the JVM TI spec needs >> rewording to make it clearer when these events are sent for virtual threads >> and when VirtualThreadXXX events are sent instead. > > src/hotspot/share/prims/jvm

Re: [jdk19] RFR: 8289439: Clarify relationship between ThreadStart/ThreadEnd and can_support_virtual_threads capability

2022-07-01 Thread Serguei Spitsyn
On Thu, 30 Jun 2022 13:20:22 GMT, Alan Bateman wrote: > The description of the ThreadStart/End events in the JVM TI spec needs > rewording to make it clearer when these events are sent for virtual threads > and when VirtualThreadXXX events are sent instead. src/hotspot/share/prims/jvmti.xml li

[jdk19] RFR: 8289439: Clarify relationship between ThreadStart/ThreadEnd and can_support_virtual_threads capability

2022-07-01 Thread Alan Bateman
The description of the ThreadStart/End events in the JVM TI spec needs rewording to make it clearer when these events are sent for virtual threads and when VirtualThreadXXX events are sent instead. - Commit messages: - Tweak wording - Initial commit Changes: https://git.openjdk.o

Re: [jdk19] RFR: 8287847: Fatal Error when suspending virtual thread after it has terminated [v6]

2022-07-01 Thread Alan Bateman
On Fri, 1 Jul 2022 05:29:43 GMT, Chris Plummer wrote: >> This fixes a bug in the debug agent when there is a request to suspend a >> virtual thread that has already terminated. The issue was that unless the >> debug agent was currently under a "suspend all", it would not properly put >> the vi