Re: RFR: 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING [v4]

2023-06-06 Thread Alan Bateman
On Wed, 7 Jun 2023 01:05:07 GMT, Alex Menkov wrote: > I guess, your suggestion is `is_carrying_virtual_thread`. Is it right? If so, > I like this suggestion. Good, I think will be easy to understand at the use sites. - PR Review Comment: https://git.openjdk.org/jdk/pull/14298#disc

Re: RFR: 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING [v4]

2023-06-06 Thread Chris Plummer
On Tue, 6 Jun 2023 22:41:54 GMT, Serguei Spitsyn wrote: >> When a virtual thread is mounted, the carrier thread should be reported as >> "waiting" until the virtual thread unmounts. Right now, GetThreadState >> reports a state based the JavaThread status when it should return >> JVMTI_THREAD_S

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v9]

2023-06-06 Thread Y . Srinivas Ramakrishna
On Wed, 7 Jun 2023 00:39:52 GMT, Kelvin Nilsen wrote: >> OpenJDK Colleagues: >> >> Please review this proposed integration of Generational mode for Shenandoah >> GC under https://bugs.openjdk.org/browse/JDK-8307314. >> >> Generational mode of Shenandoah is enabled by adding >> `-XX:+UnlockExp

Re: RFR: 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING [v4]

2023-06-06 Thread Alex Menkov
On Tue, 6 Jun 2023 23:42:24 GMT, Serguei Spitsyn wrote: > > is_carrying_carrier_thread? a bit artificial, but it's a carrier thread and > > it's carrying a virtual thread > > I guess, your suggestion is `is_carrying_virtual_thread`. Is it right? If so, > I like this suggestion. Up to you. I t

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v9]

2023-06-06 Thread Kelvin Nilsen
> OpenJDK Colleagues: > > Please review this proposed integration of Generational mode for Shenandoah > GC under https://bugs.openjdk.org/browse/JDK-8307314. > > Generational mode of Shenandoah is enabled by adding > `-XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCMode=generational` to a > c

Re: RFR: 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING [v4]

2023-06-06 Thread Serguei Spitsyn
On Tue, 6 Jun 2023 23:39:54 GMT, Alex Menkov wrote: >> Serguei Spitsyn has updated the pull request incrementally with one >> additional commit since the last revision: >> >> review: call get_thread_state_base only when needed > > src/hotspot/share/prims/jvmtiEnvBase.hpp line 386: > >> 384:

Re: RFR: 8295976: GetThreadListStackTraces returns wrong state for blocked VirtualThread [v5]

2023-06-06 Thread Serguei Spitsyn
On Tue, 6 Jun 2023 23:20:53 GMT, Alex Menkov wrote: >> Serguei Spitsyn has updated the pull request incrementally with one >> additional commit since the last revision: >> >> review: ThreadListStackTracesTest cleanup > > test/hotspot/jtreg/serviceability/jvmti/vthread/ThreadListStackTracesTes

Re: RFR: 8295976: GetThreadListStackTraces returns wrong state for blocked VirtualThread [v6]

2023-06-06 Thread Serguei Spitsyn
> The `GetThreadListStackTraces` returns `JVMTI_THREAD_STATE_RUNNABLE` for a > VirtualThread blocked on a monitor when called for more than one thread. When > called for a single VirtualThread it correctly returns a state that includes > the `JVMTI_THREAD_STATE_BLOCKED_ON_MONITOR_ENTER` flag. >

Re: RFR: 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING [v4]

2023-06-06 Thread Serguei Spitsyn
On Tue, 6 Jun 2023 23:37:03 GMT, Alex Menkov wrote: > is_carrying_carrier_thread? a bit artificial, but it's a carrier thread and > it's carrying a virtual thread I guess, your suggestion is `is_carrying_virtual_thread`. Is it right? If so, I like this suggestion. - PR Review Comm

Re: RFR: 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING [v4]

2023-06-06 Thread Alex Menkov
On Tue, 6 Jun 2023 22:41:54 GMT, Serguei Spitsyn wrote: >> When a virtual thread is mounted, the carrier thread should be reported as >> "waiting" until the virtual thread unmounts. Right now, GetThreadState >> reports a state based the JavaThread status when it should return >> JVMTI_THREAD_S

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v4]

