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

2023-05-08 Thread David Holmes
On Fri, 5 May 2023 07:49:10 GMT, Andrew Dinn wrote: >> Looks good. >> Thank you for taking care about it! >> Thanks, >> Serguei > > @sspitsyn Thanks for the review. @adinn Please wait for two reviews for hotspot changes unless designated as trivial. Thanks. - PR Comment: https://g

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

2023-05-08 Thread Roman Kennke
On Mon, 8 May 2023 01:13:36 GMT, David Holmes wrote: > updates seem fine. Thanks! @dcubed-ojdk are you good with testing? If you could approve this PR again, I would integrate it later today? - PR Comment: https://git.openjdk.org/jdk/pull/10907#issuecomment-1537901860

Re: RFR: 8307428: jstat tests doesn't tolerate dash in the O column

2023-05-08 Thread Stefan Karlsson
On Thu, 4 May 2023 09:33:49 GMT, Stefan Karlsson wrote: > When running jstat tests like the following: > test/jdk/sun/tools/jstatd/TestJstatdServer.java > > with Generational ZGC we get a failure because the O (old generation > percentage) is reported as `-` and not a number. The reason why it

Integrated: 8307428: jstat tests doesn't tolerate dash in the O column

2023-05-08 Thread Stefan Karlsson
On Thu, 4 May 2023 09:33:49 GMT, Stefan Karlsson wrote: > When running jstat tests like the following: > test/jdk/sun/tools/jstatd/TestJstatdServer.java > > with Generational ZGC we get a failure because the O (old generation > percentage) is reported as `-` and not a number. The reason why it

Re: RFR: JDK-8300245: Replace NULL with nullptr in share/jfr/ [v5]

2023-05-08 Thread Johan Sjölen
> Hi, this PR changes all occurrences of NULL to nullptr for the subdirectory > share/jfr/. Unfortunately the script that does the change isn't perfect, and > so we > need to comb through these manually to make sure nothing has gone wrong. I > also review these changes but things slip past my ey

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

2023-05-08 Thread Arno Zeller
On Thu, 4 May 2023 07:30:49 GMT, Arno Zeller 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 best that

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

2023-05-08 Thread Erik Österlund
On Sat, 6 May 2023 08:14:24 GMT, Quan Anh Mai wrote: >> src/hotspot/cpu/x86/gc/z/zBarrierSetAssembler_x86.cpp line 310: >> >>> 308: // A not relocatable object could have spurious raw null pointers >>> in its fields after >>> 309: // getting promoted to the old generation. >>> 310:

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

2023-05-08 Thread Erik Österlund
On Sat, 6 May 2023 05:22:48 GMT, Quan Anh Mai wrote: >> Stefan Karlsson has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 917 commits: >> >> - ZGC: Generational >> >>Co-authored-by: Stefan Karlsson >>Co-authored-by: Pe

Re: RFR: JDK-8300245: Replace NULL with nullptr in share/jfr/ [v6]

2023-05-08 Thread Johan Sjölen
> Hi, this PR changes all occurrences of NULL to nullptr for the subdirectory > share/jfr/. Unfortunately the script that does the change isn't perfect, and > so we > need to comb through these manually to make sure nothing has gone wrong. I > also review these changes but things slip past my ey

Re: RFR: JDK-8300245: Replace NULL with nullptr in share/jfr/ [v7]

2023-05-08 Thread Johan Sjölen
> Hi, this PR changes all occurrences of NULL to nullptr for the subdirectory > share/jfr/. Unfortunately the script that does the change isn't perfect, and > so we > need to comb through these manually to make sure nothing has gone wrong. I > also review these changes but things slip past my ey

Re: RFR: JDK-8300245: Replace NULL with nullptr in share/jfr/ [v8]

2023-05-08 Thread Johan Sjölen
> Hi, this PR changes all occurrences of NULL to nullptr for the subdirectory > share/jfr/. Unfortunately the script that does the change isn't perfect, and > so we > need to comb through these manually to make sure nothing has gone wrong. I > also review these changes but things slip past my ey

Re: RFR: JDK-8300245: Replace NULL with nullptr in share/jfr/ [v7]

2023-05-08 Thread Johan Sjölen
On Mon, 8 May 2023 10:00:45 GMT, Johan Sjölen wrote: >> Hi, this PR changes all occurrences of NULL to nullptr for the subdirectory >> share/jfr/. Unfortunately the script that does the change isn't perfect, and >> so we >> need to comb through these manually to make sure nothing has gone wrong

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

