Re: RFR: 8336753: Don't run serviceability/sa/ClhsdbDumpheap.java with -Xcomp [v4]

2024-07-22 Thread Daniel Lundén
On Sat, 20 Jul 2024 06:33:09 GMT, Daniel Lundén wrote: >> We are seeing quite a few timeouts for >> `serviceability/sa/ClhsdbDumpheap.java` running with -Xcomp in testing, >> possibly related to >> [JDK-8324241](https://bugs.openjdk.org/browse/JDK-8324241). We should >> disable running `Clhsd

Re: RFR: 8336753: Don't run serviceability/sa/ClhsdbDumpheap.java with -Xcomp [v4]

2024-07-22 Thread duke
On Sat, 20 Jul 2024 06:33:09 GMT, Daniel Lundén wrote: >> We are seeing quite a few timeouts for >> `serviceability/sa/ClhsdbDumpheap.java` running with -Xcomp in testing, >> possibly related to >> [JDK-8324241](https://bugs.openjdk.org/browse/JDK-8324241). We should >> disable running `Clhsd

Re: RFR: 8327054: DiagnosticCommand Compiler.perfmap does not log on output() [v3]

2024-07-22 Thread Sonia Zaldana Calles
> Hi all, > > This is a small patch to address > [8327054](https://bugs.openjdk.org/browse/JDK-8327054) making > `CodeCache::write_perf_map` aware of which output stream errors and warning > message should be going to. > > Testing: > - [x] Added test case passes. > > Thanks, > Sonia Soni

Re: RFR: 8327054: DiagnosticCommand Compiler.perfmap does not log on output() [v3]

2024-07-22 Thread Kevin Walls
On Mon, 22 Jul 2024 13:45:49 GMT, Sonia Zaldana Calles wrote: >> Hi all, >> >> This is a small patch to address >> [8327054](https://bugs.openjdk.org/browse/JDK-8327054) making >> `CodeCache::write_perf_map` aware of which output stream errors and warning >> message should be going to. >>

Re: RFR: 8327054: DiagnosticCommand Compiler.perfmap does not log on output() [v3]

2024-07-22 Thread Kevin Walls
On Mon, 22 Jul 2024 13:45:49 GMT, Sonia Zaldana Calles wrote: >> Hi all, >> >> This is a small patch to address >> [8327054](https://bugs.openjdk.org/browse/JDK-8327054) making >> `CodeCache::write_perf_map` aware of which output stream errors and warning >> message should be going to. >>

Re: RFR: 8327054: DiagnosticCommand Compiler.perfmap does not log on output() [v3]

2024-07-22 Thread Kevin Walls
On Mon, 22 Jul 2024 13:45:49 GMT, Sonia Zaldana Calles wrote: >> Hi all, >> >> This is a small patch to address >> [8327054](https://bugs.openjdk.org/browse/JDK-8327054) making >> `CodeCache::write_perf_map` aware of which output stream errors and warning >> message should be going to. >>

Integrated: 8336753: Don't run serviceability/sa/ClhsdbDumpheap.java with -Xcomp

2024-07-22 Thread Daniel Lundén
On Thu, 18 Jul 2024 15:00:41 GMT, Daniel Lundén wrote: > We are seeing quite a few timeouts for > `serviceability/sa/ClhsdbDumpheap.java` running with -Xcomp in testing, > possibly related to > [JDK-8324241](https://bugs.openjdk.org/browse/JDK-8324241). We should disable > running `ClhsdbDump

Re: RFR: 8332551: Test vmTestbase/nsk/monitoring/MemoryNotificationInfo/from/from001/TestDescription.java timed out [v3]

2024-07-22 Thread Kevin Walls
> Short version: > Stop testing this test with -Xcomp by adding requires vm.compMode != "Xcomp" > > Make additional typo fixes and tidyups while here, it's just shocking. > > TestDescription.java contains the test definition, so the "requires" goes > there, with a comment. > > Updates to from00

Re: RFR: 8327054: DiagnosticCommand Compiler.perfmap does not log on output() [v4]

2024-07-22 Thread Sonia Zaldana Calles
> Hi all, > > This is a small patch to address > [8327054](https://bugs.openjdk.org/browse/JDK-8327054) making > `CodeCache::write_perf_map` aware of which output stream errors and warning > message should be going to. > > Testing: > - [x] Added test case passes. > > Thanks, > Sonia Soni

Re: RFR: 8327054: DiagnosticCommand Compiler.perfmap does not log on output() [v3]

2024-07-22 Thread Sonia Zaldana Calles
On Mon, 22 Jul 2024 14:41:16 GMT, Kevin Walls wrote: >> Sonia Zaldana Calles has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Adding comment > > test/hotspot/jtreg/serviceability/dcmd/compiler/PerfMapTest.java line 124: > >> 122:

Re: RFR: 8327054: DiagnosticCommand Compiler.perfmap does not log on output() [v3]

2024-07-22 Thread Kevin Walls
On Mon, 22 Jul 2024 15:33:27 GMT, Sonia Zaldana Calles wrote: >> test/hotspot/jtreg/serviceability/dcmd/compiler/PerfMapTest.java line 124: >> >>> 122: OutputAnalyzer output = new >>> JMXExecutor().execute("Compiler.perfmap %s".formatted(path)); >>> 123: output.shouldCo

Re: RFR: 8332551: Test vmTestbase/nsk/monitoring/MemoryNotificationInfo/from/from001/TestDescription.java timed out [v3]

2024-07-22 Thread Kevin Walls
On Mon, 22 Jul 2024 15:13:08 GMT, Kevin Walls wrote: >> Short version: >> Stop testing this test with -Xcomp by adding requires vm.compMode != "Xcomp" >> >> Make additional typo fixes and tidyups while here, it's just shocking. >> >> TestDescription.java contains the test definition, so the "re

Integrated: 8332551: Test vmTestbase/nsk/monitoring/MemoryNotificationInfo/from/from001/TestDescription.java timed out

2024-07-22 Thread Kevin Walls
On Thu, 11 Jul 2024 21:08:20 GMT, Kevin Walls wrote: > Short version: > Stop testing this test with -Xcomp by adding requires vm.compMode != "Xcomp" > > Make additional typo fixes and tidyups while here, it's just shocking. > > TestDescription.java contains the test definition, so the "requires

Re: RFR: 8336881: [Linux] Support for hierarchical limits for Metrics

2024-07-22 Thread Severin Gehwolf
On Mon, 22 Jul 2024 16:56:00 GMT, Severin Gehwolf wrote: > Please review this fix for cgroups-based metrics reporting in the > `jdk.internal.platform` package. This fix is supposed to address wrong > reporting of certain limits if the limits aren't set at the leaf nodes. > > For example, on cg

RFR: 8336881: [Linux] Support for hierarchical limits for Metrics

2024-07-22 Thread Severin Gehwolf
Please review this fix for cgroups-based metrics reporting in the `jdk.internal.platform` package. This fix is supposed to address wrong reporting of certain limits if the limits aren't set at the leaf nodes. For example, on cg v2, the memory limit interface file is `memory.max`. Consider a cgr

Re: RFR: 8334145: missing from vm_memory_map_.txt in System.dump_map help text

2024-07-22 Thread Chris Plummer
On Fri, 19 Jul 2024 01:44:16 GMT, Chris Plummer wrote: > Fix issue with `` argument. Can I get a 2nd review please? Thanks! - PR Comment: https://git.openjdk.org/jdk/pull/20246#issuecomment-2243506993

Re: RFR: 8334145: missing from vm_memory_map_.txt in System.dump_map help text

2024-07-22 Thread Thomas Stuefe
On Fri, 19 Jul 2024 01:44:16 GMT, Chris Plummer wrote: > Fix issue with `` argument. +1 - Marked as reviewed by stuefe (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/20246#pullrequestreview-2192244620

Re: RFR: 8333391: Test com/sun/jdi/InterruptHangTest.java failed: Thread was never interrupted during sleep

2024-07-22 Thread Alex Menkov
On Fri, 19 Jul 2024 18:41:10 GMT, Chris Plummer wrote: > The test sometimes fails because the InterruptException doesn't arrive during > the 100ms that the thread sleeps. My suspicion is that the interrupt is being > delayed for some external reason, like temporary load on the host. I'm > bump

Re: RFR: 8334145: missing from vm_memory_map_.txt in System.dump_map help text

2024-07-22 Thread Chris Plummer
On Fri, 19 Jul 2024 01:44:16 GMT, Chris Plummer wrote: > Fix issue with `` argument. Thanks David and Thomas! - PR Comment: https://git.openjdk.org/jdk/pull/20246#issuecomment-2243584280

Integrated: 8334145: missing from vm_memory_map_.txt in System.dump_map help text

2024-07-22 Thread Chris Plummer
On Fri, 19 Jul 2024 01:44:16 GMT, Chris Plummer wrote: > Fix issue with `` argument. This pull request has now been integrated. Changeset: b144910e Author:Chris Plummer URL: https://git.openjdk.org/jdk/commit/b144910ebb74be5a12dae57263f2a93452535f02 Stats: 1 line in 1 file chang

Re: RFR: 8328866: Add raw monitor rank support to the debug agent. [v8]

2024-07-22 Thread Chris Plummer
On Fri, 17 May 2024 19:32:31 GMT, Chris Plummer wrote: >> This PR adds ranked monitor support to the debug agent. The debug agent has >> a large number of monitors, and it's really hard to know which order to grab >> them in, and for that matter which monitors might already be held at any >> g

Re: RFR: 8333391: Test com/sun/jdi/InterruptHangTest.java failed: Thread was never interrupted during sleep

2024-07-22 Thread Chris Plummer
On Fri, 19 Jul 2024 18:41:10 GMT, Chris Plummer wrote: > The test sometimes fails because the InterruptException doesn't arrive during > the 100ms that the thread sleeps. My suspicion is that the interrupt is being > delayed for some external reason, like temporary load on the host. I'm > bump

Integrated: 8333391: Test com/sun/jdi/InterruptHangTest.java failed: Thread was never interrupted during sleep

2024-07-22 Thread Chris Plummer
On Fri, 19 Jul 2024 18:41:10 GMT, Chris Plummer wrote: > The test sometimes fails because the InterruptException doesn't arrive during > the 100ms that the thread sleeps. My suspicion is that the interrupt is being > delayed for some external reason, like temporary load on the host. I'm > bump

Re: RFR: 8334492: DiagnosticCommands (jcmd) should accept %p in output filenames and substitute PID [v6]

2024-07-22 Thread Sonia Zaldana Calles
> Hi all, > > This PR addresses [8334492](https://bugs.openjdk.org/browse/JDK-8334492) > enabling jcmd diagnostic commands that issue an output file to accept the > `%p` pattern in the file name and substitute it for the PID. > > This PR addresses the following diagnostic commands: > - [x] C

Re: RFR: 8334492: DiagnosticCommands (jcmd) should accept %p in output filenames and substitute PID [v7]

2024-07-22 Thread Sonia Zaldana Calles
> Hi all, > > This PR addresses [8334492](https://bugs.openjdk.org/browse/JDK-8334492) > enabling jcmd diagnostic commands that issue an output file to accept the > `%p` pattern in the file name and substitute it for the PID. > > This PR addresses the following diagnostic commands: > - [x] C

Re: RFR: 8334492: DiagnosticCommands (jcmd) should accept %p in output filenames and substitute PID [v5]

2024-07-22 Thread Sonia Zaldana Calles
On Sun, 21 Jul 2024 10:08:38 GMT, Thomas Stuefe wrote: >> Sonia, my bad if you already know this stuff but since it's fairly esoteric >> knowledge nowadays I'd like to help you out in advance: Thomas is proposing >> the usage of a X macro https://en.wikipedia.org/wiki/X_macro >> >> These can b

Re: RFR: 8334492: DiagnosticCommands (jcmd) should accept %p in output filenames and substitute PID [v5]

2024-07-22 Thread Sonia Zaldana Calles
On Sat, 20 Jul 2024 08:02:34 GMT, Thomas Stuefe wrote: >> src/hotspot/share/services/diagnosticArgument.hpp line 66: >> >>> 64: public: >>> 65: char *_name; >>> 66: }; >> >> Something is off about this. What is the lifetime of this object? >> >> You don't free it. Running a command in a

Re: RFR: 8327054: DiagnosticCommand Compiler.perfmap does not log on output() [v3]

2024-07-22 Thread Sonia Zaldana Calles
On Mon, 22 Jul 2024 16:31:32 GMT, Kevin Walls wrote: > I think it was returning an "exit value" of -1, the > test/lib/jdk/test/lib/process/OutputBuffer.java default. Correct, that was the exit value. > But yes just don't check exit code for a JMX Executor, and jcmd would return > zero but we

RFR: 8332738: Debug agent can deadlock on callbackLock when using StackFrame.PopFrames

2024-07-22 Thread Chris Plummer
Fix deadlock with debug agent callbackLock. Details in first comment. Tested by running all jdi, jdwp, and jdb tests with and without virtual threads about 40 times. The testing was initially done with my hack to force the self suspend (see the first comment in the CR), and then I did final test

Re: RFR: 8332738: Debug agent can deadlock on callbackLock when using StackFrame.PopFrames

2024-07-22 Thread Chris Plummer
On Mon, 22 Jul 2024 20:32:35 GMT, Chris Plummer wrote: > Fix deadlock with debug agent callbackLock. Details in first comment. > > Tested by running all jdi, jdwp, and jdb tests with and without virtual > threads about 40 times. The testing was initially done with my hack to force > the self s

Re: RFR: 8327054: DiagnosticCommand Compiler.perfmap does not log on output() [v4]

2024-07-22 Thread Leonid Mesnik
On Mon, 22 Jul 2024 15:36:47 GMT, Sonia Zaldana Calles wrote: >> Hi all, >> >> This is a small patch to address >> [8327054](https://bugs.openjdk.org/browse/JDK-8327054) making >> `CodeCache::write_perf_map` aware of which output stream errors and warning >> message should be going to. >>

Re: RFR: 8327054: DiagnosticCommand Compiler.perfmap does not log on output() [v4]

2024-07-22 Thread Thomas Stuefe
On Mon, 22 Jul 2024 15:36:47 GMT, Sonia Zaldana Calles wrote: >> Hi all, >> >> This is a small patch to address >> [8327054](https://bugs.openjdk.org/browse/JDK-8327054) making >> `CodeCache::write_perf_map` aware of which output stream errors and warning >> message should be going to. >>