2023-06-06 Thread Kelvin Nilsen
On Sat, 3 Jun 2023 15:17:37 GMT, Y. Srinivas Ramakrishna wrote: >> Yes. And also from files which were changed by non-Amazon employees only, >> please. > > Thanks, Martin. Yes, we have noted that there were a few other files that > were inadvertently caught in a copyright header dragnet. These

Re: RFR: 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING [v4]

2023-06-06 Thread Alex Menkov
On Tue, 6 Jun 2023 22:06:14 GMT, Serguei Spitsyn wrote: >>> Okay, I see you point. Unfortunately, I've always referred the platform >>> thread with an executed FJP schedular as a carrier thread. The term >>> 'carrier' with this meaning is everywhere in the JVMTI code. It looks very >>> confusi

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v4]

2023-06-06 Thread Kelvin Nilsen
On Fri, 2 Jun 2023 17:55:56 GMT, Y. Srinivas Ramakrishna wrote: >> Kelvin Nilsen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Force PLAB sizes to align on card-table size > > src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp line 12

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v8]

2023-06-06 Thread Kelvin Nilsen
> OpenJDK Colleagues: > > Please review this proposed integration of Generational mode for Shenandoah > GC under https://bugs.openjdk.org/browse/JDK-8307314. > > Generational mode of Shenandoah is enabled by adding > `-XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCMode=generational` to a > c

Re: RFR: 8295976: GetThreadListStackTraces returns wrong state for blocked VirtualThread [v5]

2023-06-06 Thread Alex Menkov
On Tue, 6 Jun 2023 22:54:04 GMT, Serguei Spitsyn wrote: >> The `GetThreadListStackTraces` returns `JVMTI_THREAD_STATE_RUNNABLE` for a >> VirtualThread blocked on a monitor when called for more than one thread. >> When called for a single VirtualThread it correctly returns a state that >> inclu

Re: RFR: 8309420: com/sun/jdi/StepTest.java fails with virtual thread wrapper

2023-06-06 Thread Alex Menkov
On Mon, 5 Jun 2023 04:03:57 GMT, Chris Plummer wrote: > The test has two issues. The first is that it assume that once the VMStart > event has arrived and one "step into" is done, it will be in the main method > of the debuggee. Once there, it determines the debuggee class name by looking > at

Re: RFR: 8309509: com/sun/jdi/RedefineNestmateAttr/TestNestmateAttr.java fails with virtual test thread factory

2023-06-06 Thread Alex Menkov
On Tue, 6 Jun 2023 00:02:47 GMT, Chris Plummer wrote: > The test fails with the virtual test thread factory because it tries to find > the "main" thread in the list of threads returned by JDI, but "main" is a > virtual thread and will only be returned by JDI if the debug agent is > launched wi

Re: RFR: 8295976: GetThreadListStackTraces returns wrong state for blocked VirtualThread [v4]

2023-06-06 Thread Serguei Spitsyn
On Tue, 6 Jun 2023 22:34:33 GMT, Alex Menkov wrote: >> Serguei Spitsyn has updated the pull request incrementally with one >> additional commit since the last revision: >> >> addressed new test related review comments > > test/hotspot/jtreg/serviceability/jvmti/vthread/ThreadListStackTracesTe

Re: RFR: 8295976: GetThreadListStackTraces returns wrong state for blocked VirtualThread [v4]

2023-06-06 Thread Serguei Spitsyn
On Tue, 6 Jun 2023 21:37:25 GMT, Serguei Spitsyn wrote: >> The `GetThreadListStackTraces` returns `JVMTI_THREAD_STATE_RUNNABLE` for a >> VirtualThread blocked on a monitor when called for more than one thread. >> When called for a single VirtualThread it correctly returns a state that >> inclu

Re: RFR: 8295976: GetThreadListStackTraces returns wrong state for blocked VirtualThread [v5]

