Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v5]

2023-01-18 Thread David Holmes
On Wed, 18 Jan 2023 19:35:08 GMT, Xue-Lei Andrew Fan wrote: > This PR is mainly focus on the hotspot, except two test files for jdk > management. I would suggest leaving those two management files for the serviceability PR. - PR: https://git.openjdk.org/jdk/pull/11935

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v6]

2023-01-18 Thread David Holmes
On Wed, 18 Jan 2023 19:41:11 GMT, Xue-Lei Andrew Fan wrote: >> The sprintf is deprecated in Xcode 14 because of security concerns. The >> issue was addressed in >> [JDK-8296812](https://bugs.openjdk.org/browse/JDK-8296812) for hotspot impl, >> and [JDK-8299378](https://bugs.openjdk.org/browse/

Re: RFR: 8291555: Implement alternative fast-locking scheme [v2]

2023-01-18 Thread David Holmes
On Wed, 18 Jan 2023 18:25:15 GMT, Roman Kennke wrote: > This apparently slipped my testing because the test requires vm.flagless, but > I would run it with TEST_VM_OPTS="-XX:+UnlockExperimentalVMOptions > -XX:+UseFastLocking". You need to test this by having it enabled by default, otherwise y

Re: RFR: 8297638: Memory leak in case of many started-dead threads

2023-01-18 Thread Jaikiran Pai
On Thu, 19 Jan 2023 01:04:39 GMT, Chris Plummer wrote: >> src/jdk.jdi/share/classes/com/sun/tools/jdi/VMState.java line 177: >> >>> 175: private void removeUnreachableListeners() { >>> 176: boolean found = false; >>> 177: while (listenersReferenceQueue.poll() != null) { >> >

Re: RFR: 8297638: Memory leak in case of many started-dead threads

2023-01-18 Thread Chris Plummer
On Thu, 19 Jan 2023 00:46:22 GMT, Jaikiran Pai wrote: >> Fix JDI leak when the debuggee creates a lot of threads, while at the same >> the debugger is not sending any commands. The lack of commands being sent >> results in code not being triggered that normally would clear out >> unreachable l

Re: RFR: 8297638: Memory leak in case of many started-dead threads

2023-01-18 Thread Jaikiran Pai
On Wed, 18 Jan 2023 20:06:33 GMT, Chris Plummer wrote: > Fix JDI leak when the debuggee creates a lot of threads, while at the same > the debugger is not sending any commands. The lack of commands being sent > results in code not being triggered that normally would clear out unreachable > list

Re: RFR: 8297638: Memory leak in case of many started-dead threads

2023-01-18 Thread Chris Plummer
On Wed, 18 Jan 2023 20:30:47 GMT, Alan Bateman wrote: > Maybe you've tried this already but if listeners were changed to be a > WeakHashMap then this would expunge the stable entries. > This would also avoid the O(n) search in removeUnreachableListeners and > simplify many other operations. Bu

Re: RFR: 8297638: Memory leak in case of many started-dead threads

2023-01-18 Thread Alan Bateman
On Wed, 18 Jan 2023 20:06:33 GMT, Chris Plummer wrote: > Fix JDI leak when the debuggee creates a lot of threads, while at the same > the debugger is not sending any commands. The lack of commands being sent > results in code not being triggered that normally would clear out unreachable > list

RFR: 8297638: Memory leak in case of many started-dead threads

2023-01-18 Thread Chris Plummer
Fix JDI leak when the debuggee creates a lot of threads, while at the same the debugger is not sending any commands. The lack of commands being sent results in code not being triggered that normally would clear out unreachable listeners and also clear out ObjectReferences queued for disposal. -

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v5]

2023-01-18 Thread Xue-Lei Andrew Fan
On Wed, 18 Jan 2023 19:45:55 GMT, Chris Plummer wrote: >> I can see both styles are used in this file. The current code here uses 8 >> whitespaces indent, I would like to keep it. > > I scanned the first 1000 lines and saw many cases of multi-line argument > passing, and they all indent as Dav

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v7]

2023-01-18 Thread Xue-Lei Andrew Fan
> The sprintf is deprecated in Xcode 14 because of security concerns. The issue > was addressed in [JDK-8296812](https://bugs.openjdk.org/browse/JDK-8296812) > for hotspot impl, and > [JDK-8299378](https://bugs.openjdk.org/browse/JDK-8299378) for building, but > the test case was not covered. T

Integrated: JDK-8300357: Use generalized see and link tags in java.management

2023-01-18 Thread Joe Darcy
On Wed, 18 Jan 2023 00:37:05 GMT, Joe Darcy wrote: > Use new javadoc capabilities courtesy JDK-8200337 to have > more-readable-in-javadoc-source links to anchors in several management types. > Analogous change is out for review in core libs, JDK-8300133. This pull request has now been integrat

Re: RFR: 8291555: Implement alternative fast-locking scheme [v4]

2023-01-18 Thread Roman Kennke
> This change adds a fast-locking scheme as an alternative to the current > stack-locking implementation. It retains the advantages of stack-locking > (namely fast locking in uncontended code-paths), while avoiding the overload > of the mark word. That overloading causes massive problems with Li

Re: RFR: JDK-8300357: Use generalized see and link tags in java.management [v3]

2023-01-18 Thread Daniel Fuchs
On Wed, 18 Jan 2023 19:13:41 GMT, Joe Darcy wrote: >> Use new javadoc capabilities courtesy JDK-8200337 to have >> more-readable-in-javadoc-source links to anchors in several management >> types. Analogous change is out for review in core libs, JDK-8300133. > > Joe Darcy has updated the pull re

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v5]

2023-01-18 Thread Chris Plummer
On Wed, 18 Jan 2023 19:28:42 GMT, Xue-Lei Andrew Fan wrote: >> I think the other acceptable approach is to put the first argument on the >> 2nd line, and then indent all the argument lines by 8. That works well if >> the first argument would otherwise start too far to the right. For the >> abo

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v5]

