Re: RFR: 8347817: Timeouts running test/jdk/java/lang/String/concat/HiddenClassUnloading.java with fastdebug builds

2025-01-20 Thread Christoph Langer
On Wed, 15 Jan 2025 14:14:37 GMT, Richard Reingruber wrote: > This PR reverts the fix from > [JDK-8339166](https://bugs.openjdk.org/browse/JDK-8339166) because it > increases the runtime of the test a lot. > Instead a full gc is requested via the whitebox api. This solves the issues > (see bug

Re: RFR: 8342807: Update links in java.base to use https:// [v3]

2025-01-20 Thread Thomas Stuefe
On Mon, 20 Jan 2025 19:34:53 GMT, Thomas Stuefe wrote: >> In ProcessImpl_md.c, we have adopted the Posix APIs and semantics for >> process handling. >> I suggest removing the "unofficial" link, it does not include useful >> information at this point and is fragile. >> >> The current behavior a

Re: RFR: 8343962: [REDO] Move getChars to DecimalDigits [v14]

2025-01-20 Thread Shaojin Wen
On Mon, 20 Jan 2025 17:28:40 GMT, Raffaello Giulietti wrote: >> Shaojin Wen 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 29 additional >> co

Re: RFR: 8342775: [Graal] java/util/concurrent/locks/Lock/OOMEInAQS.java fails OOME thrown from the UncaughtExceptionHandler [v2]

2025-01-20 Thread Tom Rodriguez
On Thu, 16 Jan 2025 18:37:36 GMT, Tom Rodriguez wrote: >> Deoptimization with escape analysis can fail when trying to rematerialize >> objects as described in JDK-8227309. In this test this can happen in Xcomp >> mode in the framework of the test resulting in a test failure. Making the >> nu

Withdrawn: 8342775: [Graal] java/util/concurrent/locks/Lock/OOMEInAQS.java fails OOME thrown from the UncaughtExceptionHandler

2025-01-20 Thread duke
On Mon, 28 Oct 2024 18:45:59 GMT, Tom Rodriguez wrote: > Deoptimization with escape analysis can fail when trying to rematerialize > objects as described in JDK-8227309. In this test this can happen in Xcomp > mode in the framework of the test resulting in a test failure. Making the > number

Re: RFR: 8342807: Update links in java.base to use https:// [v3]

2025-01-20 Thread Joachim Kern
On Mon, 20 Jan 2025 17:01:10 GMT, Daniel Fuchs wrote: > > > The problem is, that such IBM links do not work very long. In one or a > > > view years this link again might point to nirvana. > > > > > > Should we remove it instead then? > > I would be OK with just dropping the link. I would kee

Re: RFR: 8342807: Update links in java.base to use https:// [v3]

2025-01-20 Thread Magnus Ihse Bursie
On Mon, 20 Jan 2025 19:34:53 GMT, Thomas Stuefe wrote: >> In ProcessImpl_md.c, we have adopted the Posix APIs and semantics for >> process handling. >> I suggest removing the "unofficial" link, it does not include useful >> information at this point and is fragile. >> >> The current behavior a

Re: RFR: 8342807: Update links in java.base to use https:// [v3]

2025-01-20 Thread Thomas Stuefe
On Mon, 20 Jan 2025 17:13:19 GMT, Roger Riggs wrote: > In ProcessImpl_md.c, we have adopted the Posix APIs and semantics for process > handling. I suggest removing the "unofficial" link, it does not include > useful information at this point and is fragile. > > The current behavior always sett

Re: RFR: 8344332: (bf) Migrate DirectByteBuffer to use java.lang.ref.Cleaner [v3]

2025-01-20 Thread Aleksey Shipilev
On Mon, 20 Jan 2025 17:37:19 GMT, Alan Bateman wrote: > Note that the long standing recommendation has always been to cache/reuse > direct buffers rather than discard like the reproducer does The reproducer is likely overly simplistic. The performance problem we are solving is non-parallelism

Re: RFR: 8344332: (bf) Migrate DirectByteBuffer to use java.lang.ref.Cleaner [v4]

2025-01-20 Thread Aleksey Shipilev
> DirectByteBuffers are still using old `jdk.internal.ref.Cleaner` > implementation. That implementation carries a doubly-linked list, and so > makes DBB suffer from the same issue fixed for generic > `java.lang.ref.Cleaner` users with > [JDK-8343704](https://bugs.openjdk.org/browse/JDK-8343704

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v6]

2025-01-20 Thread Matthias Ernst
On Mon, 20 Jan 2025 18:39:06 GMT, Jorn Vernee wrote: >> Matthias Ernst has updated the pull request incrementally with one >> additional commit since the last revision: >> >> whitespace :scream: > > test/jdk/java/foreign/CallBufferCacheTest.java line 95: > >> 93: assertTrue(CallBuffe

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v7]

2025-01-20 Thread Matthias Ernst
> Certain signatures for foreign function calls (e.g. HVA return by value) > require allocation of an intermediate buffer to adapt the FFM's to the native > stub's calling convention. In the current implementation, this buffer is > malloced and freed on every FFM invocation, a non-negligible ove

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v6]