2023-05-08 Thread Fei Yang
On Fri, 5 May 2023 06:50:55 GMT, Stefan Karlsson wrote: >> We emailed to erik to discuss this issue two months ago, and maybe he missed >> it. >> ZForwardingTest does not guarantee a successful invoke of os::commit_memory >> for ZAddressHeapBase, and we saw some conflicts between ZAddressHeapBa

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

2023-05-08 Thread Quan Anh Mai
On Mon, 8 May 2023 09:01:07 GMT, Erik Österlund wrote: >> I think we use the flag `UseStoreImmI16` for these kinds of situations. > > We did indeed run into the predecoder issue when we used testw for normal > store barriers, so I changed to testl. However, this cmpw is only taken when > we use

Re: RFR: JDK-8300245: Replace NULL with nullptr in share/jfr/ [v8]

2023-05-08 Thread Johan Sjölen
On Mon, 8 May 2023 10:09:29 GMT, Johan Sjölen wrote: >> Hi, this PR changes all occurrences of NULL to nullptr for the subdirectory >> share/jfr/. Unfortunately the script that does the change isn't perfect, and >> so we >> need to comb through these manually to make sure nothing has gone wrong

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

2023-05-08 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 seven commits: - Merge master - Merge branch 'master' into _

Re: RFR: JDK-8300245: Replace NULL with nullptr in share/jfr/ [v8]

2023-05-08 Thread Markus Grönlund
On Mon, 8 May 2023 10:09:29 GMT, Johan Sjölen wrote: >> Hi, this PR changes all occurrences of NULL to nullptr for the subdirectory >> share/jfr/. Unfortunately the script that does the change isn't perfect, and >> so we >> need to comb through these manually to make sure nothing has gone wrong

Re: RFR: JDK-8300245: Replace NULL with nullptr in share/jfr/ [v8]

2023-05-08 Thread Markus Grönlund
On Mon, 8 May 2023 11:01:56 GMT, Johan Sjölen wrote: >> Johan Sjölen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Dead assert > > Passes tier1. Thanks @jdksjolen , I am rubberstamping this. - PR Comment: https://git.ope

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

2023-05-08 Thread Stefan Karlsson
On Mon, 8 May 2023 10:19:44 GMT, Fei Yang wrote: >> Could you provide the values for `reserved`, `ZAddressHeapBase`, and >> `ZAddressOffsetMax`, when this test is failing. I'd like to know if we can >> make a workaround for you, or if we have to turn off the test for riscv. > > @stefank : I ran

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

2023-05-08 Thread Dan Heidinga
Thanks for the response, Ron. My comments are in line. On Fri, May 5, 2023 at 8:10 AM Ron Pressler wrote: > > > On 4 May 2023, at 21:32, Dan Heidinga 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 pa

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

2023-05-08 Thread Coleen Phillimore
On Mon, 8 May 2023 04:20:21 GMT, Ioi Lam 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. > > src/hotspot/share/classfile/stringTable.cpp line 638: >

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

2023-05-08 Thread Coleen Phillimore
On Mon, 8 May 2023 05:25:04 GMT, David Holmes wrote: >> src/hotspot/share/utilities/resourceHash.hpp line 147: >> >>> 145: */ >>> 146: bool put_fast(K const& key, V const& value) { >>> 147: unsigned hv = HASH(key); >> >> I think `put_fast` is not clear enough. Maybe `put_must_be_absent(

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

2023-05-08 Thread Volker Simonis
On Mon, 8 May 2023 02:10:48 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 > > src/hotspot/share/serv

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

2023-05-08 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() function

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

2023-05-08 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 [v9]

2023-05-08 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: 8291555: Implement alternative fast-locking scheme [v78]

2023-05-08 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: 8291555: Implement alternative fast-locking scheme [v78]

2023-05-08 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: 8291555: Implement alternative fast-locking scheme [v78]

2023-05-08 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: 8291555: Implement alternative fast-locking scheme [v78]

2023-05-08 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: 8291555: Implement alternative fast-locking scheme [v70]

2023-05-08 Thread Roman Kennke
On Tue, 2 May 2023 22:46:44 GMT, Dean Long wrote: >> Roman Kennke has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add missing new file > > My review applies to the aarch64 changes. > I have looked at the aarch64 changes twice and the lat

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

2023-05-08 Thread Daniel D . Daugherty
On Mon, 8 May 2023 02:13:14 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 > > src/hotspot/share/serv

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

2023-05-08 Thread Thomas Stuefe
On Tue, 2 May 2023 22:46:44 GMT, Dean Long wrote: >> Roman Kennke has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add missing new file > > My review applies to the aarch64 changes. > I have looked at the aarch64 changes twice and the lat

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

2023-05-08 Thread Thomas Stuefe
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: 8291555: Implement alternative fast-locking scheme [v78]

2023-05-08 Thread Aleksey Shipilev
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: 8291555: Implement alternative fast-locking scheme [v78]

2023-05-08 Thread Thomas Stuefe
On Mon, 8 May 2023 17:04:29 GMT, Aleksey Shipilev wrote: >> Roman Kennke has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Only allow lock-stack verification for owning Java threads or at safepoints > > src/hotspot/cpu/arm/c1_MacroAssemble

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

2023-05-08 Thread Roman Kennke
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

Integrated: 8291555: Implement alternative fast-locking scheme

2023-05-08 Thread Roman Kennke
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: 8307480: Improve SA "transported core" documentation for windows

2023-05-08 Thread Chris Plummer
On Sat, 6 May 2023 09:45:07 GMT, Serguei Spitsyn wrote: >> 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 pr

New candidate JEP: 451: Prepare to Disallow the Dynamic Loading of Agents

2023-05-08 Thread Mark Reinhold
https://openjdk.org/jeps/451 Summary: Issue warnings when agents are loaded dynamically into a running JVM. These warnings aim to prepare users for a future release which disallows the dynamic loading of agents by default in order to improve integrity by default. Serviceability tools that

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

2023-05-08 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: 8304074: [JMX] Add an approximation of total bytes allocated on the Java heap by the JVM [v6]

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

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

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

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

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

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

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

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

2023-05-08 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: 8306843: JVMTI tag map extremely slow after JDK-8292741 [v2]

2023-05-08 Thread Ioi Lam
On Mon, 8 May 2023 13:59:06 GMT, Coleen Phillimore wrote: >> I would suggest `put_when_absent` to complement `put_if_absent` - with >> suitable descriptive comments of course. > > This is a good name. Updated. I cannot tell the difference between `put_when_absent` and `put_if_absent`. Grammat

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

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

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

2023-05-08 Thread Alex Menkov
On Sat, 6 May 2023 09:35:28 GMT, Serguei Spitsyn wrote: >> I mean the pieces of the code that set and use >> _is_top_frame/_last_entry_frame are close so it's easier to see the logic > > I'd say that it will be even better to find out what are manipulations with > these instance fields. They ar

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

2023-05-08 Thread Alex Menkov
On Sat, 6 May 2023 09:11:51 GMT, Serguei Spitsyn wrote: >> Alex Menkov has updated the pull request incrementally with three additional >> commits since the last revision: >> >> - cosmetic changes in libVThreadStackRefTest.cpp >> - collect VT stack references if initial_object is null >> - m

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

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

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

2023-05-08 Thread Alex Menkov
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 14

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

2023-05-08 Thread Coleen Phillimore
On Mon, 8 May 2023 22:19:53 GMT, Ioi Lam wrote: >> This is a good name. Updated. > > I cannot tell the difference between `put_when_absent` and `put_if_absent`. > Grammatically they mean the same thing to me. My preference is to eventually make 'put' be 'put-ifwhen-absent', so I don't care wh

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

2023-05-08 Thread Chris Plummer
On Fri, 5 May 2023 23:53:47 GMT, Chris Plummer wrote: > 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

Re: RFR: 8307480: Improve SA "transported core" documentation for windows [v2]

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

Re: RFR: 8306034: add support of virtual threads to JVMTI StopThread [v10]

2023-05-08 Thread Chris Plummer
On Thu, 4 May 2023 10:39:32 GMT, Serguei Spitsyn wrote: >> This enhancement adds support of virtual threads to the JVMTI `StopThread` >> function. >> In preview releases before this enhancement the StopThread returned the >> JVMTI_ERROR_UNSUPPORTED_OPERATION error code for virtual threads. >>

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

2023-05-08 Thread Coleen Phillimore
On Mon, 8 May 2023 13:56:24 GMT, Coleen Phillimore wrote: >> src/hotspot/share/classfile/stringTable.cpp line 638: >> >>> 636: public: >>> 637: size_t _errors; >>> 638: VerifyCompStrings() : _table(unsigned(_items_count / 8) + 1, 0 /* do >>> not resize */), _errors(0) {} >> >> Shouldn't t

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

2023-05-08 Thread Fei Yang
On Mon, 8 May 2023 12:47:51 GMT, Stefan Karlsson wrote: > That's unfortunate. Could you try this patch, which probes the address range > to see if it can reserve the memory somewhere else within `[ZAddressHeapBase, > ZAddressHeapBase+ZAddressOffsetMax)`: > https://github.com/stefank/jdk/tree/z

Re: RFR: 8306034: add support of virtual threads to JVMTI StopThread [v10]

2023-05-08 Thread Serguei Spitsyn
On Thu, 4 May 2023 10:39:32 GMT, Serguei Spitsyn wrote: >> This enhancement adds support of virtual threads to the JVMTI `StopThread` >> function. >> In preview releases before this enhancement the StopThread returned the >> JVMTI_ERROR_UNSUPPORTED_OPERATION error code for virtual threads. >>

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

2023-05-08 Thread David Holmes
On Mon, 8 May 2023 14:03:18 GMT, Volker Simonis wrote: >> src/hotspot/share/services/management.cpp line 2107: >> >>> 2105: // when result is initialized. >>> 2106: jlong result = ThreadService::exited_allocated_bytes(); >>> 2107: for (JavaThreadIteratorWithHandle jtiwh; JavaThread *

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

2023-05-08 Thread David Holmes
On Mon, 8 May 2023 16:41:13 GMT, Daniel D. Daugherty wrote: >> src/hotspot/share/services/threadService.cpp line 173: >> >>> 171: // was not called, e.g., >>> JavaThread::cleanup_failed_attach_current_thread(). >>> 172: decrement_thread_counts(thread, daemon); >>> 173: >>> ThreadSe

Re: RFR: 8307480: Improve SA "transported core" documentation for windows [v2]

2023-05-08 Thread Serguei Spitsyn
On Tue, 9 May 2023 00:01:09 GMT, Chris Plummer wrote: >> 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 prov

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

2023-05-08 Thread David Holmes
On Mon, 8 May 2023 23:13:05 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 metho

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

2023-05-08 Thread David Holmes
On Mon, 8 May 2023 23:13:05 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 metho

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

2023-05-08 Thread David Holmes
On Tue, 9 May 2023 01:23:23 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 metho

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

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

RFR: 8307399: get rid of compatibility ThreadStart/ThreadEnd events for virtual threads

2023-05-08 Thread Serguei Spitsyn
The compatible lifecycle `ThreadStart/ThreadEnd` events were added in JDK 19 to support legacy virtual thread unaware JVMTI agents which do not enable the can_support_virtual_threads capability. When this capability is enabled then the `VirtualThreadStart/VirtualThreadEnd` instead of the `Threa

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

2023-05-08 Thread Paul Hohensee
On Tue, 9 May 2023 01:08:19 GMT, David Holmes wrote: >> Paul Hohensee has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Implement 32-bit linux Atomic::add() > > src/hotspot/share/runtime/atomic.hpp line 310: > >> 308: >> 309: // Platfo

Re: RFR: 8307399: get rid of compatibility ThreadStart/ThreadEnd events for virtual threads [v2]

2023-05-08 Thread Serguei Spitsyn
> The compatible lifecycle `ThreadStart/ThreadEnd` events were added in JDK 19 > to support legacy virtual thread unaware JVMTI agents which do not enable the > can_support_virtual_threads capability. When this capability is enabled then > the `VirtualThreadStart/VirtualThreadEnd` instead of the

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

2023-05-08 Thread David Holmes
On Mon, 8 May 2023 23:28:18 GMT, Coleen Phillimore wrote: >> I cannot tell the difference between `put_when_absent` and `put_if_absent`. >> Grammatically they mean the same thing to me. > > My preference is to eventually make 'put' be 'put-ifwhen-absent', so I don't > care which name you two pi

Re: RFR: 8294977: Convert test/jdk/java tests from ASM library to Classfile API [v8]

2023-05-08 Thread Chen Liang
> Summaries: > 1. A few recommendations about updating the constant API is made at > https://mail.openjdk.org/pipermail/classfile-api-dev/2023-March/000233.html > and I may update this patch shall the API changes be integrated before > 2. One ASM library-specific test, `LambdaAsm` is removed. Oth

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

2023-05-08 Thread Serguei Spitsyn
On Mon, 8 May 2023 14:15:18 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 >> resiz

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

2023-05-08 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 [v6]

2023-05-08 Thread Stefan Karlsson
On Tue, 9 May 2023 00:50:56 GMT, Fei Yang wrote: >> That's unfortunate. Could you try this patch, which probes the address range >> to see if it can reserve the memory somewhere else within >> `[ZAddressHeapBase, ZAddressHeapBase+ZAddressOffsetMax)`: >> https://github.com/stefank/jdk/tree/zgc_g

Re: RFR: 8307399: get rid of compatibility ThreadStart/ThreadEnd events for virtual threads [v2]

2023-05-08 Thread Alan Bateman
On Tue, 9 May 2023 02:16:18 GMT, Serguei Spitsyn wrote: >> The compatible lifecycle `ThreadStart/ThreadEnd` events were added in JDK 19 >> to support legacy virtual thread unaware JVMTI agents which do not enable >> the can_support_virtual_threads capability. When this capability is enabled >>