2023-06-06 Thread Serguei Spitsyn
> The `GetThreadListStackTraces` returns `JVMTI_THREAD_STATE_RUNNABLE` for a > VirtualThread blocked on a monitor when called for more than one thread. When > called for a single VirtualThread it correctly returns a state that includes > the `JVMTI_THREAD_STATE_BLOCKED_ON_MONITOR_ENTER` flag. >

Re: RFR: 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING [v3]

2023-06-06 Thread Serguei Spitsyn
On Tue, 6 Jun 2023 22:17:57 GMT, Alex Menkov wrote: >> Serguei Spitsyn has updated the pull request incrementally with one >> additional commit since the last revision: >> >> review: removed JVMTI_THREAD_STATE_RUNNABLE from a carrier thread state > > src/hotspot/share/prims/jvmtiEnvBase.cpp l

Re: RFR: 8309510: com/sun/jdi/RedefineNestmateAttr/TestNestmateAttr.java no longer needs to override startup() method

2023-06-06 Thread Alex Menkov
On Tue, 6 Jun 2023 00:36:12 GMT, Chris Plummer wrote: > com/sun/jdi/RedefineNestmateAttr/TestNestmateAttr.java currently overrides > the TestScaffold.startup() method: > > // override this to correct a bug so arguments can be passed to > // the Target class > protected void startUp(

Re: RFR: 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING [v4]

2023-06-06 Thread Serguei Spitsyn
> When a virtual thread is mounted, the carrier thread should be reported as > "waiting" until the virtual thread unmounts. Right now, GetThreadState > reports a state based the JavaThread status when it should return > JVMTI_THREAD_STATE_WAITING | JVMTI_THREAD_STATE_WAITING_INDEFINITELY. > The

Re: RFR: 8295976: GetThreadListStackTraces returns wrong state for blocked VirtualThread [v4]

2023-06-06 Thread Alex Menkov
On Tue, 6 Jun 2023 21:37:25 GMT, Serguei Spitsyn wrote: >> The `GetThreadListStackTraces` returns `JVMTI_THREAD_STATE_RUNNABLE` for a >> VirtualThread blocked on a monitor when called for more than one thread. >> When called for a single VirtualThread it correctly returns a state that >> inclu

Re: RFR: 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING [v3]

2023-06-06 Thread Alex Menkov
On Tue, 6 Jun 2023 22:07:14 GMT, Serguei Spitsyn wrote: >> When a virtual thread is mounted, the carrier thread should be reported as >> "waiting" until the virtual thread unmounts. Right now, GetThreadState >> reports a state based the JavaThread status when it should return >> JVMTI_THREAD_S

Re: RFR: 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING [v3]

2023-06-06 Thread Serguei Spitsyn
On Tue, 6 Jun 2023 15:43:02 GMT, Alan Bateman wrote: >> Okay, I see you point. Unfortunately, I've always referred the platform >> thread with an executed FJP schedular as a carrier thread. The term >> 'carrier' with this meaning is everywhere in the JVMTI code. It looks very >> confusing to c

Re: RFR: 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING [v2]

2023-06-06 Thread Serguei Spitsyn
On Tue, 6 Jun 2023 21:22:40 GMT, Alex Menkov wrote: >> Serguei Spitsyn has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains three additional >> commi

Re: RFR: 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING [v3]

2023-06-06 Thread Serguei Spitsyn
> When a virtual thread is mounted, the carrier thread should be reported as > "waiting" until the virtual thread unmounts. Right now, GetThreadState > reports a state based the JavaThread status when it should return > JVMTI_THREAD_STATE_WAITING | JVMTI_THREAD_STATE_WAITING_INDEFINITELY. > The

Integrated: 8309396: com/sun/jdi/JdbMethodExitTest.java fails with virtual threads due to a bug in determining the main thread id

2023-06-06 Thread Chris Plummer
On Fri, 2 Jun 2023 21:47:47 GMT, Chris Plummer wrote: > JdbMethodExitTest.java tries to determine the jdb threadID for the "main" > thread, and then later use it in jdb commands that require a threadID. It > does this by first having the debuggee execute the following: > > `System.out.

Re: RFR: 8309396: com/sun/jdi/JdbMethodExitTest.java fails with virtual threads due to a bug in determining the main thread id [v3]

2023-06-06 Thread Chris Plummer
On Tue, 6 Jun 2023 20:07:33 GMT, Chris Plummer wrote: >> JdbMethodExitTest.java tries to determine the jdb threadID for the "main" >> thread, and then later use it in jdb commands that require a threadID. It >> does this by first having the debuggee execute the following: >> >> `System

