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

2023-05-05 Thread Quan Anh Mai
On Fri, 5 May 2023 07:43:17 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

Re: RFR: 8306027: Clarify JVMTI heap functions spec about virtual thread stack. [v2]

2023-05-05 Thread Alan Bateman
On Fri, 5 May 2023 23:32:33 GMT, Alex Menkov wrote: >> The fix updates JVMTI spec updates description of heap functions to support >> virtual threads. >> Virtual threads are not heap roots by design, so >> FollowReference/IterateOverReachableObjects specs are updated to note only >> platform

Re: RFR: 8306758: com/sun/jdi/ConnectedVMs.java fails with "Non-zero debuggee exitValue: 143"

2023-05-05 Thread Chris Plummer
On Fri, 5 May 2023 22:21:36 GMT, Chris Plummer wrote: > This test was very rarely failing with a exitValue 143 from the debuggee. It > only happened when the machine was under a lot of stress. After some > investigation it was realized that on unix OSes it should *always* expect > exitValue

RFR: 8306758: com/sun/jdi/ConnectedVMs.java fails with "Non-zero debuggee exitValue: 143"

2023-05-05 Thread Chris Plummer
This test was very rarely failing with a exitValue 143 from the debuggee. It only happened when the machine was under a lot of stress. After some investigation it was realized that on unix OSes it should *always* expect exitValue 143, but for some reason was normally getting exitValue 0. The

RFR: 8307480: Improve SA "transported core" documentation for windows

