Re: RFR: 8344009: Improve compiler memory statistics [v8]

2025-03-03 Thread Thomas Stuefe
> Greetings, > > This is a rewrite of the Compiler Memory Statistic. The primary new feature > is the capability to track allocations by C2 phases. This will allow for a > much faster, more thorough analysis of footprint issues. > > Tracking Arena memory movement is not trivial since one needs

Re: RFR: 8344009: Improve compiler memory statistics [v7]

2025-03-03 Thread Roberto Castañeda Lozano
On Sun, 2 Mar 2025 07:20:58 GMT, Thomas Stuefe wrote: >> Greetings, >> >> This is a rewrite of the Compiler Memory Statistic. The primary new feature >> is the capability to track allocations by C2 phases. This will allow for a >> much faster, more thorough analysis of footprint issues. >> >

Re: RFR: 8344009: Improve compiler memory statistics [v7]

2025-03-03 Thread Thomas Stuefe
On Mon, 3 Mar 2025 09:17:03 GMT, Roberto Castañeda Lozano wrote: > Thanks for addressing my comments! The latest changeset looks good (modulo > unnecessary changes in `ostream.hpp`) and passes all tier1-5 tests in > Oracle's test pipeline. Many thanks, @robcasloz ! I also merged master and wi

Re: RFR: 8347433: Deprecate XML interchange in java.management/javax/management/modelmbean/DescriptorSupport for removal [v3]

2025-03-03 Thread Daniel Fuchs
On Mon, 24 Feb 2025 09:59:15 GMT, Kevin Walls wrote: >> DescriptorSupport has a constructor and a method providing creation from, >> and export to, XML. >> >> These are unused in the JDK and have no practical known examples of usage. >> XML parsing is best done by an independent implementatio

Re: RFR: 8350903: Remove explicit libjvm.so dependency for libVThreadEventTest

2025-03-03 Thread Alan Bateman
On Fri, 28 Feb 2025 01:40:34 GMT, Jiangli Zhou wrote: > Please review the test fix that removes `libVThreadEventTest` explicit > dependency to `libjvm`, by removing the call to `JNI_GetCreatedJavaVMs` in > `Agent_OnAttach`. There is a `vm` argument passed via `Agent_OnAttach`. With > the chang

Re: RFR: 8347433: Deprecate XML interchange in java.management/javax/management/modelmbean/DescriptorSupport for removal [v4]

2025-03-03 Thread Daniel Fuchs
On Mon, 3 Mar 2025 12:27:28 GMT, Kevin Walls wrote: >> DescriptorSupport has a constructor and a method providing creation from, >> and export to, XML. >> >> These are unused in the JDK and have no practical known examples of usage. >> XML parsing is best done by an independent implementation

Re: RFR: 8347433: Deprecate XML interchange in java.management/javax/management/modelmbean/DescriptorSupport for removal [v4]

2025-03-03 Thread Kevin Walls
> DescriptorSupport has a constructor and a method providing creation from, and > export to, XML. > > These are unused in the JDK and have no practical known examples of usage. > XML parsing is best done by an independent implementation, not this class. Kevin Walls has updated the pull request

Re: RFR: 8315488: Remove outdated and unused ciReplay support from SA [v7]

2025-03-03 Thread Coleen Phillimore
On Fri, 28 Feb 2025 18:10:26 GMT, Coleen Phillimore wrote: >> This change removes the ci, c1 and c2 compiler code from the serviceability >> agent. The ciReplay functionality is supported inside the jvm and this >> duplicated functionality in SA had bit rotted so is removed. >> Tested with tie

Re: RFR: 8347433: Deprecate XML interchange in java.management/javax/management/modelmbean/DescriptorSupport for removal [v3]

2025-03-03 Thread Kevin Walls
On Mon, 3 Mar 2025 09:56:36 GMT, Daniel Fuchs wrote: >> Kevin Walls 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 10 additional >> commits sin

Integrated: 8315488: Remove outdated and unused ciReplay support from SA

2025-03-03 Thread Coleen Phillimore
On Tue, 25 Feb 2025 16:52:09 GMT, Coleen Phillimore wrote: > This change removes the ci, c1 and c2 compiler code from the serviceability > agent. The ciReplay functionality is supported inside the jvm and this > duplicated functionality in SA had bit rotted so is removed. > Tested with tier1-4

Re: RFR: 8315488: Remove outdated and unused ciReplay support from SA [v7]

2025-03-03 Thread Yudi Zheng
On Fri, 28 Feb 2025 18:10:26 GMT, Coleen Phillimore wrote: >> This change removes the ci, c1 and c2 compiler code from the serviceability >> agent. The ciReplay functionality is supported inside the jvm and this >> duplicated functionality in SA had bit rotted so is removed. >> Tested with tie

Re: RFR: 8347433: Deprecate XML interchange in java.management/javax/management/modelmbean/DescriptorSupport for removal [v4]

2025-03-03 Thread Kevin Walls
On Mon, 3 Mar 2025 12:27:28 GMT, Kevin Walls wrote: >> DescriptorSupport has a constructor and a method providing creation from, >> and export to, XML. >> >> These are unused in the JDK and have no practical known examples of usage. >> XML parsing is best done by an independent implementation

Re: RFR: 8344009: Improve compiler memory statistics [v8]