Re: RFR: JDK-8309225: Fix xlc17 clang 15 warnings in security and servicability

2023-06-06 Thread Christoph Langer
On Fri, 2 Jun 2023 10:19:53 GMT, JoKern65 wrote: > This pr is a split off from JDK-8308288: Fix xlc17 clang warnings in shared > code https://github.com/openjdk/jdk/pull/14146 > It handles the part in security and servicability. > > Compiling on AIX with xlc17 which contains the new clang 15 fr

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v7]

2023-06-06 Thread Kelvin Nilsen
On Thu, 1 Jun 2023 14:25:19 GMT, Thomas Stuefe wrote: >> Kelvin Nilsen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Exit during initialization on unsupported platforms > > test/hotspot/jtreg/gc/shenandoah/oom/TestAllocOutOfMemory.java

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v7]

2023-06-06 Thread Kelvin Nilsen
On Tue, 6 Jun 2023 21:43:36 GMT, Kelvin Nilsen wrote: >> test/hotspot/jtreg/gc/shenandoah/TestEvilSyncBug.java line 33: >> >>> 31: * @modules java.base/jdk.internal.misc >>> 32: * java.management >>> 33: * @run driver/timeout=480 TestEvilSyncBug >>> -XX:ShenandoahGCHeuristics=aggres

Re: RFR: JDK-8309462: vmTestbase/nsk/jvmti/RunAgentThread/agentthr001/TestDescription.java crashing due to empty while loop

2023-06-06 Thread Christoph Langer
On Tue, 6 Jun 2023 09:51:09 GMT, JoKern65 wrote: > The sys_thread_3() function contains an empty while loop, which by the > standard can be optimized away. Please refer to discussion in > https://github.com/llvm/llvm-project/issues/60622 > The xlc17 compiler is doing so, and IBM claims that the

Re: RFR: JDK-8309462: vmTestbase/nsk/jvmti/RunAgentThread/agentthr001/TestDescription.java crashing due to empty while loop

2023-06-06 Thread Christoph Langer
On Tue, 6 Jun 2023 20:43:36 GMT, Martin Doerr wrote: >> The sys_thread_3() function contains an empty while loop, which by the >> standard can be optimized away. Please refer to discussion in >> https://github.com/llvm/llvm-project/issues/60622 >> The xlc17 compiler is doing so, and IBM claims

Re: RFR: 8295976: GetThreadListStackTraces returns wrong state for blocked VirtualThread [v4]

2023-06-06 Thread Chris Plummer
On Tue, 6 Jun 2023 21:37:25 GMT, Serguei Spitsyn wrote: >> The `GetThreadListStackTraces` returns `JVMTI_THREAD_STATE_RUNNABLE` for a >> VirtualThread blocked on a monitor when called for more than one thread. >> When called for a single VirtualThread it correctly returns a state that >> inclu

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v7]

2023-06-06 Thread Kelvin Nilsen
On Thu, 1 Jun 2023 13:32:49 GMT, Thomas Stuefe wrote: >> Kelvin Nilsen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Exit during initialization on unsupported platforms > > test/hotspot/jtreg/gc/shenandoah/TestEvilSyncBug.java line 33:

Re: RFR: 8295976: GetThreadListStackTraces returns wrong state for blocked VirtualThread [v4]

2023-06-06 Thread Serguei Spitsyn
> The `GetThreadListStackTraces` returns `JVMTI_THREAD_STATE_RUNNABLE` for a > VirtualThread blocked on a monitor when called for more than one thread. When > called for a single VirtualThread it correctly returns a state that includes > the `JVMTI_THREAD_STATE_BLOCKED_ON_MONITOR_ENTER` flag. >

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v7]