2025-01-20 Thread Matthias Ernst
On Mon, 20 Jan 2025 18:33:55 GMT, Jorn Vernee wrote: >> test/micro/org/openjdk/bench/java/lang/foreign/CallOverheadByValue.java line >> 54: >> >>> 52: @State(org.openjdk.jmh.annotations.Scope.Thread) >>> 53: @OutputTimeUnit(TimeUnit.NANOSECONDS) >>> 54: @Fork(value = 1, jvmArgs = {"--enable-nat

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v6]

2025-01-20 Thread Jorn Vernee
On Mon, 20 Jan 2025 18:13:53 GMT, Matthias Ernst wrote: >> Certain signatures for foreign function calls (e.g. HVA return by value) >> require allocation of an intermediate buffer to adapt the FFM's to the >> native stub's calling convention. In the current implementation, this buffer >> is ma

Re: RFR: 8310996: Add JFR event for connect operations [v5]

2025-01-20 Thread Erik Gahlin
On Thu, 19 Dec 2024 19:16:55 GMT, Erik Gahlin wrote: >> I'm not sure if one or two events are most suitable. If possible, I would >> like to discuss it with Markus to get some more input. He will back in >> January. > > Regarding one or two events. I'm fine with integrating as-is and then revis

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v6]

2025-01-20 Thread Jorn Vernee
On Mon, 20 Jan 2025 18:32:55 GMT, Jorn Vernee wrote: >> Matthias Ernst has updated the pull request incrementally with one >> additional commit since the last revision: >> >> whitespace :scream: > > test/micro/org/openjdk/bench/java/lang/foreign/CallOverheadByValue.java line > 54: > >> 52:

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v6]

2025-01-20 Thread Jorn Vernee
On Mon, 20 Jan 2025 18:13:53 GMT, Matthias Ernst wrote: >> Certain signatures for foreign function calls (e.g. HVA return by value) >> require allocation of an intermediate buffer to adapt the FFM's to the >> native stub's calling convention. In the current implementation, this buffer >> is ma

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v3]

2025-01-20 Thread Matthias Ernst
On Mon, 20 Jan 2025 18:15:11 GMT, Jorn Vernee wrote: >> That was my original version, but this proved to be faster (albeit very >> little, O(.5ns)). I can't really explain why, that's above my paygrade, but >> one thing that comes to mind when storing references is that there's might >> be a G

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v3]

2025-01-20 Thread Jorn Vernee
On Mon, 20 Jan 2025 18:09:56 GMT, Matthias Ernst wrote: > Footprint reduction would be 8 bytes * #carrier threads, and with scalar > replacement, ofAddress should become a noop, right? Yes. - PR Review Comment: https://git.openjdk.org/jdk/pull/23142#discussion_r1922741985

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v6]