2023-05-05 Thread Chris Plummer
The SA document `transported_core.html` contains some tips on getting core files to work when debugging it on a machine other than the one that produced it. There are a few improvements that can be made based on information provided in [JDK-8306437](https://bugs.openjdk.org/browse/JDK-8306437)

Re: RFR: 8306027: Clarify JVMTI heap functions spec about virtual thread stack. [v2]

2023-05-05 Thread Alex Menkov
> The fix updates JVMTI spec updates description of heap functions to support > virtual threads. > Virtual threads are not heap roots by design, so > FollowReference/IterateOverReachableObjects specs are updated to note only > platform threads. > References from thread stacks (including virtual

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

2023-05-05 Thread Alex Menkov
On Fri, 5 May 2023 05:59:49 GMT, Serguei Spitsyn wrote: >> Alex Menkov has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Updated test > > test/hotspot/jtreg/serviceability/jvmti/vthread/FollowReferences/libVThreadStackRefTest.cpp > line

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

2023-05-05 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

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

2023-05-05 Thread Alex Menkov
On Fri, 5 May 2023 05:48:04 GMT, Serguei Spitsyn wrote: >> JNI local reporting uses this tricky _is_top_frame/_last_entry_frame stuff >> I think it would be better to have it in the main do_frame method for better >> readability > > Sorry, I do not see how this improves readability. > Big

Re: RFR: 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM [v5]

2023-05-05 Thread Paul Hohensee
On Fri, 5 May 2023 16:43:10 GMT, Aleksey Shipilev wrote: >> Paul Hohensee has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8304074: [JMX] Add an approximation of total bytes allocated on the Java >> heap by the JVM > >

Re: RFR: 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM [v5]

2023-05-05 Thread Paul Hohensee
On Fri, 5 May 2023 15:11:26 GMT, Volker Simonis wrote: >> Paul Hohensee has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8304074: [JMX] Add an approximation of total bytes allocated on the Java >> heap by the JVM > >

Re: RFR: 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM [v5]

2023-05-05 Thread Paul Hohensee
> Please review this addition to com.sun.management.ThreadMXBean that returns > the total number of bytes allocated on the Java heap since JVM launch by both > terminated and live threads. > > Because this PR adds a new interface method, I've updated the JMM_VERSION to > 4, but would be happy

Re: RFR: 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM [v4]

2023-05-05 Thread Paul Hohensee
On Fri, 5 May 2023 17:29:30 GMT, Paul Hohensee wrote: >> I agree we should strive to get the value as accurate as possible. I think >> for operational use at scale, we need to avoid doing safepoints. Holding a >> `ThreadLock` might also penalize other code that (ab)uses threading (we >>

Re: RFR: 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM [v4]

2023-05-05 Thread Paul Hohensee
On Fri, 5 May 2023 06:43:20 GMT, David Holmes wrote: >> Paul Hohensee has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8304074: [JMX] Add an approximation of total bytes allocated on the Java >> heap by the JVM > >

Re: RFR: 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM [v4]

2023-05-05 Thread Paul Hohensee
> Please review this addition to com.sun.management.ThreadMXBean that returns > the total number of bytes allocated on the Java heap since JVM launch by both > terminated and live threads. > > Because this PR adds a new interface method, I've updated the JMM_VERSION to > 4, but would be happy

Re: RFR: 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM [v3]

2023-05-05 Thread Paul Hohensee
On Fri, 5 May 2023 16:16:37 GMT, Aleksey Shipilev wrote: >> Paul Hohensee has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8304074: [JMX] Add an approximation of total bytes allocated on the Java >> heap by the JVM > >

Re: RFR: 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM [v3]

2023-05-05 Thread Paul Hohensee
> Please review this addition to com.sun.management.ThreadMXBean that returns > the total number of bytes allocated on the Java heap since JVM launch by both > terminated and live threads. > > Because this PR adds a new interface method, I've updated the JMM_VERSION to > 4, but would be happy

Re: RFR: 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM [v2]

2023-05-05 Thread Paul Hohensee
> Please review this addition to com.sun.management.ThreadMXBean that returns > the total number of bytes allocated on the Java heap since JVM launch by both > terminated and live threads. > > Because this PR adds a new interface method, I've updated the JMM_VERSION to > 4, but would be happy

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

2023-05-05 Thread Coleen Phillimore
On Fri, 5 May 2023 14:50:30 GMT, Afshin Zafari wrote: >> The `finalize()` method is removed from base classes/interfaces and are >> replaced by a Cleaner callback.. > > Afshin Zafari has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains

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

2023-05-05 Thread Coleen Phillimore
On Fri, 5 May 2023 14:44:37 GMT, Afshin Zafari wrote: >> The `finalize()` method is removed from base classes/interfaces and are >> replaced by a Cleaner callback.. > > Afshin Zafari has updated the pull request incrementally with one additional > commit since the last revision: > >

Integrated: 8306326: [BACKOUT] 8277573: VmObjectAlloc is not generated by intrinsics methods which allocate objects

2023-05-05 Thread Leonid Mesnik
On Thu, 4 May 2023 15:12:43 GMT, Leonid Mesnik wrote: > 8277573: VmObjectAlloc is not generated by intrinsics methods which allocate > objects > > caused significant regressions in some benchmarks and should be reverted. > > This fix backout changes and update problemlist bugs to new issue. >

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

2023-05-05 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

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

2023-05-05 Thread Roman Kennke
On Fri, 5 May 2023 17:19:11 GMT, Daniel D. Daugherty wrote: > Slowdebug had a better stack trace: > > > > --- T H R E A D --- > > > > Current thread (0x7fe4ad0062d0): WorkerThread "GC Thread#0" > [id=19715, stack(0x74416000,0x74516000)

Re: RFR: 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM

2023-05-05 Thread Paul Hohensee
On Fri, 5 May 2023 16:42:29 GMT, Aleksey Shipilev wrote: >> The API specification clearly states that this method returns "*an >> approximation of the total amount of memory allocated in heap*" so in my >> opinion it is OK to keep it simple here and don't start messing with looks >> and

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

2023-05-05 Thread Daniel D . Daugherty
On Fri, 5 May 2023 16:49: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: 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM

2023-05-05 Thread Volker Simonis
On Fri, 5 May 2023 06:45:10 GMT, David Holmes wrote: >> Please review this addition to com.sun.management.ThreadMXBean that returns >> the total number of bytes allocated on the Java heap since JVM launch by >> both terminated and live threads. >> >> Because this PR adds a new interface

Re: RFR: 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM

2023-05-05 Thread Volker Simonis
On Thu, 4 May 2023 19:54:57 GMT, Paul Hohensee wrote: > Please review this addition to com.sun.management.ThreadMXBean that returns > the total number of bytes allocated on the Java heap since JVM launch by both > terminated and live threads. > > Because this PR adds a new interface method,

Re: RFR: 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM

2023-05-05 Thread Aleksey Shipilev
On Fri, 5 May 2023 06:45:10 GMT, David Holmes wrote: >> Please review this addition to com.sun.management.ThreadMXBean that returns >> the total number of bytes allocated on the Java heap since JVM launch by >> both terminated and live threads. >> >> Because this PR adds a new interface

Re: RFR: 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM

2023-05-05 Thread Aleksey Shipilev
On Thu, 4 May 2023 19:54:57 GMT, Paul Hohensee wrote: > Please review this addition to com.sun.management.ThreadMXBean that returns > the total number of bytes allocated on the Java heap since JVM launch by both > terminated and live threads. > > Because this PR adds a new interface method,

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

2023-05-05 Thread Roman Kennke
On Fri, 5 May 2023 14:59:36 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: 8291555: Implement alternative fast-locking scheme [v78]

2023-05-05 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

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

2023-05-05 Thread Daniel D . Daugherty
On Fri, 5 May 2023 14:59:36 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: 8307370: Add tier1 testing with thread factory in CI [v2]

2023-05-05 Thread Leonid Mesnik
> This fix just excludes a few hotspot/jdk tests which are not compatible with > test thread factory. So > `make -- run-test JTREG_VERBOSE=all JTREG_RETAIN=all > JTREG_TEST_THREAD_FACTORY=Virtual TEST=:tier1` > could be executed clearly. Leonid Mesnik has updated the pull request

Re: RFR: 8306326: [BACKOUT] 8277573: VmObjectAlloc is not generated by intrinsics methods which allocate objects [v2]

2023-05-05 Thread Vladimir Kozlov
On Fri, 5 May 2023 01:06:09 GMT, Leonid Mesnik wrote: >> 8277573: VmObjectAlloc is not generated by intrinsics methods which allocate >> objects >> >> caused significant regressions in some benchmarks and should be reverted. >> >> This fix backout changes and update problemlist bugs to new

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

2023-05-05 Thread Daniel D . Daugherty
On Fri, 5 May 2023 14:59:36 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: 8291555: Implement alternative fast-locking scheme [v77]

2023-05-05 Thread Daniel D . Daugherty
On Fri, 5 May 2023 14:59:36 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: 8291555: Implement alternative fast-locking scheme [v77]

2023-05-05 Thread Daniel D . Daugherty
On Fri, 5 May 2023 14:59:36 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: 8291555: Implement alternative fast-locking scheme [v75]

2023-05-05 Thread Daniel D . Daugherty
On Fri, 5 May 2023 14:48:35 GMT, Daniel D. Daugherty wrote: >> Roman Kennke has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 172 commits: >> >> - Merge branch 'master' into JDK-8291555-v2 >> - Disable new lightweight locking in

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

2023-05-05 Thread Roman Kennke
On Fri, 5 May 2023 14:53:32 GMT, Daniel D. Daugherty wrote: >> src/hotspot/cpu/aarch64/c1_LIRAssembler_aarch64.cpp line 2562: >> >>> 2560: Register lock = op->lock_opr()->as_register(); >>> 2561: if (LockingMode == LM_MONITOR) { >>> 2562: if (op->info() != null) { >> >> Hmmm... other

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

2023-05-05 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

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

2023-05-05 Thread Roman Kennke
On Fri, 5 May 2023 14:40:52 GMT, Daniel D. Daugherty wrote: >> Roman Kennke has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Relax zapped-entry test when calling thread is not owning thread > > src/hotspot/share/runtime/lockStack.cpp

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

2023-05-05 Thread Daniel D . Daugherty
On Fri, 5 May 2023 13:38:58 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: 8291555: Implement alternative fast-locking scheme [v76]

2023-05-05 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

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-05 Thread Afshin Zafari
On Fri, 5 May 2023 07:16:12 GMT, Serguei Spitsyn wrote: >> Afshin Zafari has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8305083: Remove finalize() from test/hotspot/jtreg/vmTestbase/nsk/share/ >> and /jpda that are used in

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

2023-05-05 Thread Afshin Zafari
> The `finalize()` method is removed from base classes/interfaces and are > replaced by a Cleaner callback.. Afshin Zafari has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains four commits: - Merge branch 'master' into _8305083 -

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

2023-05-05 Thread Afshin Zafari
> The `finalize()` method is removed from base classes/interfaces and are > replaced by a Cleaner callback.. Afshin Zafari has updated the pull request incrementally with one additional commit since the last revision: 8305083: 8305083: Remove finalize() from

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

2023-05-05 Thread Daniel D . Daugherty
On Fri, 5 May 2023 05:54:29 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: 8305083: Remove finalize() from test/hotspot/jtreg/vmTestbase/nsk/share/ and /jpda that are used in serviceability/dcmd/framework tests [v2]

2023-05-05 Thread Coleen Phillimore
On Fri, 5 May 2023 07:42:17 GMT, Afshin Zafari wrote: >> Default methods for interface classes were invented to solve a problem of >> compatibility if I remember correctly. Forcing subclasses to implement the >> interface method or have a superclass of the subclass to implement the >>

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

2023-05-05 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

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

2023-05-05 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

Integrated: 8305084: Remove the removal warnings for finalize() from test/hotspot/jtreg/serviceability/dcmd/gc/FinalizerInfoTest.java and RunFinalizationTest.java

2023-05-05 Thread Afshin Zafari
On Tue, 11 Apr 2023 10:20:25 GMT, Afshin Zafari wrote: > The `removal` warnings are suppressed out. > Test: > `FinalizerInfoTest` and `RunFinalizationTest` are executed locally. This pull request has now been integrated. Changeset: f143bf7c Author:Afshin Zafari Committer: Coleen

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-05 Thread David Holmes
On Fri, 5 May 2023 13:05:39 GMT, Coleen Phillimore wrote: > You're going to end up with things not overriding this method that should. ??? We are controlling all the classes - we know if anything would need to have a different implementation of this method. - PR Comment:

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-05 Thread Coleen Phillimore
On Sat, 29 Apr 2023 15:54:23 GMT, Afshin Zafari wrote: >> The `finalize()` method is removed from base classes/interfaces and are >> replaced by a Cleaner callback.. > > Afshin Zafari has updated the pull request incrementally with one additional > commit since the last revision: > >

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-05 Thread David Holmes
On Sat, 29 Apr 2023 15:54:23 GMT, Afshin Zafari wrote: >> The `finalize()` method is removed from base classes/interfaces and are >> replaced by a Cleaner callback.. > > Afshin Zafari has updated the pull request incrementally with one additional > commit since the last revision: > >

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

2023-05-05 Thread Aleksey Shipilev
On Fri, 5 May 2023 09:56:44 GMT, Aleksey Shipilev wrote: > Full `make images` for `macosx-aarch64-zero-fastdebug` requires #13827. After > that, it survives the build with all two `LockingModes`, but not with > LockingMode = LM_LIGHTWEIGHT: This requires significantly more time to implement

Re: [External] : Re: JEP draft: Integrity and Strong Encapsulation

2023-05-05 Thread Ron Pressler
On 4 May 2023, at 21:32, Dan Heidinga mailto:heidi...@redhat.com>> wrote: I’ve read this draft a number of times and each time I struggled with the framing of the problem given Java’s success over the past almost 30 years. The old regime worked when: 1. Almost all the runtime was written in

Re: RFR: 8306843: JVMTI tag map extremely slow after JDK-8292741 [v2]

2023-05-05 Thread Coleen Phillimore
On Fri, 5 May 2023 02:13:32 GMT, Serguei Spitsyn wrote: >> Coleen Phillimore has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Remove return variable from remove lambda, fix formatting. > >

Re: RFR: 8306843: JVMTI tag map extremely slow after JDK-8292741

2023-05-05 Thread Coleen Phillimore
On Thu, 4 May 2023 22:32:36 GMT, Coleen Phillimore wrote: > The ResourceHashtable conversion for JDK-8292741 didn't add the resizing > code. The old hashtable code was tuned for resizing in anticipation of large > hashtables for JVMTI tags. This patch ports over the old hashtable resizing >

Re: RFR: 8306843: JVMTI tag map extremely slow after JDK-8292741 [v2]

2023-05-05 Thread Coleen Phillimore
> The ResourceHashtable conversion for JDK-8292741 didn't add the resizing > code. The old hashtable code was tuned for resizing in anticipation of large > hashtables for JVMTI tags. This patch ports over the old hashtable resizing > code. It also adds a ResourceHashtable::put_fast()

Re: RFR: 8307347: serviceability/sa/ClhsdbDumpclass.java could leave files owned by root on macOS

2023-05-05 Thread Arno Zeller
On Thu, 4 May 2023 18:11:56 GMT, Chris Plummer wrote: >> Unless this test is run as root, it needs sudo privileges. If it gets them, >> the test runs fine, but leaves a file with root ownership. So jtreg cannot >> delete it, and you see errors when "make clean" tries to delete it. >> It's

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

2023-05-05 Thread Aleksey Shipilev
On Fri, 5 May 2023 08:44:12 GMT, Aleksey Shipilev wrote: > > ``` > > * zero builds are still failing in the Oracle CI; can you check out zero > > builds on your end? > > ``` > > Can you tell which Zero builds exactly? GHA Zero sanity checks look fine. > > My local Zero builds are fine with

Integrated: 8250596: Update remaining manpage references from "OS X" to "macOS"

2023-05-05 Thread Adam Sotona
On Thu, 4 May 2023 15:50:02 GMT, Adam Sotona wrote: > Most of the manpages were updated a few years ago but some references remain. > This patch renames remaining references to "macOS". > > Please review. > > Thanks, > Adam This pull request has now been integrated. Changeset: 3b430b9f

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

2023-05-05 Thread Aleksey Shipilev
On Thu, 4 May 2023 21:54:11 GMT, Roman Kennke wrote: > * zero builds are still failing in the Oracle CI; can you check out zero > builds on your end? Can you tell which Zero builds exactly? GHA Zero sanity checks look fine. My local Zero builds are fine with `make hotspot`:

Re: RFR: 8250596: Update remaining manpage references from "OS X" to "macOS" [v2]

2023-05-05 Thread Adam Sotona
> Most of the manpages were updated a few years ago but some references remain. > This patch renames remaining references to "macOS". > > Please review. > > Thanks, > Adam Adam Sotona has updated the pull request incrementally with one additional commit since the last revision: updated

Re: RFR: JDK-8307331: Correctly update line maps when class redefine rewrites bytecodes

2023-05-05 Thread Andrew Dinn
On Fri, 5 May 2023 03:33:51 GMT, Serguei Spitsyn wrote: >> This small change ensures that repeated bytecode rewrites necessitated by >> class pool index updates are applied cumulatively when updating the method >> line number table. The current code applies each change to the original >>

Re: RFR: JDK-8307331: Correctly update line maps when class redefine rewrites bytecodes

2023-05-05 Thread Andrew Dinn
On Thu, 4 May 2023 17:17:19 GMT, Andrew Dinn wrote: >> This small change ensures that repeated bytecode rewrites necessitated by >> class pool index updates are applied cumulatively when updating the method >> line number table. The current code applies each change to the original >> table

Integrated: JDK-8307331: Correctly update line maps when class redefine rewrites bytecodes

2023-05-05 Thread Andrew Dinn
On Thu, 4 May 2023 09:26:33 GMT, Andrew Dinn wrote: > This small change ensures that repeated bytecode rewrites necessitated by > class pool index updates are applied cumulatively when updating the method > line number table. The current code applies each change to the original table > which

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-05 Thread Afshin Zafari
On Thu, 4 May 2023 17:56:59 GMT, Coleen Phillimore wrote: > To solve the duplicated registerCleanup() cases, the two other classes could > extend FinalizableObject then inherit its implementation of registerCleanup(). The other two cases already extend the `Log.Logger` and cannot extend

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

2023-05-05 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

Re: RFR: 8250596: Update remaining manpage references from "OS X" to "macOS"

2023-05-05 Thread Serguei Spitsyn
On Thu, 4 May 2023 15:50:02 GMT, Adam Sotona wrote: > Most of the manpages were updated a few years ago but some references remain. > This patch renames remaining references to "macOS". > > Please review. > > Thanks, > Adam Marked as reviewed by sspitsyn (Reviewer). - PR Review:

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-05 Thread Serguei Spitsyn
On Sat, 29 Apr 2023 15:54:23 GMT, Afshin Zafari wrote: >> The `finalize()` method is removed from base classes/interfaces and are >> replaced by a Cleaner callback.. > > Afshin Zafari has updated the pull request incrementally with one additional > commit since the last revision: > >

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-05 Thread Serguei Spitsyn
On Sat, 29 Apr 2023 15:54:23 GMT, Afshin Zafari wrote: >> The `finalize()` method is removed from base classes/interfaces and are >> replaced by a Cleaner callback.. > > Afshin Zafari has updated the pull request incrementally with one additional > commit since the last revision: > >

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

2023-05-05 Thread Stefan Karlsson
On Fri, 5 May 2023 06:28:59 GMT, Yadong Wang wrote: >> Thanks for reporting. It would be interesting to see what address you get >> and compare it to the range [ZAddressHeapBase, >> ZAddressHeapBase+ZAddressOffsetMax). > > We emailed to erik to discuss this issue two months ago, and maybe he

Re: RFR: 8306326: [BACKOUT] 8277573: VmObjectAlloc is not generated by intrinsics methods which allocate objects [v2]

2023-05-05 Thread Tobias Hartmann
On Fri, 5 May 2023 01:06:09 GMT, Leonid Mesnik wrote: >> 8277573: VmObjectAlloc is not generated by intrinsics methods which allocate >> objects >> >> caused significant regressions in some benchmarks and should be reverted. >> >> This fix backout changes and update problemlist bugs to new

Re: RFR: 8304074: [JMX] Add an approximation of JVM process allocated bytes

2023-05-05 Thread David Holmes
On Thu, 4 May 2023 19:54:57 GMT, Paul Hohensee wrote: > Please review this addition to com.sun.management.ThreadMXBean that returns > the total number of bytes allocated on the Java heap since JVM launch by both > terminated and live threads. > > Because this PR adds a new interface method,

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

2023-05-05 Thread David Holmes
On Thu, 4 May 2023 22:11:56 GMT, Daniel D. Daugherty wrote: >> Roman Kennke has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Address @dcubed-ojdk review comments > > I have a Tier3 test failure: >

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

2023-05-05 Thread Yadong Wang
On Fri, 5 May 2023 05:17:44 GMT, Stefan Karlsson wrote: >> test/hotspot/gtest/gc/z/test_zForwarding.cpp line 68: >> >>> 66: >>> 67: bool reserved = >>> os::attempt_reserve_memory_at((char*)ZAddressHeapBase, ZGranuleSize, false >>> /* executable */); >>> 68: ASSERT_TRUE(reserved); >>

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

2023-05-05 Thread Roman Kennke
On Fri, 5 May 2023 06:21:18 GMT, David Holmes wrote: > Updates look good to me. Thanks. Nice, thank you! The PR has 4 approvals now. Are we good to go, or should I wait for others to approve? (And if so, who?) - PR Comment:

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

2023-05-05 Thread David Holmes
On Fri, 5 May 2023 05:54:29 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: 8299414: JVMTI FollowReferences should support references from VirtualThread stack [v14]

2023-05-05 Thread Serguei Spitsyn
On Thu, 4 May 2023 23:20:21 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; >> -