2023-01-18 Thread Xue-Lei Andrew Fan
On Tue, 17 Jan 2023 01:36:43 GMT, David Holmes wrote: > I would suggest constraining this PR to src/hotspot and test/hotspot and deal > with the JDK serviceability files in a different PR (and there may be other > JDK files impacted too). I agreed. This PR is mainly focus on the hotspot, exce

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v6]

2023-01-18 Thread Xue-Lei Andrew Fan
> The sprintf is deprecated in Xcode 14 because of security concerns. The issue > was addressed in [JDK-8296812](https://bugs.openjdk.org/browse/JDK-8296812) > for hotspot impl, and > [JDK-8299378](https://bugs.openjdk.org/browse/JDK-8299378) for building, but > the test case was not covered. T

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v5]

2023-01-18 Thread Xue-Lei Andrew Fan
On Tue, 17 Jan 2023 01:34:49 GMT, David Holmes wrote: >> Xue-Lei Andrew Fan 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 six >> additional co

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v5]

2023-01-18 Thread Xue-Lei Andrew Fan
On Tue, 17 Jan 2023 20:50:26 GMT, Chris Plummer wrote: >> src/hotspot/os/windows/os_windows.cpp line 387: >> >>> 385: os::snprintf_checked(buf, sizeof(buf), "%s%s;%s%s%s", >>> 386: Arguments::get_java_home(), EXT_DIR, >>> 387: path, PACKAGE_DIR, EXT_DIR); >> >> When

Re: RFR: JDK-8300357: Use generalized see and link tags in java.management [v3]

2023-01-18 Thread Joe Darcy
On Wed, 18 Jan 2023 12:22:01 GMT, Daniel Fuchs wrote: >> Joe Darcy has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Improve link target per code review comments. > > src/java.management/share/classes/javax/management/remote/JMXConnectorFa

Re: RFR: JDK-8300357: Use generalized see and link tags in java.management [v3]

2023-01-18 Thread Joe Darcy
> Use new javadoc capabilities courtesy JDK-8200337 to have > more-readable-in-javadoc-source links to anchors in several management types. > Analogous change is out for review in core libs, JDK-8300133. Joe Darcy has updated the pull request incrementally with one additional commit since the l

Re: RFR: JDK-8300357: Use generalized see and link tags in java.management [v2]