2023-06-06 Thread Kelvin Nilsen
> OpenJDK Colleagues: > > Please review this proposed integration of Generational mode for Shenandoah > GC under https://bugs.openjdk.org/browse/JDK-8307314. > > Generational mode of Shenandoah is enabled by adding > `-XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCMode=generational` to a > c

Re: RFR: 8295976: GetThreadListStackTraces returns wrong state for blocked VirtualThread [v3]

2023-06-06 Thread Serguei Spitsyn
On Tue, 6 Jun 2023 21:07:46 GMT, Chris Plummer wrote: >> Serguei Spitsyn has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - fixed typo in a comment in jvmtiEnvBase.cpp >> - nit: restored one comment as was before > > test/hotspot/jtreg/s

Re: RFR: 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING [v2]

2023-06-06 Thread Alex Menkov
On Mon, 5 Jun 2023 19:00:49 GMT, Serguei Spitsyn wrote: >> When a virtual thread is mounted, the carrier thread should be reported as >> "waiting" until the virtual thread unmounts. Right now, GetThreadState >> reports a state based the JavaThread status when it should return >> JVMTI_THREAD_S

Re: RFR: 8295976: GetThreadListStackTraces returns wrong state for blocked VirtualThread [v3]

2023-06-06 Thread Chris Plummer
On Tue, 6 Jun 2023 13:37:03 GMT, Serguei Spitsyn wrote: >> The `GetThreadListStackTraces` returns `JVMTI_THREAD_STATE_RUNNABLE` for a >> VirtualThread blocked on a monitor when called for more than one thread. >> When called for a single VirtualThread it correctly returns a state that >> inclu

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v6]

2023-06-06 Thread Kelvin Nilsen
> OpenJDK Colleagues: > > Please review this proposed integration of Generational mode for Shenandoah > GC under https://bugs.openjdk.org/browse/JDK-8307314. > > Generational mode of Shenandoah is enabled by adding > `-XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCMode=generational` to a > c

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v5]

2023-06-06 Thread Paul Hohensee
On Sun, 4 Jun 2023 21:39:58 GMT, Kelvin Nilsen wrote: >> OpenJDK Colleagues: >> >> Please review this proposed integration of Generational mode for Shenandoah >> GC under https://bugs.openjdk.org/browse/JDK-8307314. >> >> Generational mode of Shenandoah is enabled by adding >> `-XX:+UnlockExp

Re: RFR: JDK-8309462: vmTestbase/nsk/jvmti/RunAgentThread/agentthr001/TestDescription.java crashing due to empty while loop

2023-06-06 Thread Martin Doerr
On Tue, 6 Jun 2023 09:51:09 GMT, JoKern65 wrote: > The sys_thread_3() function contains an empty while loop, which by the > standard can be optimized away. Please refer to discussion in > https://github.com/llvm/llvm-project/issues/60622 > The xlc17 compiler is doing so, and IBM claims that the

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v5]

2023-06-06 Thread Mark Reinhold
On Tue, 6 Jun 2023 20:01:02 GMT, Christine Flood wrote: > We'd like to propose to push now, and tackle/fix the single-gen issue you > identified during RDP1, as well as any other significant single-gen > regressions that may come up. We have four Shen experts on board, Roman, > Aleksey, Kelvin

Re: RFR: 8309396: com/sun/jdi/JdbMethodExitTest.java fails with virtual threads due to a bug in determining the main thread id [v3]

2023-06-06 Thread Chris Plummer
> JdbMethodExitTest.java tries to determine the jdb threadID for the "main" > thread, and then later use it in jdb commands that require a threadID. It > does this by first having the debuggee execute the following: > > `System.out.println("threadid="+Thread.currentThread().getId());` >

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v5]

2023-06-06 Thread Christine Flood
On Sun, 4 Jun 2023 21:39:58 GMT, Kelvin Nilsen wrote: >> OpenJDK Colleagues: >> >> Please review this proposed integration of Generational mode for Shenandoah >> GC under https://bugs.openjdk.org/browse/JDK-8307314. >> >> Generational mode of Shenandoah is enabled by adding >> `-XX:+UnlockExp

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v5]