2025-01-20 Thread Matthias Ernst
> Certain signatures for foreign function calls (e.g. HVA return by value) > require allocation of an intermediate buffer to adapt the FFM's to the native > stub's calling convention. In the current implementation, this buffer is > malloced and freed on every FFM invocation, a non-negligible ove

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v3]

2025-01-20 Thread Matthias Ernst
On Mon, 20 Jan 2025 17:27:40 GMT, Jorn Vernee wrote: >> Matthias Ernst has updated the pull request incrementally with three >> additional commits since the last revision: >> >> - shift api boundary >> - move bench >> - revert formatting > > src/java.base/share/classes/jdk/internal/foreign/a

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v4]

2025-01-20 Thread Matthias Ernst
On Mon, 20 Jan 2025 17:34:45 GMT, Maurizio Cimadamore wrote: >> src/java.base/share/classes/jdk/internal/foreign/abi/CallBufferCache.java >> line 112: >> >>> 110: >>> 111: @SuppressWarnings("restricted") >>> 112: public static MemorySegment acquireOrAllocate(long requestedSize) { >>

Re: RFR: 8344332: (bf) Migrate DirectByteBuffer to use java.lang.ref.Cleaner [v3]

2025-01-20 Thread Uwe Schindler
On Mon, 20 Jan 2025 16:48:49 GMT, Aleksey Shipilev wrote: >> DirectByteBuffers are still using old `jdk.internal.ref.Cleaner` >> implementation. That implementation carries a doubly-linked list, and so >> makes DBB suffer from the same issue fixed for generic >> `java.lang.ref.Cleaner` users w

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v3]

2025-01-20 Thread Matthias Ernst
On Mon, 20 Jan 2025 17:22:09 GMT, Jorn Vernee wrote: >> Matthias Ernst has updated the pull request incrementally with three >> additional commits since the last revision: >> >> - shift api boundary >> - move bench >> - revert formatting > > test/micro/org/openjdk/bench/java/lang/foreign/Cal

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v5]

2025-01-20 Thread Matthias Ernst
> Certain signatures for foreign function calls (e.g. HVA return by value) > require allocation of an intermediate buffer to adapt the FFM's to the native > stub's calling convention. In the current implementation, this buffer is > malloced and freed on every FFM invocation, a non-negligible ove

Re: RFR: 8344332: (bf) Migrate DirectByteBuffer to use java.lang.ref.Cleaner [v3]

2025-01-20 Thread Alan Bateman
On Mon, 20 Jan 2025 16:48:49 GMT, Aleksey Shipilev wrote: >> DirectByteBuffers are still using old `jdk.internal.ref.Cleaner` >> implementation. That implementation carries a doubly-linked list, and so >> makes DBB suffer from the same issue fixed for generic >> `java.lang.ref.Cleaner` users w

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v4]

2025-01-20 Thread Maurizio Cimadamore
On Mon, 20 Jan 2025 16:34:15 GMT, Matthias Ernst wrote: >> Certain signatures for foreign function calls (e.g. HVA return by value) >> require allocation of an intermediate buffer to adapt the FFM's to the >> native stub's calling convention. In the current implementation, this buffer >> is ma

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v4]

2025-01-20 Thread Maurizio Cimadamore
On Mon, 20 Jan 2025 17:33:01 GMT, Maurizio Cimadamore wrote: > An even higher-level alternative here would be for this method to return a > custom arena, whose `close` implementation does the `release`. This way, no > cleanup action is needed. The arena could use a slicing allocator on a > pr

Re: RFR: 8343962: [REDO] Move getChars to DecimalDigits [v14]

2025-01-20 Thread Raffaello Giulietti
On Mon, 20 Jan 2025 14:32:22 GMT, Shaojin Wen wrote: >> This PR is a resubmission after PR #21593 was rolled back, and the unsafe >> offset overflow issue has been fixed. >> >> 1) Move getChars methods of StringLatin1 and StringUTF16 to DecimalDigits to >> reduce duplication. >> >> 2) HexDigi

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v3]

