Re: RFR: 8305083: Remove finalize() from test/hotspot/jtreg/vmTestbase/nsk/share/ and /jpda that are used in serviceability/dcmd/framework tests [v2]

2023-05-03 Thread David Holmes
On Wed, 3 May 2023 12:01:10 GMT, Afshin Zafari wrote: > All of them can use the default one Exactly my point. - PR Review Comment: https://git.openjdk.org/jdk/pull/13420#discussion_r1184606381

Re: RFR: 8307244: Remove redundant class RMIIIOPServerImpl

2023-05-03 Thread Kevin Walls
On Tue, 2 May 2023 17:57:14 GMT, Kevin Walls wrote: > Removal of class, looks like it was missed in the JDK9 removal of RMIIIOP. > This class is not referenced by other classes or tests. Thanks for all the comments and reviews. On the RMIConnector example, I had thought it was misleading to use

Integrated: 8307362: Remove test com/sun/jdi/JdbLastErrorTest.java

2023-05-03 Thread Kevin Walls
On Wed, 3 May 2023 14:18:00 GMT, Kevin Walls wrote: > This should be a trivial change, to remove a test which is unreliable, and to > remove its problem list entry. > > The test is unreliable, but also the updated Panama situation is that we now > have Linker.Option.CaptureCallState which give

Re: RFR: 8307362: Remove test com/sun/jdi/JdbLastErrorTest.java

2023-05-03 Thread Kevin Walls
On Wed, 3 May 2023 14:18:00 GMT, Kevin Walls wrote: > This should be a trivial change, to remove a test which is unreliable, and to > remove its problem list entry. > > The test is unreliable, but also the updated Panama situation is that we now > have Linker.Option.CaptureCallState which give

Re: RFR: 8307244: Remove redundant class RMIIIOPServerImpl

2023-05-03 Thread Alan Bateman
On Tue, 2 May 2023 17:57:14 GMT, Kevin Walls wrote: > Removal of class, looks like it was missed in the JDK9 removal of RMIIIOP. > This class is not referenced by other classes or tests. Removing RMIIIOPServerImpl is fine, I think I agree with Daniel on leaving out the change to RMIConnector. I

Re: RFR: 8306836: Remove pinned tag for G1 heap regions [v6]

2023-05-03 Thread Kim Barrett
On Tue, 2 May 2023 16:47:06 GMT, Thomas Schatzl wrote: >> Hi all, >> >> please review this change that removes the pinned tag from `HeapRegion`. >> >> So that "pinned" tag for G1 heap regions indicates that the region should >> not move during (young) gc. This applies to now removed archive

Re: RFR: 8306836: Remove pinned tag for G1 heap regions [v4]

2023-05-03 Thread Kim Barrett
On Thu, 27 Apr 2023 12:31:24 GMT, Thomas Schatzl wrote: >> Hi all, >> >> please review this change that removes the pinned tag from `HeapRegion`. >> >> So that "pinned" tag for G1 heap regions indicates that the region should >> not move during (young) gc. This applies to now removed archive

Re: RFR: 8307067: remove broken EnableThreadSMRExtraValidityChecks option [v2]

2023-05-03 Thread Robbin Ehn
On Tue, 2 May 2023 20:37:18 GMT, Daniel D. Daugherty wrote: >> A trivial fix to remove broken EnableThreadSMRExtraValidityChecks option. > > Daniel D. Daugherty has updated the pull request incrementally with one > additional commit since the last revision: > > dholmes CR - change ':' to '.'.

Integrated: 8307305: Update debugger tests to support JTREG_TEST_THREAD_FACTORY mode

2023-05-03 Thread Leonid Mesnik
On Tue, 2 May 2023 21:16:20 GMT, Leonid Mesnik wrote: > The debugger tests might start all debugee using virtual threads when > property "main.wrapper" is set. > However, the new mode JTREG_TEST_THREAD_FACTORY do the same thing. The only > difference is that it use predefined problemlist names

Re: RFR: 8299414: JVMTI FollowReferences should support references from VirtualThread stack [v9]

2023-05-03 Thread Serguei Spitsyn
On Wed, 3 May 2023 22:04:37 GMT, Alex Menkov wrote: >> src/hotspot/share/prims/jvmtiTagMap.cpp line 2319: >> >>> 2317: } >>> 2318: } >>> 2319: } >> >> The fragments 2289-2303 and 2305-2319 are based on the >> `StackValueCollection` and look very similar. >> It can be wo

Re: RFR: 8299414: JVMTI FollowReferences should support references from VirtualThread stack [v10]