2023-06-06 Thread Andrew Haley
On Tue, 6 Jun 2023 19:48:05 GMT, Paul Hohensee wrote: > We'd like to propose to push now, and tackle/fix the single-gen issue you > identified during RDP1, as well as any other significant single-gen > regressions that may come up. We have four Shen experts on board, Roman, > Aleksey, Kelvin,

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v5]

2023-06-06 Thread Andrew Haley
On Sun, 4 Jun 2023 21:39:58 GMT, Kelvin Nilsen wrote: >> OpenJDK Colleagues: >> >> Please review this proposed integration of Generational mode for Shenandoah >> GC under https://bugs.openjdk.org/browse/JDK-8307314. >> >> Generational mode of Shenandoah is enabled by adding >> `-XX:+UnlockExp

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v5]

2023-06-06 Thread Paul Hohensee
On Sun, 4 Jun 2023 21:39:58 GMT, Kelvin Nilsen wrote: >> OpenJDK Colleagues: >> >> Please review this proposed integration of Generational mode for Shenandoah >> GC under https://bugs.openjdk.org/browse/JDK-8307314. >> >> Generational mode of Shenandoah is enabled by adding >> `-XX:+UnlockExp

Re: RFR: 8309420: con/sun/jdi/StepTest.java fails with virtual thread wrapper

2023-06-06 Thread Serguei Spitsyn
On Mon, 5 Jun 2023 04:03:57 GMT, Chris Plummer wrote: > The test has two issues. The first is that it assume that once the VMStart > event has arrived and one "step into" is done, it will be in the main method > of the debuggee. Once there, it determines the debuggee class name by looking > at

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v5]

2023-06-06 Thread Christine Flood
On Sun, 4 Jun 2023 21:39:58 GMT, Kelvin Nilsen wrote: >> OpenJDK Colleagues: >> >> Please review this proposed integration of Generational mode for Shenandoah >> GC under https://bugs.openjdk.org/browse/JDK-8307314. >> >> Generational mode of Shenandoah is enabled by adding >> `-XX:+UnlockExp

Re: RFR: 8309396: com/sun/jdi/JdbMethodExitTest.java fails with virtual threads due to a bug in determining the main thread id [v2]