2025-01-20 Thread Jorn Vernee
On Mon, 20 Jan 2025 16:20:20 GMT, Matthias Ernst wrote: >> Certain signatures for foreign function calls (e.g. HVA return by value) >> require allocation of an intermediate buffer to adapt the FFM's to the >> native stub's calling convention. In the current implementation, this buffer >> is ma

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v3]

2025-01-20 Thread Jorn Vernee
On Mon, 20 Jan 2025 16:20:20 GMT, Matthias Ernst wrote: >> Certain signatures for foreign function calls (e.g. HVA return by value) >> require allocation of an intermediate buffer to adapt the FFM's to the >> native stub's calling convention. In the current implementation, this buffer >> is ma

Re: RFR: 8343962: [REDO] Move getChars to DecimalDigits [v14]

2025-01-20 Thread Shaojin Wen
On Mon, 20 Jan 2025 14:32:22 GMT, Shaojin Wen wrote: >> This PR is a resubmission after PR #21593 was rolled back, and the unsafe >> offset overflow issue has been fixed. >> >> 1) Move getChars methods of StringLatin1 and StringUTF16 to DecimalDigits to >> reduce duplication. >> >> 2) HexDigi

Re: RFR: 8342807: Update links in java.base to use https:// [v3]

2025-01-20 Thread Roger Riggs
On Fri, 17 Jan 2025 18:38:25 GMT, Eirik Bjørsnøs wrote: >> Please review this cleanup PR which updates a total of 12 links to external >> documentation or references in `java.base` to use https instead of plain >> text http. >> >> Links in `java.security` and `share/data/tzdata` are excluded f

Re: RFR: 8342807: Update links in java.base to use https:// [v3]

2025-01-20 Thread Daniel Fuchs
On Mon, 20 Jan 2025 16:55:10 GMT, Magnus Ihse Bursie wrote: > > The problem is, that such IBM links do not work very long. In one or a view > > years this link again might point to nirvana. > > Should we remove it instead then? I would be OK with just dropping the link. - PR Comm

Re: RFR: 8342807: Update links in java.base to use https:// [v3]

2025-01-20 Thread Magnus Ihse Bursie
On Mon, 20 Jan 2025 16:50:29 GMT, Joachim Kern wrote: > The problem is, that such IBM links do not work very long. In one or a view > years this link again might point to nirvana. Should we remove it instead then? - PR Comment: https://git.openjdk.org/jdk/pull/21633#issuecomment-2

Re: RFR: 8342807: Update links in java.base to use https:// [v3]

2025-01-20 Thread Joachim Kern
On Fri, 17 Jan 2025 18:38:25 GMT, Eirik Bjørsnøs wrote: >> Please review this cleanup PR which updates a total of 12 links to external >> documentation or references in `java.base` to use https instead of plain >> text http. >> >> Links in `java.security` and `share/data/tzdata` are excluded f

Re: RFR: 8344332: (bf) Migrate DirectByteBuffer to use java.lang.ref.Cleaner [v3]

2025-01-20 Thread Aleksey Shipilev
> DirectByteBuffers are still using old `jdk.internal.ref.Cleaner` > implementation. That implementation carries a doubly-linked list, and so > makes DBB suffer from the same issue fixed for generic > `java.lang.ref.Cleaner` users with > [JDK-8343704](https://bugs.openjdk.org/browse/JDK-8343704

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v2]

2025-01-20 Thread Matthias Ernst
On Mon, 20 Jan 2025 15:03:37 GMT, Maurizio Cimadamore wrote: >> Matthias Ernst has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Implementation notes. > > src/java.base/share/classes/jdk/internal/foreign/abi/CallBufferCache.java > line 9

Re: RFR: 8344332: (bf) Migrate DirectByteBuffer to use java.lang.ref.Cleaner [v2]