2023-01-18 Thread Alan Bateman
On Wed, 18 Jan 2023 18:59:33 GMT, Joe Darcy wrote: >> Use new javadoc capabilities courtesy JDK-8200337 to have >> more-readable-in-javadoc-source links to anchors in several management >> types. Analogous change is out for review in core libs, JDK-8300133. > > Joe Darcy has updated the pull re

Re: RFR: JDK-8300357: Use generalized see and link tags in java.management [v2]

2023-01-18 Thread Joe Darcy
> Use new javadoc capabilities courtesy JDK-8200337 to have > more-readable-in-javadoc-source links to anchors in several management types. > Analogous change is out for review in core libs, JDK-8300133. Joe Darcy has updated the pull request incrementally with one additional commit since the l

Re: RFR: JDK-8300357: Use generalized see and link tags in java.management

2023-01-18 Thread Joe Darcy
On Wed, 18 Jan 2023 07:32:15 GMT, Alan Bateman wrote: >> Use new javadoc capabilities courtesy JDK-8200337 to have >> more-readable-in-javadoc-source links to anchors in several management >> types. Analogous change is out for review in core libs, JDK-8300133. > > src/java.management/share/clas

Re: RFR: 8291555: Implement alternative fast-locking scheme [v2]

2023-01-18 Thread Roman Kennke
On Wed, 18 Jan 2023 17:52:24 GMT, Robbin Ehn wrote: >> Roman Kennke has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Properly set ZF on anon-check path; avoid some conditional branches > > So far so good. If this passes I'll do some stres

Re: RFR: 8291555: Implement alternative fast-locking scheme [v3]

2023-01-18 Thread Roman Kennke
> This change adds a fast-locking scheme as an alternative to the current > stack-locking implementation. It retains the advantages of stack-locking > (namely fast locking in uncontended code-paths), while avoiding the overload > of the mark word. That overloading causes massive problems with Li

Re: [jdk20] RFR: 8299891: JMX ObjectInputFilter additional classes needed [v2]

2023-01-18 Thread Daniel Fuchs
On Wed, 18 Jan 2023 17:56:43 GMT, Kevin Walls wrote: >> The default setting for the ObjectInputFilter for JMX, introduced in jdk20, >> is too restrictive. >> javax.management.Attribute and AttributeList classes are also needed, and >> Query related classes. >> >> There are a number of Query-re

Re: [jdk20] RFR: 8299891: JMX ObjectInputFilter additional classes needed [v2]

2023-01-18 Thread Kevin Walls
> The default setting for the ObjectInputFilter for JMX, introduced in jdk20, > is too restrictive. > javax.management.Attribute and AttributeList classes are also needed, and > Query related classes. > > There are a number of Query-relate classes, so adding javax.management.* is > appropriate

Re: RFR: 8291555: Implement alternative fast-locking scheme [v2]

2023-01-18 Thread Robbin Ehn
On Wed, 18 Jan 2023 15:45:38 GMT, Roman Kennke wrote: >> This change adds a fast-locking scheme as an alternative to the current >> stack-locking implementation. It retains the advantages of stack-locking >> (namely fast locking in uncontended code-paths), while avoiding the overload >> of the

Re: RFR: 8299795: Relativize locals in interpreter frames [v4]

2023-01-18 Thread Martin Doerr
On Wed, 18 Jan 2023 15:46:22 GMT, Fredrik Bredberg wrote: >> The code uses &sp()[R12_scratch2]. I think your comment is confusing. Please >> remove it or write something comprehensive. E.g. save R18_locals in >> compressed format relative to the new top frame's FP (= current SP). > > See what y

Re: RFR: 8299795: Relativize locals in interpreter frames [v4]

2023-01-18 Thread Fredrik Bredberg
On Wed, 18 Jan 2023 05:07:38 GMT, Martin Doerr wrote: >> My intention was to show how the contents of R18_locals (the absolute >> address to locals) can be recreated by using R12_scratch2 as an index from >> the frame pointer. Before we stored R18_locals in the stackframe, now we >> store R12_

Re: RFR: 8291555: Implement alternative fast-locking scheme