2023-06-06 Thread Serguei Spitsyn
On Sun, 4 Jun 2023 18:47:13 GMT, Chris Plummer wrote: >> JdbMethodExitTest.java tries to determine the jdb threadID for the "main" >> thread, and then later use it in jdb commands that require a threadID. It >> does this by first having the debuggee execute the following: >> >> `System

Re: RFR: 8309505: com/sun/jdi/MethodEntryExitEvents.java due to finding wrong main thread [v2]

2023-06-06 Thread Chris Plummer
> The test fails because it tries to determine the main debuggee thread by > allowing it run until the debuggee class is loaded (it waits for the > ClassPrepareEvent). Normally this would be done on the main debuggee thread. > However, when using virtual threads, the main thread has yet to spawn

Integrated: 8309505: com/sun/jdi/MethodEntryExitEvents.java due to finding wrong main thread

2023-06-06 Thread Chris Plummer
On Mon, 5 Jun 2023 21:55:02 GMT, Chris Plummer wrote: > The test fails because it tries to determine the main debuggee thread by > allowing it run until the debuggee class is loaded (it waits for the > ClassPrepareEvent). Normally this would be done on the main debuggee thread. > However, when

Re: RFR: 8309505: com/sun/jdi/MethodEntryExitEvents.java due to finding wrong main thread

2023-06-06 Thread Chris Plummer
On Mon, 5 Jun 2023 21:55:02 GMT, Chris Plummer wrote: > The test fails because it tries to determine the main debuggee thread by > allowing it run until the debuggee class is loaded (it waits for the > ClassPrepareEvent). Normally this would be done on the main debuggee thread. > However, when

Integrated: 8309506: com/sun/jdi/MultiBreakpointsTest.java fails with virtual test thread factory

2023-06-06 Thread Chris Plummer
On Mon, 5 Jun 2023 22:13:29 GMT, Chris Plummer wrote: > The test fails when the main debuggee thread is a virtual thread, because > virtual threads are always daemon threads. Because of this all the test > threads that the debuggee creates are also daemon threads. The main deuggee > thread imm

Re: RFR: 8309506: com/sun/jdi/MultiBreakpointsTest.java fails with virtual test thread factory

2023-06-06 Thread Chris Plummer
On Mon, 5 Jun 2023 22:13:29 GMT, Chris Plummer wrote: > The test fails when the main debuggee thread is a virtual thread, because > virtual threads are always daemon threads. Because of this all the test > threads that the debuggee creates are also daemon threads. The main deuggee > thread imm

Re: RFR: 8308286 Fix clang warnings in linux code [v3]

2023-06-06 Thread Weijun Wang
On Tue, 6 Jun 2023 17:32:35 GMT, Artem Semenov wrote: >> I didn't ask to revert the change. It's >> `s/TARGET_OS_MAC/defined(__APPLE__)/`. > > This is rarely used in the code and is not the essence of the current changes. > If you introduce such changes, then throughout the code. > Moreover, thi

Re: RFR: 8308286 Fix clang warnings in linux code [v3]

2023-06-06 Thread Artem Semenov
On Thu, 1 Jun 2023 15:04:09 GMT, Weijun Wang wrote: >> done > > I didn't ask to revert the change. It's `s/TARGET_OS_MAC/defined(__APPLE__)/`. This is rarely used in the code and is not the essence of the current changes. If you introduce such changes, then throughout the code. Moreover, this ca

Re: RFR: 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING [v2]

2023-06-06 Thread Alan Bateman
On Mon, 5 Jun 2023 21:26:39 GMT, Serguei Spitsyn wrote: > Okay, I see you point. Unfortunately, I've always referred the platform > thread with an executed FJP schedular as a carrier thread. The term 'carrier' > with this meaning is everywhere in the JVMTI code. It looks very confusing to > ca

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v5]

2023-06-06 Thread William Kemper
On Sun, 4 Jun 2023 21:39:58 GMT, Kelvin Nilsen wrote: >> OpenJDK Colleagues: >> >> Please review this proposed integration of Generational mode for Shenandoah >> GC under https://bugs.openjdk.org/browse/JDK-8307314. >> >> Generational mode of Shenandoah is enabled by adding >> `-XX:+UnlockExp

Re: RFR: 8305341: Alignment should be enforced by alignas instead of compiler specific attributes [v4]

2023-06-06 Thread Julian Waters
On Wed, 12 Apr 2023 07:12:10 GMT, Julian Waters wrote: >> C11 has been stable for a long time on all platforms, so native code can use >> the standard alignas operator for alignment requirements > > Julian Waters has updated the pull request incrementally with four additional > commits since th

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v5]

2023-06-06 Thread Kelvin Nilsen
On Sun, 4 Jun 2023 21:39:58 GMT, Kelvin Nilsen wrote: >> OpenJDK Colleagues: >> >> Please review this proposed integration of Generational mode for Shenandoah >> GC under https://bugs.openjdk.org/browse/JDK-8307314. >> >> Generational mode of Shenandoah is enabled by adding >> `-XX:+UnlockExp

Re: RFR: 8295976: GetThreadListStackTraces returns wrong state for blocked VirtualThread [v3]

2023-06-06 Thread Serguei Spitsyn
> The `GetThreadListStackTraces` returns `JVMTI_THREAD_STATE_RUNNABLE` for a > VirtualThread blocked on a monitor when called for more than one thread. When > called for a single VirtualThread it correctly returns a state that includes > the `JVMTI_THREAD_STATE_BLOCKED_ON_MONITOR_ENTER` flag. >

Re: RFR: 8295976: GetThreadListStackTraces returns wrong state for blocked VirtualThread [v2]

2023-06-06 Thread Serguei Spitsyn
> The `GetThreadListStackTraces` returns `JVMTI_THREAD_STATE_RUNNABLE` for a > VirtualThread blocked on a monitor when called for more than one thread. When > called for a single VirtualThread it correctly returns a state that includes > the `JVMTI_THREAD_STATE_BLOCKED_ON_MONITOR_ENTER` flag. >

Re: RFR: JDK-8309225: Fix xlc17 clang 15 warnings in security and servicability