2025-01-20 Thread Aleksey Shipilev
> DirectByteBuffers are still using old `jdk.internal.ref.Cleaner` > implementation. That implementation carries a doubly-linked list, and so > makes DBB suffer from the same issue fixed for generic > `java.lang.ref.Cleaner` users with > [JDK-8343704](https://bugs.openjdk.org/browse/JDK-8343704

Re: RFR: 8344332: (bf) Migrate DirectByteBuffer to use java.lang.ref.Cleaner

2025-01-20 Thread Aleksey Shipilev
On Fri, 15 Nov 2024 20:54:56 GMT, Aleksey Shipilev wrote: > DirectByteBuffers are still using old `jdk.internal.ref.Cleaner` > implementation. That implementation carries a doubly-linked list, and so > makes DBB suffer from the same issue fixed for generic > `java.lang.ref.Cleaner` users with

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v4]

2025-01-20 Thread Matthias Ernst
> Certain signatures for foreign function calls (e.g. HVA return by value) > require allocation of an intermediate buffer to adapt the FFM's to the native > stub's calling convention. In the current implementation, this buffer is > malloced and freed on every FFM invocation, a non-negligible ove

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v2]

2025-01-20 Thread Matthias Ernst
On Mon, 20 Jan 2025 15:00:55 GMT, Maurizio Cimadamore wrote: >> Matthias Ernst has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Implementation notes. > > src/java.base/share/classes/jdk/internal/foreign/abi/CallBufferCache.java > line 7

Re: RFR: 8342807: Update links in java.base to use https:// [v3]

2025-01-20 Thread Magnus Ihse Bursie
On Fri, 17 Jan 2025 18:38:25 GMT, Eirik Bjørsnøs wrote: >> Please review this cleanup PR which updates a total of 12 links to external >> documentation or references in `java.base` to use https instead of plain >> text http. >> >> Links in `java.security` and `share/data/tzdata` are excluded f

Re: RFR: 8342807: Update links in java.base to use https:// [v3]

2025-01-20 Thread Magnus Ihse Bursie
On Fri, 17 Jan 2025 18:38:25 GMT, Eirik Bjørsnøs wrote: >> Please review this cleanup PR which updates a total of 12 links to external >> documentation or references in `java.base` to use https instead of plain >> text http. >> >> Links in `java.security` and `share/data/tzdata` are excluded f

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v2]

2025-01-20 Thread Matthias Ernst
On Mon, 20 Jan 2025 14:06:33 GMT, Jorn Vernee wrote: >> Matthias Ernst has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Implementation notes. > > test/micro/org/openjdk/bench/java/lang/foreign/points/PointsAlloc.java line > 81: > >> 79:

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v2]

2025-01-20 Thread Matthias Ernst
On Mon, 20 Jan 2025 15:00:14 GMT, Maurizio Cimadamore wrote: >> src/java.base/share/classes/jdk/internal/foreign/abi/SharedUtils.java line >> 396: >> >>> 394: long address = fromCache != 0 ? fromCache : >>> CallBufferCache.allocate(bufferSize); >>> 395: return new >>> Bounded

Re: RFR: 8343962: [REDO] Move getChars to DecimalDigits [v14]

2025-01-20 Thread Raffaello Giulietti
On Mon, 20 Jan 2025 14:32:22 GMT, Shaojin Wen wrote: >> This PR is a resubmission after PR #21593 was rolled back, and the unsafe >> offset overflow issue has been fixed. >> >> 1) Move getChars methods of StringLatin1 and StringUTF16 to DecimalDigits to >> reduce duplication. >> >> 2) HexDigi

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v3]

2025-01-20 Thread Matthias Ernst
> Certain signatures for foreign function calls (e.g. HVA return by value) > require allocation of an intermediate buffer to adapt the FFM's to the native > stub's calling convention. In the current implementation, this buffer is > malloced and freed on every FFM invocation, a non-negligible ove

Re: RFR: 8343962: [REDO] Move getChars to DecimalDigits [v14]

2025-01-20 Thread Shaojin Wen
On Mon, 20 Jan 2025 14:32:22 GMT, Shaojin Wen wrote: >> This PR is a resubmission after PR #21593 was rolled back, and the unsafe >> offset overflow issue has been fixed. >> >> 1) Move getChars methods of StringLatin1 and StringUTF16 to DecimalDigits to >> reduce duplication. >> >> 2) HexDigi