2025-03-03 Thread Roberto Castañeda Lozano
On Mon, 3 Mar 2025 10:41:16 GMT, Thomas Stuefe wrote: >> Greetings, >> >> This is a rewrite of the Compiler Memory Statistic. The primary new feature >> is the capability to track allocations by C2 phases. This will allow for a >> much faster, more thorough analysis of footprint issues. >> >

Integrated: 8344009: Improve compiler memory statistics

2025-03-03 Thread Thomas Stuefe
On Sat, 8 Feb 2025 06:56:40 GMT, Thomas Stuefe wrote: > Greetings, > > This is a rewrite of the Compiler Memory Statistic. The primary new feature > is the capability to track allocations by C2 phases. This will allow for a > much faster, more thorough analysis of footprint issues. > > Track

Re: RFR: 8350903: Remove explicit libjvm.so dependency for libVThreadEventTest

2025-03-03 Thread Jiangli Zhou
On Fri, 28 Feb 2025 01:40:34 GMT, Jiangli Zhou wrote: > Please review the test fix that removes `libVThreadEventTest` explicit > dependency to `libjvm`, by removing the call to `JNI_GetCreatedJavaVMs` in > `Agent_OnAttach`. There is a `vm` argument passed via `Agent_OnAttach`. With > the chang

Re: RFR: 8347433: Deprecate XML interchange in java.management/javax/management/modelmbean/DescriptorSupport for removal [v4]

2025-03-03 Thread Serguei Spitsyn
On Mon, 3 Mar 2025 12:27:28 GMT, Kevin Walls wrote: >> DescriptorSupport has a constructor and a method providing creation from, >> and export to, XML. >> >> These are unused in the JDK and have no practical known examples of usage. >> XML parsing is best done by an independent implementation

Re: RFR: 8350939: Revisit Windows PDH buffer size calculation for OperatingSystemMXBean

2025-03-03 Thread David Holmes
On Mon, 3 Mar 2025 17:08:21 GMT, Kevin Walls wrote: > (the last sentence quoted there seems to contradict the first) I think it is a typo and meant to say `_snprintf` not `snprintf`. I added feedback to the MS page. - PR Comment: https://git.openjdk.org/jdk/pull/23861#issuecomment

Re: RFR: 8350939: Revisit Windows PDH buffer size calculation for OperatingSystemMXBean

2025-03-03 Thread David Holmes
On Mon, 3 Mar 2025 12:22:01 GMT, Kevin Walls wrote: > Following on from JDK-8350820, which backed out the _snprintf to snprintf > change (JDK-8336289) in OperatingSystemImpl.c on Windows, because the counter > names were being truncated (so CPU monitoring was not possible). > > This change mov

Re: RFR: 8350771: Fix -Wzero-as-null-pointer-constant warning in nsk/monitoring ThreadController utilitiy

2025-03-03 Thread David Holmes
On Wed, 26 Feb 2025 12:23:16 GMT, Kim Barrett wrote: > Please review this trivial change to remove a use of literal zero as a null > pointer constant in an nsk test utility. > > Testing: mach5 tier1 > Locally tested (linux-x64) with -Wzero-as-null-pointer-constant enabled to > verify the warning

Integrated: 8350771: Fix -Wzero-as-null-pointer-constant warning in nsk/monitoring ThreadController utility

2025-03-03 Thread Kim Barrett
On Wed, 26 Feb 2025 12:23:16 GMT, Kim Barrett wrote: > Please review this trivial change to remove a use of literal zero as a null > pointer constant in an nsk test utility. > > Testing: mach5 tier1 > Locally tested (linux-x64) with -Wzero-as-null-pointer-constant enabled to > verify the warning

Re: RFR: 8350771: Fix -Wzero-as-null-pointer-constant warning in nsk/monitoring ThreadController utility

2025-03-03 Thread Kim Barrett
On Tue, 4 Mar 2025 04:20:20 GMT, David Holmes wrote: >> Please review this trivial change to remove a use of literal zero as a null >> pointer constant in an nsk test utility. >> >> Testing: mach5 tier1 >> Locally tested (linux-x64) with -Wzero-as-null-pointer-constant enabled to >> verify the w

RFR: 8350939: Revisit Windows PDH buffer size calculation for OperatingSystemMXBean

2025-03-03 Thread Kevin Walls
Following on from JDK-8350820, which backed out the _snprintf to snprintf change (JDK-8336289) in OperatingSystemImpl.c on Windows, because the counter names were being truncated (so CPU monitoring was not possible). This change moves to snprintf again, but the counter names are not truncated.

Re: RFR: 8350939: Revisit Windows PDH buffer size calculation for OperatingSystemMXBean

2025-03-03 Thread Kevin Walls
On Mon, 3 Mar 2025 12:22:01 GMT, Kevin Walls wrote: > Following on from JDK-8350820, which backed out the _snprintf to snprintf > change (JDK-8336289) in OperatingSystemImpl.c on Windows, because the counter > names were being truncated (so CPU monitoring was not possible). > > This change mov

Integrated: 8350903: Remove explicit libjvm.so dependency for libVThreadEventTest

2025-03-03 Thread Jiangli Zhou
On Fri, 28 Feb 2025 01:40:34 GMT, Jiangli Zhou wrote: > Please review the test fix that removes `libVThreadEventTest` explicit > dependency to `libjvm`, by removing the call to `JNI_GetCreatedJavaVMs` in > `Agent_OnAttach`. There is a `vm` argument passed via `Agent_OnAttach`. With > the chang