2023-06-06 Thread Martin Doerr
On Fri, 2 Jun 2023 10:19:53 GMT, JoKern65 wrote: > This pr is a split off from JDK-8308288: Fix xlc17 clang warnings in shared > code https://github.com/openjdk/jdk/pull/14146 > It handles the part in security and servicability. > > Compiling on AIX with xlc17 which contains the new clang 15 fr

Re: RFR: JDK-8307314: Implementation: Generational Shenandoah (Experimental) [v5]

2023-06-06 Thread Thomas Stuefe
On Sun, 4 Jun 2023 21:39:58 GMT, Kelvin Nilsen wrote: >> OpenJDK Colleagues: >> >> Please review this proposed integration of Generational mode for Shenandoah >> GC under https://bugs.openjdk.org/browse/JDK-8307314. >> >> Generational mode of Shenandoah is enabled by adding >> `-XX:+UnlockExp

Re: RFR: JDK-8309462: vmTestbase/nsk/jvmti/RunAgentThread/agentthr001/TestDescription.java crashing due to empty while loop

2023-06-06 Thread Martin Doerr
On Tue, 6 Jun 2023 09:51:09 GMT, JoKern65 wrote: > The sys_thread_3() function contains an empty while loop, which by the > standard can be optimized away. Please refer to discussion in > https://github.com/llvm/llvm-project/issues/60622 > The xlc17 compiler is doing so, and IBM claims that the

Re: RFR: 8294977: Convert test/jdk/java tests from ASM library to Classfile API [v8]

2023-06-06 Thread Chen Liang
On Tue, 9 May 2023 04:17:28 GMT, Chen Liang wrote: >> Summaries: >> 1. A few recommendations about updating the constant API is made at >> https://mail.openjdk.org/pipermail/classfile-api-dev/2023-March/000233.html >> and I may update this patch shall the API changes be integrated before >> 2.

Re: RFR: JDK-8309462: vmTestbase/nsk/jvmti/RunAgentThread/agentthr001/TestDescription.java crashing due to empty while loop

2023-06-06 Thread Matthias Baesken
On Tue, 6 Jun 2023 09:51:09 GMT, JoKern65 wrote: > The sys_thread_3() function contains an empty while loop, which by the > standard can be optimized away. Please refer to discussion in > https://github.com/llvm/llvm-project/issues/60622 > The xlc17 compiler is doing so, and IBM claims that the

Re: RFR: 8309408: Thread.sleep cleanup

2023-06-06 Thread Alan Bateman
On Mon, 5 Jun 2023 20:05:24 GMT, Chris Plummer wrote: > The following commit in loom heavily modified this file with a lot of added > expected methods. There are other related tests with similar changes. I'm not > so sure I understand the need for so many additions, and also why > expectedLeng

RFR: JDK-8309462: vmTestbase/nsk/jvmti/RunAgentThread/agentthr001/TestDescription.java crashing due to empty while loop

2023-06-06 Thread JoKern65
The sys_thread_3() function contains an empty while loop, which by the standard can be optimized away. Please refer to discussion in https://github.com/llvm/llvm-project/issues/60622 The xlc17 compiler is doing so, and IBM claims that they are following the standard and will not fix this on comp

Re: RFR: 8295976: GetThreadListStackTraces returns wrong state for blocked VirtualThread

2023-06-06 Thread Alan Bateman
On Tue, 6 Jun 2023 07:30:26 GMT, David Holmes wrote: > Just a passing comment but I happened to notice today that when a virtual > thread blocks on a legacy synchronization mechanism, it delegates to its > carrier thread to report its state. It is not at all clear to me how this is > handled a

Re: RFR: 8295976: GetThreadListStackTraces returns wrong state for blocked VirtualThread

2023-06-06 Thread David Holmes
On Tue, 6 Jun 2023 00:50:34 GMT, Serguei Spitsyn wrote: > The `GetThreadListStackTraces` returns `JVMTI_THREAD_STATE_RUNNABLE` for a > VirtualThread blocked on a monitor when called for more than one thread. When > called for a single VirtualThread it correctly returns a state that includes >