Re: RFR: 8316233: VirtualThreadStart events should not be thread-filtered [v2]

2023-10-06 Thread Alan Bateman
On Fri, 6 Oct 2023 23:03:14 GMT, Chris Plummer wrote: >> Serguei Spitsyn has updated the pull request incrementally with one >> additional commit since the last revision: >> >> review: convert check for is_hidden_from_external_view check() into assert > > src/hotspot/share/prims/jvmti.xml lin

Re: RFR: JDK-8316691: Heap dump: separate stack traces for mounted virtual threads [v3]

2023-10-06 Thread Alex Menkov
On Fri, 6 Oct 2023 19:15:06 GMT, Leonid Mesnik wrote: > The fix looks good. (I looked at the test changes mostly.) The only question, > if it makes sense to update the test to verify that heapdump works correctly > without continuations. good point. Added testing with -VMContinuations Also rea

Re: RFR: JDK-8316691: Heap dump: separate stack traces for mounted virtual threads [v5]

2023-10-06 Thread Alex Menkov
> This is subtask of JDK-8299426: Heap dump does not contain virtual Thread > stack references > The change: > - reorganize thread-related code/prepare it to use for unmounted vthreads: > - new ThreadDumper class caches stack frames, thread serial num, frame > serial number (trace serial number

Re: RFR: JDK-8316691: Heap dump: separate stack traces for mounted virtual threads [v3]

2023-10-06 Thread Alex Menkov
On Fri, 6 Oct 2023 19:13:26 GMT, Serguei Spitsyn wrote: >> Alex Menkov has updated the pull request incrementally with one additional >> commit since the last revision: >> >> misspell getRefererId for consistency > > src/hotspot/share/services/heapDumper.cpp line 1494: > >> 1492: class Threa

Re: RFR: JDK-8316691: Heap dump: separate stack traces for mounted virtual threads [v3]

2023-10-06 Thread Alex Menkov
On Wed, 4 Oct 2023 01:23:01 GMT, Serguei Spitsyn wrote: >> Alex Menkov has updated the pull request incrementally with one additional >> commit since the last revision: >> >> misspell getRefererId for consistency > > src/hotspot/share/services/heapDumper.cpp line 1579: > >> 1577: >> 1578:

Re: RFR: JDK-8316691: Heap dump: separate stack traces for mounted virtual threads [v4]

2023-10-06 Thread Alex Menkov
> This is subtask of JDK-8299426: Heap dump does not contain virtual Thread > stack references > The change: > - reorganize thread-related code/prepare it to use for unmounted vthreads: > - new ThreadDumper class caches stack frames, thread serial num, frame > serial number (trace serial number

Re: RFR: 8316446: 4 sun/management/jdp tests ignore VM flags

2023-10-06 Thread Chris Plummer
On Fri, 6 Oct 2023 19:55:59 GMT, Leonid Mesnik wrote: > The launcher class is fixed. > Tested by tier1 and running test with different VM flags Marked as reviewed by cjplummer (Reviewer). - PR Review: https://git.openjdk.org/jdk/pull/16079#pullrequestreview-1662907976

Re: RFR: 8316464: 3 sun/tools tests ignore VM flags

2023-10-06 Thread Chris Plummer
On Fri, 6 Oct 2023 19:24:03 GMT, Leonid Mesnik wrote: > I marked tests > sun/tools/jcmd/TestProcessHelper.java > sun/tools/jinfo/JInfoTest.java > as headless. They used different specific VM options and are not worth > executing with other VM flags. > And fixed > sun/tools/jstat/JStatInterval

Re: RFR: 8316464: 3 sun/tools tests ignore VM flags

2023-10-06 Thread Chris Plummer
On Fri, 6 Oct 2023 19:24:03 GMT, Leonid Mesnik wrote: > I marked tests > sun/tools/jcmd/TestProcessHelper.java > sun/tools/jinfo/JInfoTest.java > as headless. They used different specific VM options and are not worth > executing with other VM flags. > And fixed > sun/tools/jstat/JStatInterval

Re: RFR: 8316233: VirtualThreadStart events should not be thread-filtered [v2]

2023-10-06 Thread Chris Plummer
On Fri, 6 Oct 2023 18:46:42 GMT, Serguei Spitsyn wrote: >> The JVMTI VirtualThreadStart events have to follow the ThreadStart events >> pattern and so, should not be thread-filtered. >> The fix includes: >> - `jvmti.xml`: remov the attribute `filtered="thread"` in the >> `VirtuallThreadStart`

Re: RFR: 8316447: 8 sun/management/jmxremote tests ignore VM flags [v2]

2023-10-06 Thread Serguei Spitsyn
On Thu, 5 Oct 2023 18:21:06 GMT, Leonid Mesnik wrote: >> Updated test to use createTesJvm. >> Removed internal timeout to not fail when Xcomp is used and also to get more >> info if the test times out., >> >> Tested by running tier1, hs-tier5 and executing test with various VM flags. > > Leonid

Re: RFR: 8316447: 8 sun/management/jmxremote tests ignore VM flags [v2]

2023-10-06 Thread Leonid Mesnik
On Fri, 6 Oct 2023 22:34:40 GMT, Serguei Spitsyn wrote: >> Leonid Mesnik has updated the pull request incrementally with one additional >> commit since the last revision: >> >> simplifed usage, removed classpath adding. > > test/jdk/sun/management/jmxremote/bootstrap/CustomLauncherTest.java l

RFR: 8317692: jcmd GC.heap_dump performance regression after JDK-8292818

2023-10-06 Thread Hannes Greule
See the bug description for more information. This implementation brings down the time to take a heap dump on the example application in the bug report to <2 seconds on my machine. - Commit messages: - whitespaces - Iterate fields forwards on thread dump Changes: https://git.open

Re: RFR: 8316462: sun/jvmstat/monitor/MonitoredVm/MonitorVmStartTerminate.java ignores VM flags

2023-10-06 Thread Daniel D . Daugherty
On Fri, 6 Oct 2023 20:47:22 GMT, Leonid Mesnik wrote: > Test fixed to accept vm flags. Hmmm... what kind of testing has been done to make sure that we don't suddenly get a bunch of new failures by allowing this test to accept VM flags? - PR Comment: https://git.openjdk.org/jdk/pul

Re: GC.heap_dump performance regression in Java 21

2023-10-06 Thread Hannes Greule
Hi Frederic, hi Alex, thank you for your comments. I think it is better to have a fresh implementation in fieldStreams.hpp. This way, other functionality can be addressed separately (and fieldStreams.hpp is a more appropriate place imo). I agree that the FieldStream implementation should be

RFR: 8316462: sun/jvmstat/monitor/MonitoredVm/MonitorVmStartTerminate.java ignores VM flags

2023-10-06 Thread Leonid Mesnik
Test fixed to accept vm flags. - Commit messages: - 8316462 Changes: https://git.openjdk.org/jdk/pull/16081/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16081&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8316462 Stats: 3 lines in 1 file changed: 0 ins; 0 del;

RFR: 8316452: java/lang/instrument/modules/AppendToClassPathModuleTest.java ignores VM flags

2023-10-06 Thread Leonid Mesnik
The test uses specific classpath, and jar and is intended to test modules. So I marked is as flagless, - Commit messages: - 8316452 Changes: https://git.openjdk.org/jdk/pull/16080/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16080&range=00 Issue: https://bugs.openjdk.o

RFR: 8316446: 4 sun/management/jdp tests ignore VM flags

2023-10-06 Thread Leonid Mesnik
The launcher class is fixed. Tested by tier1 and running test with different VM flags - Commit messages: - 8316446 Changes: https://git.openjdk.org/jdk/pull/16079/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16079&range=00 Issue: https://bugs.openjdk.org/browse/JDK-831

RFR: 8316464: 3 sun/tools tests ignore VM flags

2023-10-06 Thread Leonid Mesnik
I marked tests sun/tools/jcmd/TestProcessHelper.java sun/tools/jinfo/JInfoTest.java as headless. They used different specific VM options and are not worth executing with other VM flags. And fixed sun/tools/jstat/JStatInterval.java Tested with tier1, local execution of tests, and running sun/to

Re: RFR: JDK-8316691: Heap dump: separate stack traces for mounted virtual threads [v3]

2023-10-06 Thread Serguei Spitsyn
On Fri, 29 Sep 2023 02:20:10 GMT, Alex Menkov wrote: >> This is subtask of JDK-8299426: Heap dump does not contain virtual Thread >> stack references >> The change: >> - reorganize thread-related code/prepare it to use for unmounted vthreads: >> - new ThreadDumper class caches stack frames, th

Re: RFR: JDK-8316691: Heap dump: separate stack traces for mounted virtual threads [v3]

2023-10-06 Thread Leonid Mesnik
On Fri, 29 Sep 2023 02:20:10 GMT, Alex Menkov wrote: >> This is subtask of JDK-8299426: Heap dump does not contain virtual Thread >> stack references >> The change: >> - reorganize thread-related code/prepare it to use for unmounted vthreads: >> - new ThreadDumper class caches stack frames, th

Re: RFR: 8316233: VirtualThreadStart events should not be thread-filtered [v2]

2023-10-06 Thread Leonid Mesnik
On Fri, 6 Oct 2023 18:46:42 GMT, Serguei Spitsyn wrote: >> The JVMTI VirtualThreadStart events have to follow the ThreadStart events >> pattern and so, should not be thread-filtered. >> The fix includes: >> - `jvmti.xml`: remov the attribute `filtered="thread"` in the >> `VirtuallThreadStart`

Re: GC.heap_dump performance regression in Java 21

2023-10-06 Thread Frederic Parain
Hi Hannes, Thank you for the analysis and the proposed solution. The changes look reasonable to me, and I agree with Alex that we should either fix or get rid of the old FieldStream implementation. If we keep it, this kind of performance issue will happen again. Regards, Fred On 10/2/2

Re: RFR: 8316233: VirtualThreadStart events should not be thread-filtered [v2]

2023-10-06 Thread Serguei Spitsyn
> The JVMTI VirtualThreadStart events have to follow the ThreadStart events > pattern and so, should not be thread-filtered. > The fix includes: > - `jvmti.xml`: remov the attribute `filtered="thread"` in the > `VirtuallThreadStart` event spec > - `jvmtiEventController.cpp`: remove the `VTHREAD

Re: RFR: 8316233: VirtualThreadStart events should not be thread-filtered

2023-10-06 Thread Serguei Spitsyn
On Wed, 4 Oct 2023 21:59:54 GMT, Leonid Mesnik wrote: >> The JVMTI VirtualThreadStart events have to follow the ThreadStart events >> pattern and so, should not be thread-filtered. >> The fix includes: >> - `jvmti.xml`: remov the attribute `filtered="thread"` in the >> `VirtuallThreadStart` ev

Re: RFR: 8316233: VirtualThreadStart events should not be thread-filtered

2023-10-06 Thread Serguei Spitsyn
On Wed, 4 Oct 2023 21:55:21 GMT, Leonid Mesnik wrote: >> The JVMTI VirtualThreadStart events have to follow the ThreadStart events >> pattern and so, should not be thread-filtered. >> The fix includes: >> - `jvmti.xml`: remov the attribute `filtered="thread"` in the >> `VirtuallThreadStart` ev