2023-01-18 Thread Roman Kennke
On Wed, 18 Jan 2023 14:57:33 GMT, Robbin Ehn wrote: > Here are some tests that seems provide some reproducability (mac/linux > aarch64): runtime/handshake/HandshakeDirectTest.java > vmTestbase/gc/gctests/ObjectMonitorCleanup/ObjectMonitorCleanup.java (crashes > in > AccessInternal::PostRuntim

Re: RFR: 8291555: Implement alternative fast-locking scheme [v2]

2023-01-18 Thread Roman Kennke
> This change adds a fast-locking scheme as an alternative to the current > stack-locking implementation. It retains the advantages of stack-locking > (namely fast locking in uncontended code-paths), while avoiding the overload > of the mark word. That overloading causes massive problems with Li

Re: RFR: 8299795: Relativize locals in interpreter frames [v4]

2023-01-18 Thread Patricio Chilano Mateo
On Tue, 17 Jan 2023 08:35:45 GMT, Fredrik Bredberg wrote: >> Implementation of relativized locals in interpreter frames for x86. x64, >> arm, aarch64, ppc64le and riscv. >> Not relativized locals on zero and s390 but done some changes to cope with >> the changed generic code. >> Tested tier1-ti

Re: RFR: 8291555: Implement alternative fast-locking scheme

2023-01-18 Thread Robbin Ehn
On Fri, 28 Oct 2022 20:17:37 GMT, Roman Kennke wrote: > This change adds a fast-locking scheme as an alternative to the current > stack-locking implementation. It retains the advantages of stack-locking > (namely fast locking in uncontended code-paths), while avoiding the overload > of the mar

Re: RFR: 8291555: Implement alternative fast-locking scheme

2023-01-18 Thread Roman Kennke
On Wed, 18 Jan 2023 13:25:22 GMT, Robbin Ehn wrote: > Hi Roman, I get this error on aarch64 in random tests: > ... Ok, that is ... surprising! I'll re-run tests on aarch64. Meanwhile, can you let me know what exactly you have run to get these failures? Thank you! Roman - PR: http

Re: RFR: 8291555: Implement alternative fast-locking scheme

2023-01-18 Thread Robbin Ehn
On Fri, 28 Oct 2022 20:17:37 GMT, Roman Kennke wrote: > This change adds a fast-locking scheme as an alternative to the current > stack-locking implementation. It retains the advantages of stack-locking > (namely fast locking in uncontended code-paths), while avoiding the overload > of the mar

Integrated: 8292741: Convert JvmtiTagMapTable to ResourceHashtable

2023-01-18 Thread Afshin Zafari
On Tue, 22 Nov 2022 14:48:11 GMT, Afshin Zafari wrote: > test of tier1-5 passed. This pull request has now been integrated. Changeset: c464ef1d Author:Afshin Zafari Committer: Robbin Ehn URL: https://git.openjdk.org/jdk/commit/c464ef1d61c2ea4a37759546f0ee39b1f530ccdc Stats: 291

Re: RFR: JDK-8300357: Use generalized see and link tags in java.management

2023-01-18 Thread Daniel Fuchs
On Wed, 18 Jan 2023 00:37:05 GMT, Joe Darcy wrote: > Use new javadoc capabilities courtesy JDK-8200337 to have > more-readable-in-javadoc-source links to anchors in several management types. > Analogous change is out for review in core libs, JDK-8300133. src/java.management/share/classes/javax

Re: RFR: 8299795: Relativize locals in interpreter frames [v4]

2023-01-18 Thread Andrew Haley
On Tue, 17 Jan 2023 08:35:45 GMT, Fredrik Bredberg wrote: >> Implementation of relativized locals in interpreter frames for x86. x64, >> arm, aarch64, ppc64le and riscv. >> Not relativized locals on zero and s390 but done some changes to cope with >> the changed generic code. >> Tested tier1-ti

Re: RFR: 8299795: Relativize locals in interpreter frames [v4]

2023-01-18 Thread Fredrik Bredberg
On Tue, 17 Jan 2023 17:34:53 GMT, Andrew Haley wrote: > > Implementation of relativized locals in interpreter frames for x86. x64, > > arm, aarch64, ppc64le and riscv. Not relativized locals on zero and s390 > > but done some changes to cope with the changed generic code. Tested > > tier1-tier