Re: RFR: 8343962: [REDO] Move getChars to DecimalDigits [v6]

2025-01-20 Thread Raffaello Giulietti
On Sat, 18 Jan 2025 00:58:36 GMT, Shaojin Wen wrote: >> Sorry, I was just reading the comment and not how DIGITS is initialized and >> used. >> >> The _correct_ comment should be something like >> >> * 97 -> '9' | ('7' << 8) -> 0x3739 >> >> so the `short` value was correct before, b

Re: RFR: 8347564: ZGC: Crash in DependencyContext::clean_unloading_dependents

2025-01-20 Thread Stefan Karlsson
On Mon, 20 Jan 2025 07:56:49 GMT, Axel Boldt-Christmas wrote: > The proposed change here is the following: > 1. Move the `vmdependencies` list head from the `Context` to the `CallSite` > object > 2. Remove the Context object and its corresponding cleaner > > (1.) fixes the crash. (2.) is bec

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v2]

2025-01-20 Thread Maurizio Cimadamore
On Mon, 20 Jan 2025 13:43:35 GMT, Jorn Vernee wrote: >> Matthias Ernst has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Implementation notes. > > src/java.base/share/classes/jdk/internal/foreign/abi/SharedUtils.java line > 396: > >> 394

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v2]

2025-01-20 Thread Maurizio Cimadamore
On Mon, 20 Jan 2025 07:30:17 GMT, Matthias Ernst wrote: >> Certain signatures for foreign function calls (e.g. HVA return by value) >> require allocation of an intermediate buffer to adapt the FFM's to the >> native stub's calling convention. In the current implementation, this buffer >> is ma

Re: RFR: 8343962: [REDO] Move getChars to DecimalDigits [v14]

2025-01-20 Thread Shaojin Wen
> This PR is a resubmission after PR #21593 was rolled back, and the unsafe > offset overflow issue has been fixed. > > 1) Move getChars methods of StringLatin1 and StringUTF16 to DecimalDigits to > reduce duplication. > > 2) HexDigits and OctalDigits also include getCharsLatin1 and getCharsUTF

Re: RFR: 8287788: reuse intermediate segments allocated during FFM stub invocations [v2]

2025-01-20 Thread Jorn Vernee
On Mon, 20 Jan 2025 07:30:17 GMT, Matthias Ernst wrote: >> Certain signatures for foreign function calls (e.g. HVA return by value) >> require allocation of an intermediate buffer to adapt the FFM's to the >> native stub's calling convention. In the current implementation, this buffer >> is ma

Re: RFR: 8344332: (bf) Migrate DirectByteBuffer to use java.lang.ref.Cleaner

2025-01-20 Thread Aleksey Shipilev
On Mon, 20 Jan 2025 13:25:26 GMT, Viktor Klang wrote: >> DirectByteBuffers are still using old `jdk.internal.ref.Cleaner` >> implementation. That implementation carries a doubly-linked list, and so >> makes DBB suffer from the same issue fixed for generic >> `java.lang.ref.Cleaner` users with

Re: RFR: 8343962: [REDO] Move getChars to DecimalDigits [v13]

2025-01-20 Thread Shaojin Wen
> This PR is a resubmission after PR #21593 was rolled back, and the unsafe > offset overflow issue has been fixed. > > 1) Move getChars methods of StringLatin1 and StringUTF16 to DecimalDigits to > reduce duplication. > > 2) HexDigits and OctalDigits also include getCharsLatin1 and getCharsUTF

Re: RFR: 8346230: [perf] scalability issue for the specjvm2008::xml.transform workload

2025-01-20 Thread Alan Bateman
On Fri, 17 Jan 2025 23:08:20 GMT, Vladimir Ivanov wrote: > The synchronized scope was reduced from whole methods to sections that need > hash map access control. The tier1 and jaxp tests are OK. The score of the > specjvm2008:xml.transform improved a little bit. On the Xeon 8480+ reported > sc

