Re: RFR: 8323213: Fix some javadoc broken links in ObjectReference, and other misc javadoc cleanups

2024-01-10 Thread Alex Menkov
On Mon, 8 Jan 2024 20:16:50 GMT, Chris Plummer wrote: > Fix some broken links and other minor cleanups: > > There are a few broken links in the javadoc for ObjectReference.java. For > example: > > > * Not all target VMs support this operation. See > * VirtualMachine#canGetMonitorIn

Re: RFR: 8323213: Fix some javadoc broken links in ObjectReference, and other misc javadoc cleanups

2024-01-10 Thread Chris Plummer
On Mon, 8 Jan 2024 20:16:50 GMT, Chris Plummer wrote: > Fix some broken links and other minor cleanups: > > There are a few broken links in the javadoc for ObjectReference.java. For > example: > > > * Not all target VMs support this operation. See > * VirtualMachine#canGetMonitorIn

[jdk22] RFR: 8322237: Heap dump contains duplicate thread records for mounted virtual threads

2024-01-10 Thread Alex Menkov
Hi all, This pull request contains a backport of commit [dd8ae616](https://github.com/openjdk/jdk/commit/dd8ae616437398f957f9b4f09cf2c7f1d0bd0938) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. The commit being backported was authored by Alex Menkov on 9 Jan 2024 and was revie

Integrated: JDK-8317804: com/sun/jdi/JdwpAllowTest.java fails on Alpine 3.17 / 3.18

2024-01-10 Thread Alex Menkov
On Wed, 10 Jan 2024 01:53:02 GMT, Alex Menkov wrote: > The change fixes workaround introduced by > [[JDK-8250630]](https://bugs.openjdk.org/browse/JDK-8250630). > The root cause of the test failure was identified by JDK-8250630: > On Apline Linux getaddrinfo function returns 2 entries for "any"

Re: RFR: JDK-8318563: GetClassFields should not use random access to field [v3]

2024-01-10 Thread Alex Menkov
On Wed, 10 Jan 2024 22:34:57 GMT, Alex Menkov wrote: >> FieldStream/FilteredFieldStream classes from reflectionUtils.hpp iterate >> class fields in the reverse order and use field indexes to access instead of >> forward iteration. This is performance ineffective (see >> [JDK-8317692](https://b

Re: RFR: JDK-8318563: GetClassFields should not use random access to field [v2]

2024-01-10 Thread Alex Menkov
On Wed, 10 Jan 2024 23:12:40 GMT, Alex Menkov wrote: >> Ok. I see now how the old code was actually reversing the order to undo the >> reversing that was already done. > >> I think the indent here should be 4, not 6. > > I updated indentation to be consistent with other multi-line statements in

Re: RFR: 8323546: Clarify docs for Compiler.perfmap filename parameter, and other misc related jcmd doc cleanups

2024-01-10 Thread Chris Plummer
On Wed, 10 Jan 2024 21:40:08 GMT, Chris Plummer wrote: > The jcmd docs for Compiler.perfmap currently say: > > - *filename*: (Optional) The name of the map file (STRING, no default > value) > > However, there is a default, so not only should that be made more clear in > the above, but als

Re: RFR: JDK-8318563: GetClassFields should not use random access to field [v3]

2024-01-10 Thread Chris Plummer
On Wed, 10 Jan 2024 22:34:57 GMT, Alex Menkov wrote: >> FieldStream/FilteredFieldStream classes from reflectionUtils.hpp iterate >> class fields in the reverse order and use field indexes to access instead of >> forward iteration. This is performance ineffective (see >> [JDK-8317692](https://b

Re: RFR: JDK-8318563: GetClassFields should not use random access to field [v2]

2024-01-10 Thread Alex Menkov
On Wed, 10 Jan 2024 17:28:33 GMT, Chris Plummer wrote: >> FieldStream from reflectionUtils iterates fields in reverse order, so >> reversing again was previously needed here. JavaFieldStream from >> fieldStreams (and the new FilteredJavaFieldStream) iterate in the order the >> fields actually

Re: RFR: 8323546: Clarify docs for Compiler.perfmap filename parameter, and other misc related jcmd doc cleanups

2024-01-10 Thread David Holmes
On Wed, 10 Jan 2024 21:40:08 GMT, Chris Plummer wrote: > The jcmd docs for Compiler.perfmap currently say: > > - *filename*: (Optional) The name of the map file (STRING, no default > value) > > However, there is a default, so not only should that be made more clear in > the above, but als

Re: RFR: JDK-8318563: GetClassFields should not use random access to field [v3]

2024-01-10 Thread Alex Menkov
> FieldStream/FilteredFieldStream classes from reflectionUtils.hpp iterate > class fields in the reverse order and use field indexes to access instead of > forward iteration. This is performance ineffective (see > [JDK-8317692](https://bugs.openjdk.org/browse/JDK-8317692) for details). > The cha

RFR: 8323546: Clarify docs for Compiler.perfmap filename parameter, and other misc related jcmd doc cleanups

2024-01-10 Thread Chris Plummer
The jcmd docs for Compiler.perfmap currently say: - *filename*: (Optional) The name of the map file (STRING, no default value) However, there is a default, so not only should that be made more clear in the above, but also some descriptive text as to how the default is generated should be ad

Re: RFR: JDK-8320890: [AIX] Find a better way to mimic dl handle equality [v12]

2024-01-10 Thread Martin Doerr
On Wed, 10 Jan 2024 11:49:05 GMT, Joachim Kern wrote: >> On AIX, repeated calls to dlopen referring to the same shared library may >> result in different, unique dl handles to be returned from libc. In that it >> differs from typical libc implementations that cache dl handles. >> >> This cause

[jdk22] Integrated: 8311218: fatal error: stuck in JvmtiVTMSTransitionDisabler::VTMS_transition_disable

2024-01-10 Thread Serguei Spitsyn
On Wed, 20 Dec 2023 21:28:04 GMT, Serguei Spitsyn wrote: > Hi all, > > This pull request contains a backport of commit > [0f8e4e0a](https://github.com/openjdk/jdk/commit/0f8e4e0a81257c678e948c341a241dc0b810494f) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. > > The commit

Re: RFR: JDK-8318563: GetClassFields should not use random access to field [v2]

2024-01-10 Thread Chris Plummer
On Wed, 10 Jan 2024 10:16:01 GMT, Hannes Greule wrote: >> You said in the description that the order was reversed, but I don't see >> where that is getting fixed. It seems it was partially fixed by >> [JDK-8317692](https://bugs.openjdk.org/browse/JDK-8317692), but it is only >> preserving the

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

2024-01-10 Thread Daniel Fuchs
On Wed, 10 Jan 2024 16:50:22 GMT, Kevin Walls wrote: >> My thinking is that this tests for a leak when an MBean is created using a >> ClassLoader which is also an MBean. MLet was such a ready-to-use >> ClassLoader. We no longer have MLets, but it's still possible to register an >> MBean that i

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

2024-01-10 Thread Kevin Walls
On Wed, 10 Jan 2024 16:11:35 GMT, Daniel Fuchs wrote: >> I didn't see great value in it, as we no longer provide an MBean which is a >> ClassLoader. >> Having a test MBean that extends URLClassLoader, and calling its >> loadClass()... is basically testing URLClassLoader? 8-) >> Implementing Pri

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

2024-01-10 Thread Daniel Fuchs
On Wed, 10 Jan 2024 15:15:36 GMT, Kevin Walls wrote: >> test/jdk/javax/management/Introspector/ClassLeakTest.java line 55: >> >>> 53: ObjectName testName = new ObjectName("x:name=Test"); >>> 54: Test mbean = new Test(); >>> 55: mbs.registerMBean(mbean, testName); >> >> I

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

2024-01-10 Thread Kevin Walls
On Wed, 10 Jan 2024 13:55:51 GMT, Daniel Fuchs wrote: >> Kevin Walls has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove unnecessary MLET_ Properties > > test/jdk/javax/management/Introspector/ClassLeakTest.java line 55: > >> 53:

Integrated: 8321685: Missing ResourceMark in code called from JvmtiEnvBase::get_vthread_jvf

2024-01-10 Thread Serguei Spitsyn
On Tue, 9 Jan 2024 23:48:35 GMT, Serguei Spitsyn wrote: > This fix adds a ResourceMark missing in the `SetFramePopClosure::do_thread` > and `SetFramePopClosure::do_vthread`. > > Testing: > - TBD to submit tiers: 1-5 This pull request has now been integrated. Changeset: 2806adee Author:Se

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

2024-01-10 Thread Daniel Fuchs
On Thu, 4 Jan 2024 10:48:38 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. >> test/jdk/javax/management/MBeanServer/PostEx

Re: RFR: JDK-8318736: com/sun/jdi/JdwpOnThrowTest.java failed with "transport error 202: bind failed: Address already in use" [v6]

2024-01-10 Thread Johannes Bechberger
On Fri, 3 Nov 2023 07:22:26 GMT, Johannes Bechberger wrote: >> Fix race condition in debugger port selection, introduced with >> [JDK-8317920](https://bugs.openjdk.org/browse/JDK-8317920). >> >> Tested on my Mac M1, but it doesn't contain platform-dependent code. > > Johannes Bechberger has up

Re: RFR: JDK-8320890: [AIX] Find a better way to mimic dl handle equality [v12]

2024-01-10 Thread Joachim Kern
> On AIX, repeated calls to dlopen referring to the same shared library may > result in different, unique dl handles to be returned from libc. In that it > differs from typical libc implementations that cache dl handles. > > This causes problems in the JVM with code that assumes equality of hand

Re: RFR: 8321685: Missing ResourceMark in code called from JvmtiEnvBase::get_vthread_jvf [v2]

2024-01-10 Thread Serguei Spitsyn
> This fix adds a ResourceMark missing in the `SetFramePopClosure::do_thread` > and `SetFramePopClosure::do_vthread`. > > Testing: > - TBD to submit tiers: 1-5 Serguei Spitsyn has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the un

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

2024-01-10 Thread Serguei Spitsyn
On Wed, 20 Dec 2023 21:28:04 GMT, Serguei Spitsyn wrote: > Hi all, > > This pull request contains a backport of commit > [0f8e4e0a](https://github.com/openjdk/jdk/commit/0f8e4e0a81257c678e948c341a241dc0b810494f) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. > > The commit

Re: RFR: JDK-8318563: GetClassFields should not use random access to field [v2]

2024-01-10 Thread Hannes Greule
On Wed, 10 Jan 2024 05:28:39 GMT, Chris Plummer wrote: >> src/hotspot/share/prims/jvmtiEnv.cpp line 2910: >> >>> 2908: result_list[i] = jfieldIDWorkaround::to_jfieldID( >>> 2909: ik, flds.offset(), >>> 2910: flds.access_flags().is_static()); >> >> I think the indent here

Re: RFR: 8321685: Missing ResourceMark in code called from JvmtiEnvBase::get_vthread_jvf

2024-01-10 Thread Serguei Spitsyn
On Tue, 9 Jan 2024 23:48:35 GMT, Serguei Spitsyn wrote: > This fix adds a ResourceMark missing in the `SetFramePopClosure::do_thread` > and `SetFramePopClosure::do_vthread`. > > Testing: > - TBD to submit tiers: 1-5 Alex and Chris, thank you for review! Chris, I'll add similar comments as you

Re: RFR: JDK-8317804: com/sun/jdi/JdwpAllowTest.java fails on Alpine 3.17 / 3.18

2024-01-10 Thread Matthias Baesken
On Wed, 10 Jan 2024 01:53:02 GMT, Alex Menkov wrote: > The change fixes workaround introduced by > [[JDK-8250630]](https://bugs.openjdk.org/browse/JDK-8250630). > The root cause of the test failure was identified by JDK-8250630: > On Apline Linux getaddrinfo function returns 2 entries for "any"

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

2024-01-10 Thread Alan Bateman
On Wed, 20 Dec 2023 21:28:04 GMT, Serguei Spitsyn wrote: > Hi all, > > This pull request contains a backport of commit > [0f8e4e0a](https://github.com/openjdk/jdk/commit/0f8e4e0a81257c678e948c341a241dc0b810494f) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. > > The commit