Re: RFR: 8321404: Limit the number of heap dumps triggered by HeapDumpBeforeFullGC/AfterFullGC [v3]

2024-01-03 Thread Denghui Dong
On Thu, 4 Jan 2024 03:19:17 GMT, Denghui Dong wrote: >> Denghui Dong has updated the pull request incrementally with one additional >> commit since the last revision: >> >> refine description > > Thanks for the review. > @D-D-H the new test is failing in our CI in tier3 on all platforms: >

Re: [jdk22] RFR: 8319948: jcmd man page needs to be updated [v2]

2024-01-03 Thread Alan Bateman
On Thu, 4 Jan 2024 01:52:44 GMT, David Holmes wrote: >> Hi all, >> >> This pull request contains a backport of commit >> [028ec7e](https://github.com/openjdk/jdk/commit/028ec7e744f06cd8429b7b74d7b6f7020133aa94) >> from the [jdk](https://github.com/openjdk/jdk/) repository. >> >> The commit

Re: RFR: 8322981: Fix 2 locations in JDI that throw IOException without using the "Caused by" exception

2024-01-03 Thread David Holmes
On Thu, 4 Jan 2024 02:00:24 GMT, Chris Plummer wrote: > Use "cause" argument when rethrowing an exception. See CR for details on how > this helps. > > Tested with all of tier1, and also ran tier2 and tier4 svc tests. > > I'd like to push this as a trivial change. Setting the cause is good,

Re: RFR: 8322978: Remove debug agent debugMonitorTimedWait() function. It is no longer used.

2024-01-03 Thread David Holmes
On Thu, 4 Jan 2024 02:18:10 GMT, Chris Plummer wrote: > Remove unused debugMonitorTimedWait() function. > > Tested with all of tier1, and also ran tier2 and tier4 svc tests. > > I'd like to push this as a trivial change. Seems fine and trivial. - Marked as reviewed by dholmes

Re: RFR: 8321404: Limit the number of heap dumps triggered by HeapDumpBeforeFullGC/AfterFullGC [v3]

2024-01-03 Thread David Holmes
On Sat, 16 Dec 2023 04:36:57 GMT, Denghui Dong wrote: >> Hi, >> >> Could I have a review of this patch? >> >> In the current implementation, HeapDumpBeforeFullGC/AfterFullGC will >> generate dumps for every FGC, increasing the risk of disk full. >> >> This patch introduces a new option

Re: RFR: 8321404: Limit the number of heap dumps triggered by HeapDumpBeforeFullGC/AfterFullGC [v3]

2024-01-03 Thread David Holmes
On Thu, 4 Jan 2024 03:19:17 GMT, Denghui Dong wrote: >> Denghui Dong has updated the pull request incrementally with one additional >> commit since the last revision: >> >> refine description > > Thanks for the review. @D-D-H the new test is failing in our CI in tier3 on all platforms:

Integrated: 8321404: Limit the number of heap dumps triggered by HeapDumpBeforeFullGC/AfterFullGC

2024-01-03 Thread Denghui Dong
On Tue, 5 Dec 2023 16:31:24 GMT, Denghui Dong wrote: > Hi, > > Could I have a review of this patch? > > In the current implementation, HeapDumpBeforeFullGC/AfterFullGC will generate > dumps for every FGC, increasing the risk of disk full. > > This patch introduces a new option

Re: RFR: 8321404: Limit the number of heap dumps triggered by HeapDumpBeforeFullGC/AfterFullGC [v3]

2024-01-03 Thread Denghui Dong
On Sat, 16 Dec 2023 04:36:57 GMT, Denghui Dong wrote: >> Hi, >> >> Could I have a review of this patch? >> >> In the current implementation, HeapDumpBeforeFullGC/AfterFullGC will >> generate dumps for every FGC, increasing the risk of disk full. >> >> This patch introduces a new option

Re: RFR: 8318707: Remove the Java Management Extension (JMX) Management Applet (m-let) feature

2024-01-03 Thread Bernd
On Wed, 25 Oct 2023 17:02:03 GMT, Kevin Walls wrote: > Remove the MLet feature and its tests. > > Some tests use MLet classes but are not testing MLets. These are updated, to > use another test MBean or an MBean which is a URLClassLoader, e.g. >

RFR: 8322981: Fix 2 locations in JDI that throw IOException without using the "Caused by" exception

2024-01-03 Thread Chris Plummer
Use "cause" argument when rethrowing an exception. See CR for details on how this helps. Tested with all of tier1, and also ran tier2 and tier4 svc tests. I'd like to push this as a trivial change. - Commit messages: - Use "cause" argument when rethrowing an exception Changes:

RFR: 8322978: Remove debug agent debugMonitorTimedWait() function. It is no longer used.

2024-01-03 Thread Chris Plummer
Remove unused debugMonitorTimedWait() function. Tested with all of tier1, and also ran tier2 and tier4 svc tests. I'd like to push this as a trivial change. - Commit messages: - Remove unused debugMonitorTimedWait() function. Changes: https://git.openjdk.org/jdk/pull/17260/files

Re: RFR: 8318707: Remove the Java Management Extension (JMX) Management Applet (m-let) feature

2024-01-03 Thread Serguei Spitsyn
On Wed, 25 Oct 2023 17:02:03 GMT, Kevin Walls wrote: > Remove the MLet feature and its tests. > > Some tests use MLet classes but are not testing MLets. These are updated, to > use another test MBean or an MBean which is a URLClassLoader, e.g. >

RFR: 8322980: Debug agent's dumpThread() API should update thread's name before printing it

2024-01-03 Thread Chris Plummer
In threadControl.c, at build time you can decide to keep track of thread names by compiling with "#define DEBUG_THREADNAME". If this is also a debug build, some extra debugging functions are included in the build, including "dumpThread(ThreadNode *node)". These are intended to be called from

Re: RFR: 8318707: Remove the Java Management Extension (JMX) Management Applet (m-let) feature

2024-01-03 Thread Serguei Spitsyn
On Wed, 25 Oct 2023 17:02:03 GMT, Kevin Walls wrote: > Remove the MLet feature and its tests. > > Some tests use MLet classes but are not testing MLets. These are updated, to > use another test MBean or an MBean which is a URLClassLoader, e.g. >

Re: [jdk22] RFR: 8319948: jcmd man page needs to be updated [v2]

2024-01-03 Thread David Holmes
> Hi all, > > This pull request contains a backport of commit > [028ec7e](https://github.com/openjdk/jdk/commit/028ec7e744f06cd8429b7b74d7b6f7020133aa94) > from the [jdk](https://github.com/openjdk/jdk/) repository. > > The commit being backported was authored by @dholmes-ora on 3 Jan 2024 and

[jdk22] RFR: 8319948: jcmd man page needs to be updated

2024-01-03 Thread David Holmes
Hi all, This pull request contains a backport of commit [028ec7e](https://github.com/openjdk/jdk/commit/028ec7e744f06cd8429b7b74d7b6f7020133aa94) from the [jdk](https://github.com/openjdk/jdk/) repository. The commit being backported was authored by @dholmes-ora on 3 Jan 2024 and was reviewed

Integrated: 8319948: jcmd man page needs to be updated

2024-01-03 Thread David Holmes
On Tue, 2 Jan 2024 05:51:59 GMT, David Holmes wrote: > Please review these missing updates to the `jcmd` manpage - see JBS issue for > details. > > I also fixed the sub-command ordering in a few places and a couple of minor > formatting fixes. > > Thanks to @tstuefe for collating the initial

Integrated: 8322873: Duplicate -ljava -ljvm options for libinstrument

2024-01-03 Thread Mikael Vidstedt
On Tue, 2 Jan 2024 21:44:04 GMT, Mikael Vidstedt wrote: > The libinstrument library is linked against libjava and libjvm, twice. This > is mostly harmless but Xcode 15.x generates a warning: > > Creating support/modules_libs/java.instrument/libinstrument.dylib from 12 > file(s) > ld: warning:

Re: RFR: 8322873: Duplicate -ljava -ljvm options for libinstrument

2024-01-03 Thread Mikael Vidstedt
On Tue, 2 Jan 2024 21:44:04 GMT, Mikael Vidstedt wrote: > The libinstrument library is linked against libjava and libjvm, twice. This > is mostly harmless but Xcode 15.x generates a warning: > > Creating support/modules_libs/java.instrument/libinstrument.dylib from 12 > file(s) > ld: warning:

Re: RFR: JDK-8322782: Clean up usages of unnecessary fully qualified class name "java.util.Arrays" [v3]

2024-01-03 Thread Alexey Ivanov
On Wed, 3 Jan 2024 13:55:22 GMT, Matthias Baesken wrote: >> In [JDK-8322772](https://bugs.openjdk.org/browse/JDK-8322772) one similar >> cleanup has been proposed before (and was done in the change). But there are >> a number of other places in the codebase where the import is done and still

Integrated: 8320707: Virtual thread test updates

2024-01-03 Thread Alan Bateman
On Sat, 16 Dec 2023 17:25:20 GMT, Alan Bateman wrote: > A lot of test changes have accumulated in the loom repo, this includes both > new tests and updates to existing tests. Some of these updates can be brought > to the main line. This update brings over: > > - The existing tests for pinning

Re: RFR: 8311218: fatal error: stuck in JvmtiVTMSTransitionDisabler::VTMS_transition_disable [v8]

2024-01-03 Thread Alan Bateman
On Wed, 3 Jan 2024 13:55:24 GMT, Thomas Wuerthinger wrote: > Are these new compiler intrinsics required or an optional performance > optimization? Performance. If the intrinsic isn't there then some methods executed on virtual threads, or on a virtual thread as the target for some op, will

Re: RFR: JDK-8322782: Clean up usages of unnecessary fully qualified class name "java.util.Arrays" [v3]

2024-01-03 Thread Matthias Baesken
On Wed, 3 Jan 2024 13:55:22 GMT, Matthias Baesken wrote: >> In [JDK-8322772](https://bugs.openjdk.org/browse/JDK-8322772) one similar >> cleanup has been proposed before (and was done in the change). But there are >> a number of other places in the codebase where the import is done and still

Re: RFR: 8311218: fatal error: stuck in JvmtiVTMSTransitionDisabler::VTMS_transition_disable [v8]

2024-01-03 Thread Thomas Wuerthinger
On Wed, 20 Dec 2023 10:40:23 GMT, Serguei Spitsyn wrote: >>> You can't do this! The Java code knows nothing about JVM TI being >>> enabled/disabled and will call this function unconditionally. >> >> Indeed. I wonder if anyone is testing minimal builds to catch issues like >> this. > > Good

Re: RFR: JDK-8322782: Clean up usages of unnecessary fully qualified class name "java.util.Arrays" [v3]

2024-01-03 Thread Matthias Baesken
> In [JDK-8322772](https://bugs.openjdk.org/browse/JDK-8322772) one similar > cleanup has been proposed before (and was done in the change). But there are > a number of other places in the codebase where the import is done and still > the unneeded fully qualified class name "java.util.Arrays"

Re: RFR: JDK-8322782: Clean up usages of unnecessary fully qualified class name "java.util.Arrays" [v2]

2024-01-03 Thread Matthias Baesken
> In [JDK-8322772](https://bugs.openjdk.org/browse/JDK-8322772) one similar > cleanup has been proposed before (and was done in the change). But there are > a number of other places in the codebase where the import is done and still > the unneeded fully qualified class name "java.util.Arrays"

Re: RFR: 8322873: Duplicate -ljava -ljvm options for libinstrument

2024-01-03 Thread Erik Joelsson
On Tue, 2 Jan 2024 21:44:04 GMT, Mikael Vidstedt wrote: > The libinstrument library is linked against libjava and libjvm, twice. This > is mostly harmless but Xcode 15.x generates a warning: > > Creating support/modules_libs/java.instrument/libinstrument.dylib from 12 > file(s) > ld: warning:

Re: RFR: JDK-8322782: Clean up usages of unnecessary fully qualified class name "java.util.Arrays"

2024-01-03 Thread Alan Bateman
On Wed, 3 Jan 2024 11:41:20 GMT, Matthias Baesken wrote: > In [JDK-8322772](https://bugs.openjdk.org/browse/JDK-8322772) one similar > cleanup has been proposed before (and was done in the change). But there are > a number of other places in the codebase where the import is done and still >

Re: RFR: 8320707: Virtual thread test updates [v2]

2024-01-03 Thread Jaikiran Pai
On Wed, 3 Jan 2024 11:53:43 GMT, Alan Bateman wrote: > It's been bumped to 1.5g in the loom repo for some time. Ah, I misread that change previously as reducing it from `1g` to `150m`, while infact this change is increasing it to `1500m`. Given your reference to JDK-8303635, the change looks

Re: RFR: 8320707: Virtual thread test updates [v2]

2024-01-03 Thread Alan Bateman
On Wed, 3 Jan 2024 11:53:24 GMT, Jaikiran Pai wrote: > Just one question - doesn't the use of a new native code in the test library > (the `libVThreadPinner.c`) require any build changes (I'm not too familiar > with that part)? Magnus did some work in the make files some time ago to build

Re: RFR: 8320707: Virtual thread test updates [v2]

2024-01-03 Thread Alan Bateman
On Wed, 3 Jan 2024 11:39:01 GMT, Jaikiran Pai wrote: > Are these heap sizing changes to reduce the resource usage of this test or is > it to try and trigger any potential issue that this test verifies? The heap usage for this one can vary quite a bit, some of the lower optimization modes lead

Re: RFR: 8320707: Virtual thread test updates [v2]

2024-01-03 Thread Jaikiran Pai
On Tue, 2 Jan 2024 15:22:05 GMT, Alan Bateman wrote: >> A lot of test changes have accumulated in the loom repo, this includes both >> new tests and updates to existing tests. Some of these updates can be >> brought to the main line. This update brings over: >> >> - The existing tests for

RFR: JDK-8322782: Clean up usages of unnecessary fully qualified class name "java.util.Arrays"

2024-01-03 Thread Matthias Baesken
In [JDK-8322772](https://bugs.openjdk.org/browse/JDK-8322772) one similar cleanup has been proposed before (and was done in the change). But there are a number of other places in the codebase where the import is done and still the unneeded fully qualified class name "java.util.Arrays" is used

Re: RFR: 8320707: Virtual thread test updates [v2]

2024-01-03 Thread Jaikiran Pai
On Tue, 2 Jan 2024 15:22:05 GMT, Alan Bateman wrote: >> A lot of test changes have accumulated in the loom repo, this includes both >> new tests and updates to existing tests. Some of these updates can be >> brought to the main line. This update brings over: >> >> - The existing tests for

Integrated: 8321713: Harmonize executeTestJvm with create[Limited]TestJavaProcessBuilder

2024-01-03 Thread Stefan Karlsson
On Mon, 11 Dec 2023 09:15:50 GMT, Stefan Karlsson wrote: > [JDK-8315097](https://bugs.openjdk.org/browse/JDK-8315097): 'Rename > createJavaProcessBuilder' changed the name of the ProcessTools helper > functions used to create `ProcessBuilder`s used to spawn new java test > processes. > > We

Re: RFR: 8322873: Duplicate -ljava -ljvm options for libinstrument

2024-01-03 Thread Julian Waters
On Tue, 2 Jan 2024 21:44:04 GMT, Mikael Vidstedt wrote: > The libinstrument library is linked against libjava and libjvm, twice. This > is mostly harmless but Xcode 15.x generates a warning: > > Creating support/modules_libs/java.instrument/libinstrument.dylib from 12 > file(s) > ld: warning: