Re: RFR: 8324539: Do not use LFS64 symbols in JDK libs [v7]

2024-02-05 Thread Matthias Baesken
On Fri, 2 Feb 2024 06:55:19 GMT, Magnus Ihse Bursie wrote: >> Similar to [JDK-8318696](https://bugs.openjdk.org/browse/JDK-8318696), we >> should use -D_FILE_OFFSET_BITS=64, and not -D_LARGEFILE64_SOURCE in the JDK >> native libraries. > > Magnus Ihse Bursie has updated the pull request

Re: RFR: 8318026: jcmd should provide access to low-level JVM debug information

2024-02-05 Thread Kevin Walls
On Mon, 5 Feb 2024 09:25:24 GMT, Yi Yang wrote: > jcmd VM.debug MyDebugCode.java Are you thinking to run some Java code in the target JVM? VM.debug as presented here is all about inspecting JVM state, mostly using existing mechanisms but which were not already exposed in jcmd. I think this

Re: RFR: 8324539: Do not use LFS64 symbols in JDK libs [v7]

2024-02-05 Thread Joachim Kern
On Mon, 5 Feb 2024 12:07:45 GMT, Matthias Baesken wrote: > Current commit compiles nicely on AIX. One issue we might still have > statvfs/statvfs64 is not mentioned here in the table of functions/structs > redefined on AIX >

Re: RFR: 8318026: jcmd should provide access to low-level JVM debug information

2024-02-05 Thread Kevin Walls
On Mon, 5 Feb 2024 07:21:05 GMT, Alan Bateman wrote: > ...needs wider review and a CSR should be submitted for this. Sure no problem I will refresh the linked CSR. - PR Comment: https://git.openjdk.org/jdk/pull/17655#issuecomment-1926513588

Re: RFR: 8324539: Do not use LFS64 symbols in JDK libs [v7]

2024-02-05 Thread Magnus Ihse Bursie
On Fri, 2 Feb 2024 06:55:19 GMT, Magnus Ihse Bursie wrote: >> Similar to [JDK-8318696](https://bugs.openjdk.org/browse/JDK-8318696), we >> should use -D_FILE_OFFSET_BITS=64, and not -D_LARGEFILE64_SOURCE in the JDK >> native libraries. > > Magnus Ihse Bursie has updated the pull request

Re: RFR: 8324539: Do not use LFS64 symbols in JDK libs [v7]

2024-02-05 Thread Matthias Baesken
On Mon, 5 Feb 2024 12:17:33 GMT, Joachim Kern wrote: > Yes, if statvfs64() is replaced by statvfs() in the code, we will fallback on > AIX to 32-Bit. _LARGE_FILES really does not help in this case! Thanks for confirming. I think we do not want to fallback on AIX, so the <*>64 variant needs to

Re: RFR: JDK-8320005 : Allow loading of shared objects with .a extension on AIX [v14]

2024-02-05 Thread Suchismith Roy
> J2SE agent does not start and throws error when it tries to find the shared > library ibm_16_am. > After searching for ibm_16_am.so ,the jvm agent throws and error as dll_load > fails.It fails to identify the shared library ibm_16_am.a shared archive file > on AIX. > Hence we are providing a

Re: RFR: 8247972: incorrect implementation of JVM TI GetObjectMonitorUsage

2024-02-05 Thread Serguei Spitsyn
On Fri, 2 Feb 2024 02:22:54 GMT, David Holmes wrote: >> The implementation of the JVM TI `GetObjectMonitorUsage` does not match the >> spec. >> The function returns the following structure: >> >> >> typedef struct { >> jthread owner; >> jint entry_count; >> jint waiter_count; >>

Re: RFR: 8324539: Do not use LFS64 symbols in JDK libs [v7]

2024-02-05 Thread Magnus Ihse Bursie
On Fri, 2 Feb 2024 06:55:19 GMT, Magnus Ihse Bursie wrote: >> Similar to [JDK-8318696](https://bugs.openjdk.org/browse/JDK-8318696), we >> should use -D_FILE_OFFSET_BITS=64, and not -D_LARGEFILE64_SOURCE in the JDK >> native libraries. > > Magnus Ihse Bursie has updated the pull request

Re: RFR: 8324539: Do not use LFS64 symbols in JDK libs [v7]

2024-02-05 Thread Matthias Baesken
On Mon, 5 Feb 2024 12:38:03 GMT, Magnus Ihse Bursie wrote: > It seems like the statvfs64 is a pre-existing bug in AIX in that case. I have > not removed any statvfs64 for AIX; all such changes are guarded by `#ifdef > _ALLBSD_SOURCE`, which I presume is not defined on AIX. > > I recommend

RE: RFR: 8318026: jcmd should provide access to low-level JVM debug information

2024-02-05 Thread Kevin Walls
Hi Thomas - Yes, it goes into all builds, and yes this is a new jcmd with sub-commands, you could call it a group. It's not a large group of commands, and the commands themselves are not exactly new (but no objection to a CSR). Getting these debug utilities into a jcmd is about making them

Re: RFR: JDK-8320005 : Allow loading of shared objects with .a extension on AIX [v14]

2024-02-05 Thread Suchismith Roy
On Mon, 5 Feb 2024 09:01:06 GMT, Martin Doerr wrote: >> Suchismith Roy has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Change logging > > src/hotspot/os/aix/os_aix.cpp line 1183: > >> 1181: // If the load fails,we try to reload by

Re: RFR: 8324539: Do not use LFS64 symbols in JDK libs [v7]

2024-02-05 Thread Matthias Baesken
On Fri, 2 Feb 2024 06:55:19 GMT, Magnus Ihse Bursie wrote: >> Similar to [JDK-8318696](https://bugs.openjdk.org/browse/JDK-8318696), we >> should use -D_FILE_OFFSET_BITS=64, and not -D_LARGEFILE64_SOURCE in the JDK >> native libraries. > > Magnus Ihse Bursie has updated the pull request

Re: RFR: JDK-8320005 : Allow loading of shared objects with .a extension on AIX [v14]

2024-02-05 Thread Martin Doerr
On Mon, 5 Feb 2024 08:52:21 GMT, Suchismith Roy wrote: >> J2SE agent does not start and throws error when it tries to find the shared >> library ibm_16_am. >> After searching for ibm_16_am.so ,the jvm agent throws and error as dll_load >> fails.It fails to identify the shared library

Re: RFR: JDK-8320005 : Allow loading of shared objects with .a extension on AIX [v11]

2024-02-05 Thread Martin Doerr
On Wed, 31 Jan 2024 11:22:27 GMT, Joachim Kern wrote: >> The load library gets the entire library name, after construction from >> dll_build_name. This is always a .so file name. When .so file name fails to >> load, we fallback to .a filename. >> Do i need to mention the filename as

Re: RFR: 8318026: jcmd should provide access to low-level JVM debug information

2024-02-05 Thread Yi Yang
On Wed, 31 Jan 2024 14:22:44 GMT, Kevin Walls wrote: > Introduce the jcmd "VM.debug" to implement access to a useful set of the > established debug.cpp utilities, with "jcmd PID VM.debug subcommand ...". > > Not recommended for live production use. Calling these "debug" utilities, > and not

Re: RFR: 8318026: jcmd should provide access to low-level JVM debug information

2024-02-05 Thread Kevin Walls
On Sun, 4 Feb 2024 23:07:27 GMT, David Holmes wrote: > > not including them in the jcmd help output, is to remind us they are not > > general customer-facing tools. > > Then who are they for? and do they really belong in the `jcmd` tool, or is > that just convenient? > > Without help

Re: RFR: 8324539: Do not use LFS64 symbols in JDK libs [v7]

2024-02-05 Thread Matthias Baesken
On Mon, 5 Feb 2024 14:03:45 GMT, Magnus Ihse Bursie wrote: > I hope finally the AIX part of this PR is done. Thanks for the AIX related effort ; I put it again into our internal build/test queue. - PR Comment: https://git.openjdk.org/jdk/pull/17538#issuecomment-1927105669

Re: RFR: 8318026: jcmd should provide access to low-level JVM debug information

2024-02-05 Thread Laurence Cable
On 2/5/24 1:56 AM, Kevin Walls wrote: On Mon, 5 Feb 2024 09:25:24 GMT, Yi Yang wrote: jcmd VM.debug MyDebugCode.java Are you thinking to run some Java code in the target JVM? VM.debug as presented here is all about inspecting JVM state, mostly using existing mechanisms but which were

Re: RFR: 8325180: Rename jvmti_FollowRefObjects.h

2024-02-05 Thread Julian Waters
On Fri, 2 Feb 2024 16:34:19 GMT, Kim Barrett wrote: > Please review this trivial change that renames the file > test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.h > to jvmti_FollowRefObjects.hpp, and replaces uses of NULL in the file. > > Testing: mach5 tier1 Marked as

Re: RFR: 8307977: jcmd and jstack broken for target processes running with elevated capabilities

2024-02-05 Thread Severin Gehwolf
On Tue, 30 Jan 2024 10:47:22 GMT, Sebastian Lövdahl wrote: > 8307977: jcmd and jstack broken for target processes running with elevated > capabilities This looks good to me, but would like for somebody from the serviceability group to look at this as well. @plummercj perhaps? > _Mailing list

Re: RFR: 8324539: Do not use LFS64 symbols in JDK libs [v7]

2024-02-05 Thread Magnus Ihse Bursie
On Fri, 2 Feb 2024 06:55:19 GMT, Magnus Ihse Bursie wrote: >> Similar to [JDK-8318696](https://bugs.openjdk.org/browse/JDK-8318696), we >> should use -D_FILE_OFFSET_BITS=64, and not -D_LARGEFILE64_SOURCE in the JDK >> native libraries. > > Magnus Ihse Bursie has updated the pull request

Re: RFR: 8298046: Fix hidden but significant trailing whitespace in properties files for serviceability code

2024-02-05 Thread Magnus Ihse Bursie
On Tue, 28 Mar 2023 17:36:33 GMT, Chris Plummer wrote: >> According to [the >> specification](https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/util/Properties.html#load(java.io.Reader)) >> trailing whitespaces in the values of properties files are (somewhat >> surprisingly)

Re: RFR: 8298046: Fix hidden but significant trailing whitespace in properties files for serviceability code

2024-02-05 Thread Magnus Ihse Bursie
On Tue, 28 Mar 2023 17:36:33 GMT, Chris Plummer wrote: > What was the reason for not moving forward with this PR? Me going on medical leave most of 2023... :-/ I intend to get this done now. - PR Comment: https://git.openjdk.org/jdk/pull/11490#issuecomment-1927376112

Re: RFR: 8324539: Do not use LFS64 symbols in JDK libs [v7]

2024-02-05 Thread Magnus Ihse Bursie
On Fri, 2 Feb 2024 06:55:19 GMT, Magnus Ihse Bursie wrote: >> Similar to [JDK-8318696](https://bugs.openjdk.org/browse/JDK-8318696), we >> should use -D_FILE_OFFSET_BITS=64, and not -D_LARGEFILE64_SOURCE in the JDK >> native libraries. > > Magnus Ihse Bursie has updated the pull request

Re: RFR: 8324539: Do not use LFS64 symbols in JDK libs [v8]

2024-02-05 Thread Magnus Ihse Bursie
> Similar to [JDK-8318696](https://bugs.openjdk.org/browse/JDK-8318696), we > should use -D_FILE_OFFSET_BITS=64, and not -D_LARGEFILE64_SOURCE in the JDK > native libraries. Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision:

Re: RFR: 8298046: Fix hidden but significant trailing whitespace in properties files for serviceability code [v3]

2024-02-05 Thread Magnus Ihse Bursie
On Mon, 5 Feb 2024 16:53:54 GMT, Magnus Ihse Bursie wrote: >> According to [the >> specification](https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/util/Properties.html#load(java.io.Reader)) >> trailing whitespaces in the values of properties files are (somewhat >>

Re: RFR: 8298046: Fix hidden but significant trailing whitespace in properties files for serviceability code [v3]

2024-02-05 Thread Magnus Ihse Bursie
> According to [the > specification](https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/util/Properties.html#load(java.io.Reader)) > trailing whitespaces in the values of properties files are (somewhat > surprisingly) actually significant. > > We have multiple files in the JDK

Re: RFR: 8298046: Fix hidden but significant trailing whitespace in properties files for serviceability code [v2]

2024-02-05 Thread Magnus Ihse Bursie
> According to [the > specification](https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/util/Properties.html#load(java.io.Reader)) > trailing whitespaces in the values of properties files are (somewhat > surprisingly) actually significant. > > We have multiple files in the JDK

Integrated: JDK-8318566: Heap walking functions should not use FilteredFieldStream

2024-02-05 Thread Alex Menkov
On Wed, 31 Jan 2024 21:28:34 GMT, Alex Menkov wrote: > FilteredFieldStream used by heap walking functions to iterate through > klass/superclasses/interfaces fields are known to have poor performance (see > [JDK-8317692](https://bugs.openjdk.org/browse/JDK-8317692) for details). > Heap walking

Re: RFR: 8298046: Fix hidden but significant trailing whitespace in properties files for serviceability code [v4]

2024-02-05 Thread Magnus Ihse Bursie
> According to [the > specification](https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/util/Properties.html#load(java.io.Reader)) > trailing whitespaces in the values of properties files are (somewhat > surprisingly) actually significant. > > We have multiple files in the JDK

Re: RFR: 8298046: Fix hidden but significant trailing whitespace in properties files for serviceability code [v4]

2024-02-05 Thread Chris Plummer
On Mon, 5 Feb 2024 16:53:33 GMT, Magnus Ihse Bursie wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Restore period > > src/jdk.management.agent/share/classes/jdk/internal/agent/resources/agent_ko.properties

Re: RFR: 8298046: Fix hidden but significant trailing whitespace in properties files for serviceability code [v4]

2024-02-05 Thread Chris Plummer
On Mon, 5 Feb 2024 21:51:02 GMT, Magnus Ihse Bursie wrote: >> According to [the >> specification](https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/util/Properties.html#load(java.io.Reader)) >> trailing whitespaces in the values of properties files are (somewhat >>

Re: RFR: 8298046: Fix hidden but significant trailing whitespace in properties files for serviceability code [v4]

2024-02-05 Thread Magnus Ihse Bursie
On Mon, 5 Feb 2024 19:48:14 GMT, Chris Plummer wrote: >> src/jdk.management.agent/share/classes/jdk/internal/agent/resources/agent_ko.properties >> line 27: >> >>> 25: >>> 26: agent.err.error= 오류 >>> 27: agent.err.exception= 에이전트에 예외사항이 발생했습니다. >> >> I

Integrated: JDK-8317636: Improve heap walking API tests to verify correctness of field indexes

2024-02-05 Thread Alex Menkov
On Thu, 25 Jan 2024 23:05:19 GMT, Alex Menkov wrote: > The fix adds new test for FollowReferences JVMTI function to verify > correctness of reported field indexes. This pull request has now been integrated. Changeset: f31957e6 Author:Alex Menkov URL:

Re: [jdk22] RFR: 8322066: Update troff manpages in JDK 22 before RC

2024-02-05 Thread Joe Darcy
On Sun, 4 Feb 2024 22:43:28 GMT, David Holmes wrote: > This update drops the "ea" from the version string. > > We also propagate the following fixes from the markdown sources to the troff > manpage file: > > JDK-8322478: Update java manpage for multi-file source-code launcher > JDK-8302233:

Re: RFR: 8325180: Rename jvmti_FollowRefObjects.h

2024-02-05 Thread Leonid Mesnik
On Fri, 2 Feb 2024 16:34:19 GMT, Kim Barrett wrote: > Please review this trivial change that renames the file > test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.h > to jvmti_FollowRefObjects.hpp, and replaces uses of NULL in the file. > > Testing: mach5 tier1 Marked as

[jdk22] Integrated: 8322066: Update troff manpages in JDK 22 before RC

2024-02-05 Thread David Holmes
On Sun, 4 Feb 2024 22:43:28 GMT, David Holmes wrote: > This update drops the "ea" from the version string. > > We also propagate the following fixes from the markdown sources to the troff > manpage file: > > JDK-8322478: Update java manpage for multi-file source-code launcher > JDK-8302233:

Re: [jdk22] RFR: 8322066: Update troff manpages in JDK 22 before RC

2024-02-05 Thread David Holmes
On Mon, 5 Feb 2024 21:58:23 GMT, Joe Darcy wrote: >> This update drops the "ea" from the version string. >> >> We also propagate the following fixes from the markdown sources to the troff >> manpage file: >> >> JDK-8322478: Update java manpage for multi-file source-code launcher >>

Re: [jdk22] RFR: 8322066: Update troff manpages in JDK 22 before RC

2024-02-05 Thread Iris Clark
On Sun, 4 Feb 2024 22:43:28 GMT, David Holmes wrote: > This update drops the "ea" from the version string. > > We also propagate the following fixes from the markdown sources to the troff > manpage file: > > JDK-8322478: Update java manpage for multi-file source-code launcher > JDK-8302233:

Re: RFR: 8247972: incorrect implementation of JVM TI GetObjectMonitorUsage [v2]

2024-02-05 Thread Serguei Spitsyn
> The implementation of the JVM TI `GetObjectMonitorUsage` does not match the > spec. > The function returns the following structure: > > > typedef struct { > jthread owner; > jint entry_count; > jint waiter_count; > jthread* waiters; > jint notify_waiter_count; >