Re: RFR: 8342486: Implement JEP draft: Structured Concurrency (Fifth Preview) [v4]

2025-01-20 Thread Viktor Klang
On Mon, 20 Jan 2025 12:12:36 GMT, Alan Bateman wrote: >> Changes for [JEP draft: Structured Concurrency (Fifth >> Preview)](https://openjdk.org/jeps/8340343). The JEP isn't on the technical >> roadmap yet. The proposal is to re-preview the API with some changes, >> specifically: >> >> - A >>

Re: RFR: 8344332: (bf) Migrate DirectByteBuffer to use java.lang.ref.Cleaner

2025-01-20 Thread Viktor Klang
On Fri, 15 Nov 2024 20:54:56 GMT, Aleksey Shipilev wrote: > DirectByteBuffers are still using old `jdk.internal.ref.Cleaner` > implementation. That implementation carries a doubly-linked list, and so > makes DBB suffer from the same issue fixed for generic > `java.lang.ref.Cleaner` users with

RFR: 8344332: (bf) Migrate DirectByteBuffer to use java.lang.ref.Cleaner

2025-01-20 Thread Aleksey Shipilev
DirectByteBuffers are still using old `jdk.internal.ref.Cleaner` implementation. That implementation carries a doubly-linked list, and so makes DBB suffer from the same issue fixed for generic `java.lang.ref.Cleaner` users with [JDK-8343704](https://bugs.openjdk.org/browse/JDK-8343704). See the

Re: RFR: JDK-8348030 : Extend Math.min and Math.max to support multiple parameters [v2]

2025-01-20 Thread Aviad Zer
On Mon, 20 Jan 2025 11:43:13 GMT, Aviad Zer wrote: >> This change extends the Math.min function to support multiple parameters, >> improving its usability and code readability. >> >> Previously, finding the minimum value among multiple variables required >> using nested Math.min calls or conve

Re: RFR: JDK-8348030 : Extend Math.min and Math.max to support multiple parameters [v2]

2025-01-20 Thread Per Minborg
On Mon, 20 Jan 2025 11:43:13 GMT, Aviad Zer wrote: >> This change extends the Math.min function to support multiple parameters, >> improving its usability and code readability. >> >> Previously, finding the minimum value among multiple variables required >> using nested Math.min calls or conve

Re: RFR: 8342486: Implement JEP draft: Structured Concurrency (Fifth Preview) [v4]

2025-01-20 Thread Alan Bateman
> Changes for [JEP draft: Structured Concurrency (Fifth > Preview)](https://openjdk.org/jeps/8340343). The JEP isn't on the technical > roadmap yet. The proposal is to re-preview the API with some changes, > specifically: > > - A > [StructuredTaskScope](https://download.java.net/java/early_acc

Re: RFR: 8299504: Resolve `uses` and `provides` at run time if the service is optional and missing [v2]

2025-01-20 Thread Alan Bateman
> Extend the support for optional dependences to allow for a service to be > optional. The post-resolution consistency check specified by > `Configuration.resolve` is relaxed to allow for the possibility that the > service from a module in the module graph at compile-time but the module is > no

Re: RFR: JDK-8348030 : Extend Math.min and Math.max to support multiple parameters [v2]

2025-01-20 Thread Aviad Zer
On Mon, 20 Jan 2025 11:48:20 GMT, Martin Desruisseaux wrote: >> Aviad Zer has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update Math.java by adding extended max function > > Aren't `Math.min(values)` methods duplicating `Arrays.stream(v

Re: RFR: JDK-8348030 : Extend Math.min and Math.max to support multiple parameters [v2]

2025-01-20 Thread Martin Desruisseaux
On Mon, 20 Jan 2025 11:43:13 GMT, Aviad Zer wrote: >> This change extends the Math.min function to support multiple parameters, >> improving its usability and code readability. >> >> Previously, finding the minimum value among multiple variables required >> using nested Math.min calls or conve

Re: RFR: JDK-8348030 : Extend Math.min and Math.max to support multiple parameters

2025-01-20 Thread Aviad Zer
On Wed, 15 Jan 2025 14:26:32 GMT, Aviad Zer wrote: > This change extends the Math.min function to support multiple parameters, > improving its usability and code readability. > > Previously, finding the minimum value among multiple variables required using > nested Math.min calls or converting

Re: RFR: JDK-8348030 : Extend Math.min and Math.max to support multiple parameters [v2]

2025-01-20 Thread Aviad Zer
> This change extends the Math.min function to support multiple parameters, > improving its usability and code readability. > > Previously, finding the minimum value among multiple variables required using > nested Math.min calls or converting the variables into an array and iterating > through

Re: RFR: JDK-8348030 : Extend Math.min to support multiple parameters

2025-01-20 Thread Aviad Zer
On Wed, 15 Jan 2025 14:26:32 GMT, Aviad Zer wrote: > This change extends the Math.min function to support multiple parameters, > improving its usability and code readability. > > Previously, finding the minimum value among multiple variables required using > nested Math.min calls or converting

Re: RFR: 8347842: ThreadPoolExecutor specification discusses RuntimePermission

2025-01-20 Thread Jaikiran Pai
On Thu, 16 Jan 2025 13:46:16 GMT, Viktor Klang wrote: > Removes ThreadPoolExecutor javadoc which mentions RuntimePermission. Hello Viktor, this change looks fine to me. On a related note, the `ForkJoinPool` class has this unused field: static volatile RuntimePermission modifyThreadPermission;

Re: RFR: 8347564: ZGC: Crash in DependencyContext::clean_unloading_dependents

2025-01-20 Thread Erik Österlund
On Mon, 20 Jan 2025 07:56:49 GMT, Axel Boldt-Christmas wrote: > The proposed change here is the following: > 1. Move the `vmdependencies` list head from the `Context` to the `CallSite` > object > 2. Remove the Context object and its corresponding cleaner > > (1.) fixes the crash. (2.) is bec

Re: RFR: 8347949: Currency method to stream available Currencies [v5]

2025-01-20 Thread Viktor Klang
On Fri, 17 Jan 2025 23:33:50 GMT, Justin Lu wrote: >> Please review this PR and CSR which adds a method to _java.util.Currency_ >> which returns a stream of the available Currencies. >> >> The motivation can be found in the CSR. > > Justin Lu has updated the pull request incrementally with one

Re: RFR: 8343962: [REDO] Move getChars to DecimalDigits [v6]

2025-01-20 Thread Raffaello Giulietti
On Sat, 18 Jan 2025 00:58:36 GMT, Shaojin Wen wrote: >> Sorry, I was just reading the comment and not how DIGITS is initialized and >> used. >> >> The _correct_ comment should be something like >> >> * 97 -> '9' | ('7' << 8) -> 0x3739 >> >> so the `short` value was correct before, b

Re: RFR: JDK-8348030 : Extend Math.min to support multiple parameters

2025-01-20 Thread Per Minborg
On Wed, 15 Jan 2025 14:26:32 GMT, Aviad Zer wrote: > This change extends the Math.min function to support multiple parameters, > improving its usability and code readability. > > Previously, finding the minimum value among multiple variables required using > nested Math.min calls or converting

Re: RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long)

2025-01-20 Thread Emanuel Peter
On Fri, 17 Jan 2025 17:41:47 GMT, Galder Zamarreño wrote: >> @galderz I ran some testing on our side, feel free to ping me in 1-2 days >> for the results. > > @eme64 I've addressed all the comments. I've not run the `VectorReduction2` > for the reasons explained in the previous comment. Happy t

RFR: 8347564: ZGC: Crash in DependencyContext::clean_unloading_dependents

2025-01-20 Thread Axel Boldt-Christmas
The proposed change here is the following: 1. Move the `vmdependencies` list head from the `Context` to the `CallSite` object 2. Remove the Context object and its corresponding cleaner (1.) fixes the crash. (2.) is because without `vmdependencies` the Context and its cleaner serves no purpose.