2023-05-03 Thread Serguei Spitsyn
On Wed, 3 May 2023 22:02:30 GMT, Alex Menkov wrote: >> The fix updates JVMTI FollowReferences implementation to report references >> from virtual threads: >> - unmounted vthreads are detected, their stack references for >> JVMTI_HEAP_REFERENCE_STACK_LOCAL/JVMTI_HEAP_REFERENCE_JNI_LOCAL; >> - st

Re: RFR: 8299414: JVMTI FollowReferences should support references from VirtualThread stack [v9]

2023-05-03 Thread Alex Menkov
On Tue, 2 May 2023 10:10:32 GMT, Serguei Spitsyn wrote: >> Alex Menkov has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Added "no continuations" test case > > src/hotspot/share/prims/jvmtiTagMap.cpp line 2245: > >> 2243: bool is_top_fr

Re: RFR: 8299414: JVMTI FollowReferences should support references from VirtualThread stack [v10]

2023-05-03 Thread Alex Menkov
> The fix updates JVMTI FollowReferences implementation to report references > from virtual threads: > - unmounted vthreads are detected, their stack references for > JVMTI_HEAP_REFERENCE_STACK_LOCAL/JVMTI_HEAP_REFERENCE_JNI_LOCAL; > - stacks of mounted vthreads are splitted into 2 parts (virtual

Re: RFR: 8307058: Implementation of Generational ZGC [v3]

2023-05-03 Thread Stefan Karlsson
On Wed, 3 May 2023 21:32:54 GMT, Martin Doerr wrote: > I'm getting build warnings on all linux platforms with gcc-11.3.0: > > ``` > src/hotspot/share/gc/z/zDriver.cpp:84:13: error: In the GNU C Library, > "minor" is defined > by . For historical compatibility, it is > currently defined by as

Re: RFR: 8307058: Implementation of Generational ZGC [v5]

2023-05-03 Thread Stefan Karlsson
> Hi all, > > Please review the implementation of Generational ZGC, which can be turned on > by adding -XX:+ZGenerational in addition to using -XX:+UseZGC. Generational > ZGC is a major rewrite of the non-generational ZGC version that exists in the > openjdk/jdk repository. It splits the heap i

Re: RFR: 8307058: Implementation of Generational ZGC [v4]

2023-05-03 Thread Stefan Karlsson
> Hi all, > > Please review the implementation of Generational ZGC, which can be turned on > by adding -XX:+ZGenerational in addition to using -XX:+UseZGC. Generational > ZGC is a major rewrite of the non-generational ZGC version that exists in the > openjdk/jdk repository. It splits the heap i

Re: RFR: 8307058: Implementation of Generational ZGC [v3]

2023-05-03 Thread Martin Doerr
On Wed, 3 May 2023 19:36:55 GMT, Stefan Karlsson wrote: >> Hi all, >> >> Please review the implementation of Generational ZGC, which can be turned on >> by adding -XX:+ZGenerational in addition to using -XX:+UseZGC. Generational >> ZGC is a major rewrite of the non-generational ZGC version tha

Re: RFR: 8307058: Implementation of Generational ZGC [v2]

2023-05-03 Thread Stefan Karlsson
On Wed, 3 May 2023 20:00:42 GMT, Chris Plummer wrote: >> Yes, the test was finicky with the heap size. Given that the leak it tries >> to provoke would be provoked by other GCs as well, we didn't think it was >> that important to run this particular test with Generational ZGC. If you >> still

Re: RFR: 8307058: Implementation of Generational ZGC [v2]

2023-05-03 Thread Stefan Karlsson
On Wed, 3 May 2023 18:54:24 GMT, Chris Plummer wrote: >> Stefan Karlsson has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Fix PPC build after 8305668 > > test/jdk/ProblemList-generational-zgc.txt line 27: > >> 25: # >> 26: # List of quar

Re: RFR: 8307058: Implementation of Generational ZGC [v2]

2023-05-03 Thread Chris Plummer
On Wed, 3 May 2023 19:42:01 GMT, Stefan Karlsson wrote: >> test/jdk/com/sun/jdi/ThreadMemoryLeakTest.java line 30: >> >>> 28: * >>> 29: * @comment Don't allow -Xcomp or -Xint as they impact memory useage >>> and number of iterations >>> 30: * @requires (vm.compMode == "Xmixed") & !(vm.gc.Z &

Re: RFR: 8307058: Implementation of Generational ZGC [v2]

2023-05-03 Thread Stefan Karlsson
On Wed, 3 May 2023 18:57:22 GMT, Chris Plummer wrote: >> Stefan Karlsson has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Fix PPC build after 8305668 > > test/jdk/com/sun/jdi/ThreadMemoryLeakTest.java line 30: > >> 28: * >> 29: * @comm

Re: RFR: 8307058: Implementation of Generational ZGC [v2]

2023-05-03 Thread Stefan Karlsson
On Wed, 3 May 2023 18:52:19 GMT, Chris Plummer wrote: >> Stefan Karlsson has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Fix PPC build after 8305668 > > test/hotspot/jtreg/ProblemList-generational-zgc.txt line 32: > >> 30: # Quiet all S

Re: RFR: 8307058: Implementation of Generational ZGC [v3]

2023-05-03 Thread Stefan Karlsson
> Hi all, > > Please review the implementation of Generational ZGC, which can be turned on > by adding -XX:+ZGenerational in addition to using -XX:+UseZGC. Generational > ZGC is a major rewrite of the non-generational ZGC version that exists in the > openjdk/jdk repository. It splits the heap i

Re: RFR: 8307058: Implementation of Generational ZGC [v2]

2023-05-03 Thread Chris Plummer
On Wed, 3 May 2023 10:55:49 GMT, Stefan Karlsson wrote: >> Hi all, >> >> Please review the implementation of Generational ZGC, which can be turned on >> by adding -XX:+ZGenerational in addition to using -XX:+UseZGC. Generational >> ZGC is a major rewrite of the non-generational ZGC version tha

Re: RFR: 8307362: Remove test com/sun/jdi/JdbLastErrorTest.java

2023-05-03 Thread Daniel D . Daugherty
On Wed, 3 May 2023 14:18:00 GMT, Kevin Walls wrote: > This should be a trivial change, to remove a test which is unreliable, and to > remove its problem list entry. > > The test is unreliable, but also the updated Panama situation is that we now > have Linker.Option.CaptureCallState which give

Re: RFR: 8306929: Avoid CleanClassLoaderDataMetaspaces safepoints when previous versions are shared [v2]

2023-05-03 Thread Serguei Spitsyn
On Wed, 3 May 2023 08:36:22 GMT, Stefan Johansson wrote: >> Hi all, >> >> Please review this change to avoid CleanClassLoaderDataMetaspaces safepoint >> when there is nothing that can be cleaned up. >> >> **Summary** >> When transforming/redefining classes a previous version list is linked >

RFR: 8307362: Remove test com/sun/jdi/JdbLastErrorTest.java

2023-05-03 Thread Kevin Walls
This should be a trivial change, to remove a test which is unreliable, and to remove its problem list entry. The test is unreliable, but also the updated Panama situation is that we now have Linker.Option.CaptureCallState which gives us the chance to capture last error when calling a MethodHand

Withdrawn: 8305913: com/sun/jdi/JdbLastErrorTest.java failed with "'lastError = 42' missing from stdout/stderr"

2023-05-03 Thread Kevin Walls
On Fri, 14 Apr 2023 19:23:05 GMT, Kevin Walls wrote: > This test is failing often since 8304725 added a call to > Thread::current_in_asgct(). This can end up being called e.g. when resolving > calls, and then the OS last error value is lost. > > The test is reliable with a single warm-up call

Re: RFR: 8305913: com/sun/jdi/JdbLastErrorTest.java failed with "'lastError = 42' missing from stdout/stderr" [v2]

2023-05-03 Thread Kevin Walls
On Sat, 15 Apr 2023 10:15:20 GMT, Kevin Walls wrote: >> This test is failing often since 8304725 added a call to >> Thread::current_in_asgct(). This can end up being called e.g. when >> resolving calls, and then the OS last error value is lost. >> >> The test is reliable with a single warm-up

Integrated: 8306836: Remove pinned tag for G1 heap regions

2023-05-03 Thread Thomas Schatzl
On Tue, 25 Apr 2023 13:49:05 GMT, Thomas Schatzl wrote: > Hi all, > > please review this change that removes the pinned tag from `HeapRegion`. > > So that "pinned" tag for G1 heap regions indicates that the region should not > move during (young) gc. This applies to now removed archive regio

Re: RFR: 8306836: Remove pinned tag for G1 heap regions [v3]

2023-05-03 Thread Thomas Schatzl
On Wed, 26 Apr 2023 17:28:49 GMT, Chris Plummer wrote: >> Thomas Schatzl has updated the pull request incrementally with one >> additional commit since the last revision: >> >> cplummer review > > SA changes look good. Thanks @plummercj @sspitsyn @albertnetymk for your reviews -

Re: RFR: 8307058: Implementation of Generational ZGC [v2]

2023-05-03 Thread Martin Doerr
On Wed, 3 May 2023 10:55:49 GMT, Stefan Karlsson wrote: >> Hi all, >> >> Please review the implementation of Generational ZGC, which can be turned on >> by adding -XX:+ZGenerational in addition to using -XX:+UseZGC. Generational >> ZGC is a major rewrite of the non-generational ZGC version tha

Re: RFR: 8307058: Implementation of Generational ZGC [v2]

2023-05-03 Thread Stefan Karlsson
On Wed, 3 May 2023 12:29:15 GMT, Martin Doerr wrote: > Thanks for fixing PPC64! With this, the VM compiles and the > `test/hotspot/jtreg/gc` tests are passing on linux PPC64le. > > I'm glad to see this PR for JDK 21 LTS. It's a big step forward for ZGC. > Congratulations! Thanks for porting G

Re: RFR: 8307058: Implementation of Generational ZGC [v2]

2023-05-03 Thread Martin Doerr
On Wed, 3 May 2023 10:55:49 GMT, Stefan Karlsson wrote: >> Hi all, >> >> Please review the implementation of Generational ZGC, which can be turned on >> by adding -XX:+ZGenerational in addition to using -XX:+UseZGC. Generational >> ZGC is a major rewrite of the non-generational ZGC version tha

Re: RFR: 8305083: Remove finalize() from test/hotspot/jtreg/vmTestbase/nsk/share/ and /jpda that are used in serviceability/dcmd/framework tests [v2]

2023-05-03 Thread Afshin Zafari
On Wed, 3 May 2023 05:42:29 GMT, David Holmes wrote: >> It seems much better to force implementors to provide this method. > > Why? They all seem to do exactly the same thing. After I moved the `registerCleanup` to the body of a `default` method in the interface, there is no need for the implem

Re: RFR: 8307244: Remove redundant class RMIIIOPServerImpl

2023-05-03 Thread Daniel Fuchs
On Tue, 2 May 2023 17:57:14 GMT, Kevin Walls wrote: > Removal of class, looks like it was missed in the JDK9 removal of RMIIIOP. > This class is not referenced by other classes or tests. Marked as reviewed by dfuchs (Reviewer). Looks good to me. I probably wouldn't have bothered with removing t

Re: RFR: 8307058: Implementation of Generational ZGC [v2]

2023-05-03 Thread Stefan Karlsson
> Hi all, > > Please review the implementation of Generational ZGC, which can be turned on > by adding -XX:+ZGenerational in addition to using -XX:+UseZGC. Generational > ZGC is a major rewrite of the non-generational ZGC version that exists in the > openjdk/jdk repository. It splits the heap i

Re: RFR: 8307058: Implementation of Generational ZGC

2023-05-03 Thread Erik Ă–sterlund
On Wed, 3 May 2023 09:04:50 GMT, Stefan Karlsson wrote: > Hi all, > > Please review the implementation of Generational ZGC, which can be turned on > by adding -XX:+ZGenerational in addition to using -XX:+UseZGC. Generational > ZGC is a major rewrite of the non-generational ZGC version that exi

RFR: 8307058: Implementation of Generational ZGC

2023-05-03 Thread Stefan Karlsson
Hi all, Please review the implementation of Generational ZGC, which can be turned on by adding -XX:+ZGenerational in addition to using -XX:+UseZGC. Generational ZGC is a major rewrite of the non-generational ZGC version that exists in the openjdk/jdk repository. It splits the heap into two gene

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

2023-05-03 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: 8306929: Avoid CleanClassLoaderDataMetaspaces safepoints when previous versions are shared [v2]

2023-05-03 Thread Stefan Johansson
> Hi all, > > Please review this change to avoid CleanClassLoaderDataMetaspaces safepoint > when there is nothing that can be cleaned up. > > **Summary** > When transforming/redefining classes a previous version list is linked > together in the InstanceKlass. The original class is added to thi

Re: RFR: 8306929: Avoid CleanClassLoaderDataMetaspaces safepoints when previous versions are shared [v2]

2023-05-03 Thread Stefan Johansson
On Fri, 28 Apr 2023 15:57:49 GMT, Coleen Phillimore wrote: >> Stefan Johansson has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - Test refactor >> - Serguei review > > This looks good. Thanks for all the testing and adding the new test.