Re: RFR: 8352533: Report useful IOExceptions when jspawnhelper fails [v3]

2025-04-30 Thread Roger Riggs
On Wed, 26 Mar 2025 17:31:47 GMT, Aleksey Shipilev wrote: >> When jspawnhelper fails for whatever reason, but more prominently due to >> [JDK-8325621](https://bugs.openjdk.org/browse/JDK-8325621), it will report >> the errors into stdout, but not to the relevant `IOException`. So, if the >> ap

Re: RFR: 8349910: Implement HTTP/3 for the HTTP Client API [v3]

2025-04-30 Thread Daniel Fuchs
On Wed, 30 Apr 2025 10:19:54 GMT, Daniel Fuchs wrote: >> Hi, >> >> Please find here a PR for the implementation of JEP [JDK-8291976: HTTP/3 for >> the HTTP Client API](https://bugs.openjdk.org/browse/JDK-8291976). >> >> The CSR can be viewed at [JDK-8350588: Implement HTTP/3 for the HTTP Clien

Re: RFR: 8354897: Support Soft/Weak Reference in AOT cache [v8]

2025-04-30 Thread Kim Barrett
On Wed, 30 Apr 2025 14:29:45 GMT, Chen Liang wrote: >> src/java.base/share/classes/jdk/internal/util/ReferencedKeyMap.java line 353: >> >>> 351: for (ReferenceKey key : map.keySet()) { >>> 352: Object referent = key.get(); >>> 353: if (referent == null) { >> >> S

Re: RFR: 8355391: Use Long::hashCode in java.time

2025-04-30 Thread Roger Riggs
On Wed, 30 Apr 2025 06:46:07 GMT, Volkan Yazici wrote: > Replace manual bitwise operations in `hashCode` implementations of > `java.time` with `Long::hashCode`. lgtm - Marked as reviewed by rriggs (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/24959#pullrequestreview-280

Re: RFR: 8347712: IllegalStateException on multithreaded ZipFile access with non-UTF8 charset [v5]

2025-04-30 Thread Jaikiran Pai
On Sun, 23 Mar 2025 08:55:33 GMT, Eirik Bjørsnøs wrote: >> src/java.base/share/classes/java/util/zip/ZipFile.java line 384: >> >>> 382: * @param fallback the fallback ZipCoder to return if the entry >>> doesn't require UTF-8 >>> 383: */ >>> 384: private static ZipCoder zipCoderFor

Re: RFR: 8349146: [REDO] Implement a better allocator for downcalls [v4]

2025-04-30 Thread Per Minborg
On Wed, 30 Apr 2025 10:55:41 GMT, Per Minborg wrote: >> This PR is based on the work of @mernst-github and aims to implement an >> _internal_ thread-local 'stack' allocator, which works like a dynamically >> sized arena, but with reset functionality to reset the allocated size back >> to a cer

Re: RFR: 8347712: IllegalStateException on multithreaded ZipFile access with non-UTF8 charset [v8]

2025-04-30 Thread Jaikiran Pai
On Wed, 30 Apr 2025 14:14:28 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix an issue >> `java.util.zip.ZipFile` which would cause failures when multiple instances >> of `ZipFile` using non-UTF8 `Charset` were operating against the same >> underlying

Re: RFR: 8355391: Use Long::hashCode in java.time

2025-04-30 Thread Per Minborg
On Wed, 30 Apr 2025 06:46:07 GMT, Volkan Yazici wrote: > Replace manual bitwise operations in `hashCode` implementations of > `java.time` with `Long::hashCode`. Looks fine! Thanks for this cleanup. - Marked as reviewed by pminborg (Reviewer). PR Review: https://git.openjdk.org/jd

Re: RFR: 8354996: Reduce dynamic code generation for a single downcall [v3]

2025-04-30 Thread Jaikiran Pai
On Mon, 28 Apr 2025 14:36:33 GMT, Chen Liang wrote: >> Perf numbers for simple main: >> Linking of `Class::forName0` down from ~152 to ~83 >> >> For calling little color management system >> https://bugs.openjdk.org/browse/JDK-8313344: >> JNI: ~45 >> baseline panama: ~164 >> patch: ~103 >> >>

Re: RFR: 8352730: RISC-V: Disable tests in qemu-user [v4]

2025-04-30 Thread Robbin Ehn
> Hi, for you to consider. > > These tests constantly fails in qemu-user. > Either the require host to be same arch explicit or implicit (sysroot). > E.g. "ptrace(PTRACE_ATTACH, ..) failed for 405157: Function not implemented'" > for SA tests. > > From bug: >> qemu-user/rv64 sets uarch to "qemu"

Re: RFR: 8352730: RISC-V: Disable tests in qemu-user [v3]

2025-04-30 Thread Robbin Ehn
On Mon, 31 Mar 2025 10:45:54 GMT, Robbin Ehn wrote: >> Hi, for you to consider. >> >> These tests constantly fails in qemu-user. >> Either the require host to be same arch explicit or implicit (sysroot). >> E.g. "ptrace(PTRACE_ATTACH, ..) failed for 405157: Function not >> implemented'" for SA

Re: RFR: 8351996: Behavioral updates for ClassValue::remove [v10]

2025-04-30 Thread Chen Liang
On Wed, 30 Apr 2025 09:14:20 GMT, Viktor Klang wrote: >> Chen Liang 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 17 additional >> commits sin

Re: RFR: 8347712: IllegalStateException on multithreaded ZipFile access with non-UTF8 charset [v7]

2025-04-30 Thread Jaikiran Pai
> Can I please get a review of this change which proposes to fix an issue > `java.util.zip.ZipFile` which would cause failures when multiple instances of > `ZipFile` using non-UTF8 `Charset` were operating against the same underlying > ZIP file? This addresses https://bugs.openjdk.org/browse/JDK

Re: RFR: 8351000: StringBuilder getChar and putChar robustness [v2]

2025-04-30 Thread Roger Riggs
> Improve StringBuilder getChar and putChar robustness with racy updates to > StringBuilder. > Test racing threads with append, insert, and reading characters. Roger Riggs has updated the pull request incrementally with one additional commit since the last revision: Test cleanup ---

Re: RFR: 8350549: MethodHandleProxies.WRAPPER_TYPES is not thread-safe

2025-04-30 Thread Jorn Vernee
On Mon, 24 Feb 2025 23:47:02 GMT, Chen Liang wrote: > Use a thread-safe ReferencedKeySet instead of a WeakHashMap key set. The changes look okay. I agree with Jaikiran that adding a stress test for this would be good. - PR Review: https://git.openjdk.org/jdk/pull/23757#pullrequest

Re: RFR: 8355719: Reduce memory consumption of BigInteger.pow() [v48]

2025-04-30 Thread fabioromano1
On Wed, 30 Apr 2025 12:20:39 GMT, Raffaello Giulietti wrote: >> fabioromano1 has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Simplified the formula for detecting overflows > > src/java.base/share/classes/java/math/BigInteger.java line 2

Re: RFR: 8297727: Forcing LF interpretation lead to StackOverflowError in reflection code

2025-04-30 Thread Chen Liang
On Wed, 30 Apr 2025 13:46:57 GMT, Jorn Vernee wrote: >> When LambdaForms are interpreted, so are field lambda forms. When this >> happens, we may get into an infinite recursion due to field lambda forms >> using `MethodHandleStatics.UNSAFE` via field lambda form. >> >> I think the best solutio

Re: RFR: 8351000: StringBuilder getChar and putChar robustness [v2]

2025-04-30 Thread Chen Liang
On Wed, 30 Apr 2025 13:13:30 GMT, Roger Riggs wrote: >> Improve StringBuilder getChar and putChar robustness with racy updates to >> StringBuilder. >> Test racing threads with append, insert, and reading characters. > > Roger Riggs has updated the pull request incrementally with one additional

Re: RFR: 8351000: StringBuilder getChar and putChar robustness [v2]

2025-04-30 Thread Shaojin Wen
On Wed, 30 Apr 2025 13:13:30 GMT, Roger Riggs wrote: >> Improve StringBuilder getChar and putChar robustness with racy updates to >> StringBuilder. >> Test racing threads with append, insert, and reading characters. > > Roger Riggs has updated the pull request incrementally with one additional

Re: RFR: 8355979: ATTRIBUTE_NO_UBSAN needs to be extended to handle float divisions by zero on AIX

2025-04-30 Thread Joachim Kern
On Wed, 30 Apr 2025 13:04:18 GMT, Matthias Baesken wrote: > Seems the currently used ATTRIBUTE_NO_UBSAN does not handle the exclusion of > float divisions by zero. > At least this is the case on AIX. > > (seen in the jtreg test java/lang/Math/PowTests.java ) LGTM - Marked as revi

Re: RFR: 8354897: Support Soft/Weak Reference in AOT cache [v8]

2025-04-30 Thread Alan Bateman
On Wed, 30 Apr 2025 00:56:19 GMT, Ioi Lam wrote: >> This PR contains 2 parts >> >> - Upstream of Soft/Weak Reference support authored by @macarte from [the >> Leyden >> repo](https://github.com/openjdk/leyden/commit/4ca75d156519596e23abc8a312496b7c2f0e0ca5) >> - New C++ class `AOTReferenceObjS

Re: RFR: 8355719: Reduce memory consumption of BigInteger.pow() [v48]

2025-04-30 Thread fabioromano1
On Wed, 30 Apr 2025 12:20:39 GMT, Raffaello Giulietti wrote: >> fabioromano1 has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Simplified the formula for detecting overflows > > src/java.base/share/classes/java/math/BigInteger.java line 2

Re: RFR: 8297727: Forcing LF interpretation lead to StackOverflowError in reflection code

2025-04-30 Thread Jorn Vernee
On Wed, 23 Apr 2025 22:39:40 GMT, Chen Liang wrote: > When LambdaForms are interpreted, so are field lambda forms. When this > happens, we may get into an infinite recursion due to field lambda forms > using `MethodHandleStatics.UNSAFE` via field lambda form. > > I think the best solution here

Integrated: 8351000: StringBuilder getChar and putChar robustness

2025-04-30 Thread Roger Riggs
On Tue, 29 Apr 2025 14:10:30 GMT, Roger Riggs wrote: > Improve StringBuilder getChar and putChar robustness with racy updates to > StringBuilder. > Test racing threads with append, insert, and reading characters. This pull request has now been integrated. Changeset: 4c695fa8 Author:Roger

Re: RFR: 8351000: StringBuilder getChar and putChar robustness

2025-04-30 Thread Andrey Turbanov
On Tue, 29 Apr 2025 14:10:30 GMT, Roger Riggs wrote: > Improve StringBuilder getChar and putChar robustness with racy updates to > StringBuilder. > Test racing threads with append, insert, and reading characters. test/jdk/java/lang/StringBuilder/RacingSBThreads.java line 61: > 59: // Cons

Re: RFR: 8354897: Support Soft/Weak Reference in AOT cache [v8]

2025-04-30 Thread Axel Boldt-Christmas
On Wed, 30 Apr 2025 00:56:19 GMT, Ioi Lam wrote: >> This PR contains 2 parts >> >> - Upstream of Soft/Weak Reference support authored by @macarte from [the >> Leyden >> repo](https://github.com/openjdk/leyden/commit/4ca75d156519596e23abc8a312496b7c2f0e0ca5) >> - New C++ class `AOTReferenceObjS

Re: RFR: 8349146: [REDO] Implement a better allocator for downcalls [v2]

2025-04-30 Thread Per Minborg
> This PR is based on the work of @mernst-github and aims to implement an > _internal_ thread-local 'stack' allocator, which works like a dynamically > sized arena, but with reset functionality to reset the allocated size back to > a certain level. The underlying memory could stay around between

Re: RFR: 8349146: [REDO] Implement a better allocator for downcalls [v3]

2025-04-30 Thread Per Minborg
> This PR is based on the work of @mernst-github and aims to implement an > _internal_ thread-local 'stack' allocator, which works like a dynamically > sized arena, but with reset functionality to reset the allocated size back to > a certain level. The underlying memory could stay around between

Re: RFR: 8352533: Report useful IOExceptions when jspawnhelper fails [v3]

2025-04-30 Thread Aleksey Shipilev
On Wed, 26 Mar 2025 17:31:47 GMT, Aleksey Shipilev wrote: >> When jspawnhelper fails for whatever reason, but more prominently due to >> [JDK-8325621](https://bugs.openjdk.org/browse/JDK-8325621), it will report >> the errors into stdout, but not to the relevant `IOException`. So, if the >> ap

Re: RFR: 8354996: Reduce dynamic code generation for a single downcall [v3]

2025-04-30 Thread Jorn Vernee
On Mon, 28 Apr 2025 14:36:33 GMT, Chen Liang wrote: >> Perf numbers for simple main: >> Linking of `Class::forName0` down from ~152 to ~83 >> >> For calling little color management system >> https://bugs.openjdk.org/browse/JDK-8313344: >> JNI: ~45 >> baseline panama: ~164 >> patch: ~103 >> >>

Re: RFR: 8351565: Implement JEP 502: Stable Values (Preview) [v78]

2025-04-30 Thread Jorn Vernee
On Thu, 24 Apr 2025 10:37:59 GMT, Per Minborg wrote: >> Implement JEP 502. >> >> The PR passes tier1-tier3 tests. > > Per Minborg has updated the pull request incrementally with one additional > commit since the last revision: > > Make public constuctor private The other comments I had were

Re: RFR: 8349146: [REDO] Implement a better allocator for downcalls [v4]

2025-04-30 Thread Per Minborg
> This PR is based on the work of @mernst-github and aims to implement an > _internal_ thread-local 'stack' allocator, which works like a dynamically > sized arena, but with reset functionality to reset the allocated size back to > a certain level. The underlying memory could stay around between

Re: RFR: 8347712: IllegalStateException on multithreaded ZipFile access with non-UTF8 charset [v8]

2025-04-30 Thread Jaikiran Pai
> Can I please get a review of this change which proposes to fix an issue > `java.util.zip.ZipFile` which would cause failures when multiple instances of > `ZipFile` using non-UTF8 `Charset` were operating against the same underlying > ZIP file? This addresses https://bugs.openjdk.org/browse/JDK

Re: RFR: 8347712: IllegalStateException on multithreaded ZipFile access with non-UTF8 charset [v7]

2025-04-30 Thread Jaikiran Pai
On Wed, 30 Apr 2025 13:14:28 GMT, Lance Andersen wrote: >> Jaikiran Pai 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 21 additional >> commits

Re: RFR: 8354897: Support Soft/Weak Reference in AOT cache [v8]

2025-04-30 Thread Kim Barrett
On Wed, 30 Apr 2025 00:56:19 GMT, Ioi Lam wrote: >> This PR contains 2 parts >> >> - Upstream of Soft/Weak Reference support authored by @macarte from [the >> Leyden >> repo](https://github.com/openjdk/leyden/commit/4ca75d156519596e23abc8a312496b7c2f0e0ca5) >> - New C++ class `AOTReferenceObjS

Re: RFR: 8349146: [REDO] Implement a better allocator for downcalls [v4]

2025-04-30 Thread Jorn Vernee
On Wed, 30 Apr 2025 10:55:41 GMT, Per Minborg wrote: >> This PR is based on the work of @mernst-github and aims to implement an >> _internal_ thread-local 'stack' allocator, which works like a dynamically >> sized arena, but with reset functionality to reset the allocated size back >> to a cer

Re: RFR: 8347712: IllegalStateException on multithreaded ZipFile access with non-UTF8 charset [v7]

2025-04-30 Thread Jaikiran Pai
On Wed, 30 Apr 2025 13:12:37 GMT, Lance Andersen wrote: >> Jaikiran Pai 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 21 additional >> commits

RFR: 8351443: Improve robustness of StringBuilder

2025-04-30 Thread Roger Riggs
Refactor AbstractStringBuilder to maintain consistency among count, coder, and value buffers while the buffer capacity is being expanded and/or inflated from Latin1 to UTF16 representations. The refactoring pattern is to read and write AbstractStringBuilder fields once using locals for all inte

Re: RFR: 8351443: Improve robustness of StringBuilder

2025-04-30 Thread Per Minborg
On Wed, 30 Apr 2025 14:12:36 GMT, Roger Riggs wrote: > Refactor AbstractStringBuilder to maintain consistency among count, coder, > and value buffers while the buffer capacity is being expanded and/or inflated > from Latin1 to UTF16 representations. > The refactoring pattern is to read and wri

Re: RFR: 8355719: Reduce memory consumption of BigInteger.pow() [v48]

2025-04-30 Thread Raffaello Giulietti
On Wed, 30 Apr 2025 14:00:10 GMT, fabioromano1 wrote: >> src/java.base/share/classes/java/math/BigInteger.java line 2737: >> >>> 2735: } >>> 2736: >>> 2737: return pow; >> >> Is there a reason this cannot simply be the traditional "repeated square" >> method? >> Why this compl

Re: RFR: 8351443: Improve robustness of StringBuilder

2025-04-30 Thread Chen Liang
On Wed, 30 Apr 2025 14:12:36 GMT, Roger Riggs wrote: > Refactor AbstractStringBuilder to maintain consistency among count, coder, > and value buffers while the buffer capacity is being expanded and/or inflated > from Latin1 to UTF16 representations. > The refactoring pattern is to read and wri

RFR: 8355979: ATTRIBUTE_NO_UBSAN needs to be extended to handle float divisions by zero on AIX

2025-04-30 Thread Matthias Baesken
Seems the currently used ATTRIBUTE_NO_UBSAN does not handle the exclusion of float divisions by zero. At least this is the case on AIX. (seen in the jtreg test java/lang/Math/PowTests.java ) - Commit messages: - JDK-8355979 Changes: https://git.openjdk.org/jdk/pull/24963/files W

Re: RFR: 8351000: StringBuilder getChar and putChar robustness [v2]

2025-04-30 Thread Lance Andersen
On Wed, 30 Apr 2025 13:13:30 GMT, Roger Riggs wrote: >> Improve StringBuilder getChar and putChar robustness with racy updates to >> StringBuilder. >> Test racing threads with append, insert, and reading characters. > > Roger Riggs has updated the pull request incrementally with one additional

Re: RFR: 8347712: IllegalStateException on multithreaded ZipFile access with non-UTF8 charset [v7]

2025-04-30 Thread Lance Andersen
On Wed, 30 Apr 2025 12:02:25 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix an issue >> `java.util.zip.ZipFile` which would cause failures when multiple instances >> of `ZipFile` using non-UTF8 `Charset` were operating against the same >> underlying

Re: RFR: 8354897: Support Soft/Weak Reference in AOT cache [v8]

2025-04-30 Thread Chen Liang
On Wed, 30 Apr 2025 14:16:27 GMT, Kim Barrett wrote: >> Ioi Lam has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Renamed the internal field ReferenceQueue.NULL to NULL_QUEUE to avoid >> failing hotspot/jtreg/sources/TestNoNULL.java > > s

Re: RFR: 8343110: Add getChars(int, int, char[], int) to CharSequence and CharBuffer [v9]

2025-04-30 Thread Markus KARG
> This Pull Request proposes an implementation for > [JDK-8343110](https://bugs.openjdk.org/browse/JDK-8343110): Adding the new > method `public void getChars(int srcBegin, int srcEnd, char[] dst, int > dstBegin)` to the `CharSequence` interface, providing a **bulk-read** > facility including a

Re: RFR: 8349146: [REDO] Implement a better allocator for downcalls [v5]

2025-04-30 Thread Per Minborg
> This PR is based on the work of @mernst-github and aims to implement an > _internal_ thread-local 'stack' allocator, which works like a dynamically > sized arena, but with reset functionality to reset the allocated size back to > a certain level. The underlying memory could stay around between

Re: RFR: 8349146: [REDO] Implement a better allocator for downcalls [v6]

2025-04-30 Thread Per Minborg
> This PR is based on the work of @mernst-github and aims to implement an > _internal_ thread-local 'stack' allocator, which works like a dynamically > sized arena, but with reset functionality to reset the allocated size back to > a certain level. The underlying memory could stay around between

Re: RFR: 8343110: Add getChars(int, int, char[], int) to CharSequence and CharBuffer [v9]

2025-04-30 Thread Markus KARG
On Wed, 30 Apr 2025 15:33:37 GMT, Markus KARG wrote: >> This Pull Request proposes an implementation for >> [JDK-8343110](https://bugs.openjdk.org/browse/JDK-8343110): Adding the new >> method `public void getChars(int srcBegin, int srcEnd, char[] dst, int >> dstBegin)` to the `CharSequence` i

Re: RFR: 8354897: Support Soft/Weak Reference in AOT cache [v8]

2025-04-30 Thread Ioi Lam
On Wed, 30 Apr 2025 13:43:28 GMT, Alan Bateman wrote: >> Ioi Lam has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Renamed the internal field ReferenceQueue.NULL to NULL_QUEUE to avoid >> failing hotspot/jtreg/sources/TestNoNULL.java > >

Re: RFR: 8355444: [java.io] Use @requires tag instead of exiting based on "os.name" property value [v4]

2025-04-30 Thread Brian Burkhalter
On Wed, 30 Apr 2025 06:08:30 GMT, Alan Bateman wrote: >> Comment simplified in 4cee3c2. > > Okay, just a bit puzzled as to why it doesn't run on Linux. The VM uses > setrlimit(RLIMIT_NOFILE) to set the limit to the hard limit (rlim_max). So is > the issue here that the hard limit less than 2050

Re: RFR: 8343110: Add getChars(int, int, char[], int) to CharSequence and CharBuffer [v9]

2025-04-30 Thread Chen Liang
On Wed, 30 Apr 2025 15:34:33 GMT, Markus KARG wrote: >> Markus KARG has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Applied changes proposed by Joe and Jaikiran: Using @inheritDoc to get >> JavaDocs without @since. > > src/java.base/sha

RFR: 8347938: Switch to latest ML-KEM private key encoding

2025-04-30 Thread Weijun Wang
The private key encoding formats of ML-KEM and ML-DSA are updated to match the latest IERTF drafts at: https://datatracker.ietf.org/doc/html/draft-ietf-lamps-dilithium-certificates-08 and https://datatracker.ietf.org/doc/html/draft-ietf-lamps-kyber-certificates-10. New security/system properti

Re: RFR: 8355223: Improve documentation on @IntrinsicCandidate [v5]

2025-04-30 Thread Roger Riggs
On Wed, 23 Apr 2025 14:12:29 GMT, Chen Liang wrote: >> In offline discussion, we noted that the documentation on this annotation >> does not recommend minimizing the intrinsified section and moving whatever >> can be done in Java to Java; thus I prepared this documentation update, to >> shrink

Re: RFR: 8349146: [REDO] Implement a better allocator for downcalls [v6]

2025-04-30 Thread Per Minborg
On Wed, 30 Apr 2025 15:33:52 GMT, Per Minborg wrote: >> This PR is based on the work of @mernst-github and aims to implement an >> _internal_ thread-local 'stack' allocator, which works like a dynamically >> sized arena, but with reset functionality to reset the allocated size back >> to a cer

Re: RFR: 8355719: Reduce memory consumption of BigInteger.pow() [v49]

2025-04-30 Thread fabioromano1
> This PR optimizes `BigInteger.pow(int)` method. The primary enhancement in > `pow()` is not concerned most on execution time, but rather in memory > optimization, because the PR implementation does the "shift of the exponent" > squaring the result rather than the base, so the base is not squar

Re: RFR: 8355391: Use Long::hashCode in java.time

2025-04-30 Thread Naoto Sato
On Wed, 30 Apr 2025 06:46:07 GMT, Volkan Yazici wrote: > Replace manual bitwise operations in `hashCode` implementations of > `java.time` with `Long::hashCode`. LGTM. Thanks for the refactoring - Marked as reviewed by naoto (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/

Integrated: 8351565: Implement JEP 502: Stable Values (Preview)

2025-04-30 Thread Per Minborg
On Mon, 10 Mar 2025 18:11:23 GMT, Per Minborg wrote: > Implement JEP 502. > > The PR passes tier1-tier3 tests. This pull request has now been integrated. Changeset: fbc4691b Author:Per Minborg URL: https://git.openjdk.org/jdk/commit/fbc4691bfa11f31601fd89d05da63e689343e214 Stats:

Integrated: 8342886: Update MET timezone in TimeZoneNames files

2025-04-30 Thread Gautham Krishnan
On Fri, 25 Apr 2025 09:57:38 GMT, Gautham Krishnan wrote: > MET timezone entry in TimeZoneNames.java and TimeZoneNames_*.java needs to be > updated as MET is alias to Europe/Brussels as per 2024b tzdata changes. > > Also Bug4848242.java needs to be removed as the test expects all euro locale >

Re: RFR: 8354996: Reduce dynamic code generation for a single downcall [v3]

2025-04-30 Thread SendaoYan
On Mon, 28 Apr 2025 14:36:33 GMT, Chen Liang wrote: >> Perf numbers for simple main: >> Linking of `Class::forName0` down from ~152 to ~83 >> >> For calling little color management system >> https://bugs.openjdk.org/browse/JDK-8313344: >> JNI: ~45 >> baseline panama: ~164 >> patch: ~103 >> >>

Re: RFR: 8351443: Improve robustness of StringBuilder

2025-04-30 Thread Shaojin Wen
On Wed, 30 Apr 2025 14:12:36 GMT, Roger Riggs wrote: > Refactor AbstractStringBuilder to maintain consistency among count, coder, > and value buffers while the buffer capacity is being expanded and/or inflated > from Latin1 to UTF16 representations. > The refactoring pattern is to read and wri

Re: RFR: 8297271: AccessFlag.maskToAccessFlags should be specific to class file version [v5]

2025-04-30 Thread Chen Liang
On Tue, 29 Apr 2025 19:48:01 GMT, Chen Liang wrote: >> Take the class file version to reject flags not yet defined, redefined, or >> obsoleted. This is useful for clients like javap to report the correct >> undefined flags for different class file versions. >> >> A preparatory patch for javap

Re: RFR: 8297271: AccessFlag.maskToAccessFlags should be specific to class file version [v6]

2025-04-30 Thread Chen Liang
> Take the class file version to reject flags not yet defined, redefined, or > obsoleted. This is useful for clients like javap to report the correct > undefined flags for different class file versions. > > A preparatory patch for javap to pass around the ClassFileFormatVersion to > parse flags

Re: RFR: 8354897: Support Soft/Weak Reference in AOT cache [v9]

2025-04-30 Thread Ioi Lam
On Wed, 30 Apr 2025 17:45:04 GMT, Ioi Lam wrote: >> This PR contains 2 parts >> >> - Upstream of Soft/Weak Reference support authored by @macarte from [the >> Leyden >> repo](https://github.com/openjdk/leyden/commit/4ca75d156519596e23abc8a312496b7c2f0e0ca5) >> - New C++ class `AOTReferenceObjS

Re: RFR: 8355698: JDK not supporting sleef could cause exception at runtime after JDK-8353786

2025-04-30 Thread Hamlin Li
On Tue, 29 Apr 2025 22:22:19 GMT, Vladimir Ivanov wrote: > Can you point me, please, to the relevant parts of the discussions? I wasn't > part of them. Sorry, I can not find out this specific answer for you, as there were too long discussion there, the whole process took several months. > Bot

Re: RFR: 8355698: JDK not supporting sleef could cause exception at runtime after JDK-8353786

2025-04-30 Thread Vladimir Ivanov
On Wed, 30 Apr 2025 11:00:04 GMT, Hamlin Li wrote: > It's arguable if missing entries is a bug, please check > [JDK-8355656](https://bugs.openjdk.org/browse/JDK-8355656) for example Personally, I'm surprised SVML is affected in a similar way because stubs are provided in assembly form, so they

RFR: 8355698: JDK not supporting sleef could cause exception at runtime after JDK-8353786

2025-04-30 Thread Hamlin Li
Hi, Can you help to review this patch? Before [JDK-8353786](https://bugs.openjdk.org/browse/JDK-8353786), when a released jdk not supportting sleef (for any reason, e.g. low gcc version, intrinsic not supported, rvv not supported, and so on) runs on machine support vector operation (e.g. on ris

Re: RFR: 8355698: JDK not supporting sleef could cause exception at runtime after JDK-8353786

2025-04-30 Thread Vladimir Ivanov
On Mon, 28 Apr 2025 10:34:49 GMT, Hamlin Li wrote: > Hi, > Can you help to review this patch? > > Before [JDK-8353786](https://bugs.openjdk.org/browse/JDK-8353786), when a > released jdk not supportting sleef (for any reason, e.g. low gcc version, > intrinsic not supported, rvv not supported,

Re: RFR: 8355698: JDK not supporting sleef could cause exception at runtime after JDK-8353786

2025-04-30 Thread SendaoYan
On Mon, 28 Apr 2025 10:34:49 GMT, Hamlin Li wrote: > Hi, > Can you help to review this patch? > > Before [JDK-8353786](https://bugs.openjdk.org/browse/JDK-8353786), when a > released jdk not supportting sleef (for any reason, e.g. low gcc version, > intrinsic not supported, rvv not supported,

Re: RFR: 8355698: JDK not supporting sleef could cause exception at runtime after JDK-8353786

2025-04-30 Thread Hamlin Li
On Tue, 29 Apr 2025 02:40:01 GMT, SendaoYan wrote: >> Hi, >> Can you help to review this patch? >> >> Before [JDK-8353786](https://bugs.openjdk.org/browse/JDK-8353786), when a >> released jdk not supportting sleef (for any reason, e.g. low gcc version, >> intrinsic not supported, rvv not suppo

Re: RFR: 8355698: JDK not supporting sleef could cause exception at runtime after JDK-8353786

2025-04-30 Thread Vladimir Ivanov
On Tue, 29 Apr 2025 09:16:39 GMT, Hamlin Li wrote: > This behavour was decided in previous PRs > https://github.com/openjdk/jdk/pull/20781, > https://github.com/openjdk/jdk/pull/21083, > https://github.com/openjdk/jdk/pull/21502, and some other uncommited PRs > prior to these ones. Can you p

Re: JavaDoc fix in java.util.Date

2025-04-30 Thread Joseph D. Darcy
Unsigned right shift is non-existent? "The operators << (left shift), >> (signed right shift), and >>> (unsigned right shift) are called the shift operators. The left-hand operand of a shift operator is the value to be shifted; the right-hand operand specifies the shift distance. " https://d

JavaDoc fix in java.util.Date

2025-04-30 Thread Steffen Nießing
Hello, I'm new to the OpenJDK community and plan to make my first change. I've found a small mistake in the documentation of java.util.Date#hashCode(). The documentation provides a Java expression of the returned value, which uses a non-existent operator '>>>'. Now I'm searching for a sponsor

Re: JavaDoc fix in java.util.Date

2025-04-30 Thread Chen Liang
Indeed, Joe is right. Unsigned right shift does not appear often and is equivalent to signed right shift if the sign bit is 0. However, this piece of quote can get an upgrade - it can become `Long.hashCode(this.getTime())`. * Chen From: core-libs-dev on beh

Re: RFR: 8354897: Support Soft/Weak Reference in AOT cache [v9]

2025-04-30 Thread Ioi Lam
> This PR contains 2 parts > > - Upstream of Soft/Weak Reference support authored by @macarte from [the > Leyden > repo](https://github.com/openjdk/leyden/commit/4ca75d156519596e23abc8a312496b7c2f0e0ca5) > - New C++ class `AOTReferenceObjSupport` and new Java method > `ReferencedKeyMap::prepare

Re: RFR: 8354897: Support Soft/Weak Reference in AOT cache [v8]

2025-04-30 Thread Ioi Lam
On Wed, 30 Apr 2025 08:47:59 GMT, Axel Boldt-Christmas wrote: >> Ioi Lam has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Renamed the internal field ReferenceQueue.NULL to NULL_QUEUE to avoid >> failing hotspot/jtreg/sources/TestNoNULL.

Re: RFR: 8354897: Support Soft/Weak Reference in AOT cache [v8]

2025-04-30 Thread Ioi Lam
On Wed, 30 Apr 2025 15:40:35 GMT, Ioi Lam wrote: >> src/java.base/share/classes/java/lang/ref/Reference.java line 313: >> >>> 311: } >>> 312: >>> 313: private static void runtimeSetup() { >> >> I don't know if you are planning an annotation or something to mark these >> "runtimeSetup"

Re: RFR: 8355391: Use Long::hashCode in java.time

2025-04-30 Thread duke
On Wed, 30 Apr 2025 06:46:07 GMT, Volkan Yazici wrote: > Replace manual bitwise operations in `hashCode` implementations of > `java.time` with `Long::hashCode`. @vy Your change (at version 891d9ada7ce6860ea8e1253021f04053cc27090a) is now ready to be sponsored by a Committer. - P

Re: RFR: 8355391: Use Long::hashCode in java.time

2025-04-30 Thread Volkan Yazici
On Wed, 30 Apr 2025 15:01:08 GMT, Roger Riggs wrote: >> Replace manual bitwise operations in `hashCode` implementations of >> `java.time` with `Long::hashCode`. > > lgtm @RogerRiggs, @minborg, @naotoj, thanks for the reviews. I've attached successful `tier1,2` results to the ticket. I'd apprec

Re: RFR: 8354897: Support Soft/Weak Reference in AOT cache [v9]

2025-04-30 Thread Chen Liang
On Wed, 30 Apr 2025 17:45:04 GMT, Ioi Lam wrote: >> This PR contains 2 parts >> >> - Upstream of Soft/Weak Reference support authored by @macarte from [the >> Leyden >> repo](https://github.com/openjdk/leyden/commit/4ca75d156519596e23abc8a312496b7c2f0e0ca5) >> - New C++ class `AOTReferenceObjS

Integrated: 8355391: Use Long::hashCode in java.time

2025-04-30 Thread Volkan Yazici
On Wed, 30 Apr 2025 06:46:07 GMT, Volkan Yazici wrote: > Replace manual bitwise operations in `hashCode` implementations of > `java.time` with `Long::hashCode`. This pull request has now been integrated. Changeset: 18983b63 Author:Volkan Yazici Committer: Naoto Sato URL: https://g

Re: RFR: 8347712: IllegalStateException on multithreaded ZipFile access with non-UTF8 charset [v7]

2025-04-30 Thread Lance Andersen
On Wed, 30 Apr 2025 14:20:37 GMT, Jaikiran Pai wrote: >> test/jdk/java/util/zip/ZipFile/ZipFileCharsetTest.java line 68: >> >>> 66: // ISO-8859-15 is not a standard charset in Java. We skip this >>> test >>> 67: // when it is unavailable >>> 68: >>> assumeTrue(Charset.a

Re: RFR: 8352533: Report useful IOExceptions when jspawnhelper fails [v4]

2025-04-30 Thread Roger Riggs
On Wed, 30 Apr 2025 16:07:56 GMT, Aleksey Shipilev wrote: >> When jspawnhelper fails for whatever reason, but more prominently due to >> [JDK-8325621](https://bugs.openjdk.org/browse/JDK-8325621), it will report >> the errors into stdout, but not to the relevant `IOException`. So, if the >> ap

Re: RFR: 8352533: Report useful IOExceptions when jspawnhelper fails [v3]

2025-04-30 Thread Aleksey Shipilev
On Wed, 30 Apr 2025 14:50:03 GMT, Roger Riggs wrote: > Please add the test number 8352533 to the @bug tag in Basic.java. Thanks, added! - PR Comment: https://git.openjdk.org/jdk/pull/24149#issuecomment-2842494196

Re: RFR: 8352533: Report useful IOExceptions when jspawnhelper fails [v4]

2025-04-30 Thread Aleksey Shipilev
> When jspawnhelper fails for whatever reason, but more prominently due to > [JDK-8325621](https://bugs.openjdk.org/browse/JDK-8325621), it will report > the errors into stdout, but not to the relevant `IOException`. So, if the > application is configured to only capture the exception logs (e.g.

Re: RFR: 8351996: Behavioral updates for ClassValue::remove [v10]

2025-04-30 Thread Viktor Klang
On Tue, 29 Apr 2025 19:03:08 GMT, Chen Liang wrote: >> The recent patch #23866 makes calling `ClassValue::remove()` from >> `ClassValue::computeValue()` end up in infinite loops while fixing the stale >> value risk from the method. >> >> The proposed fix is to preserve the stale value risk fix

Re: RFR: 8351996: Behavioral updates for ClassValue::remove [v10]

2025-04-30 Thread Chen Liang
On Wed, 30 Apr 2025 09:15:49 GMT, Viktor Klang wrote: >> Chen Liang 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 17 additional >> commits sin

Re: RFR: 8355444: [java.io] Use @requires tag instead of exiting based on "os.name" property value [v6]

2025-04-30 Thread Brian Burkhalter
> Use the `@requires` tag instead of obtaining the operating system name from > the `os.name` property and then exiting if the test is not run on that > operating system. Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision: 8355444:

Re: RFR: 8355444: [java.io] Use @requires tag instead of exiting based on "os.name" property value [v5]

2025-04-30 Thread Brian Burkhalter
On Tue, 29 Apr 2025 18:31:37 GMT, Brian Burkhalter wrote: >> Use the `@requires` tag instead of obtaining the operating system name from >> the `os.name` property and then exiting if the test is not run on that >> operating system. > > Brian Burkhalter has updated the pull request incrementally

Re: RFR: 8349146: [REDO] Implement a better allocator for downcalls [v6]

2025-04-30 Thread Jorn Vernee
On Wed, 30 Apr 2025 15:33:52 GMT, Per Minborg wrote: >> This PR is based on the work of @mernst-github and aims to implement an >> _internal_ thread-local 'stack' allocator, which works like a dynamically >> sized arena, but with reset functionality to reset the allocated size back >> to a cer

Re: RFR: 8355956: Prepare javap for class file format aware access flag parsing [v2]

2025-04-30 Thread Chen Liang
> A prerequisite to #24760; this was part of it, but was split out to simplify > the review of the addition of `maskToAccessFlags(int, Location, CFFV)` by > minimizing the changes in javap. That patch will only need to update > `BasicWriter` as a result. > > Testing: langtools/tools/javap, tier

Re: RFR: 8343110: Add getChars(int, int, char[], int) to CharSequence and CharBuffer [v9]

2025-04-30 Thread Markus KARG
On Wed, 30 Apr 2025 15:47:32 GMT, Chen Liang wrote: >> src/java.base/share/classes/java/lang/String.java line 1739: >> >>> 1737: >>> 1738: /** >>> 1739: * {@inheritDoc CharSequence} >> >> @jaikiran @jddarcy Sorry for bothering, but I do need your kind help here to >> get the code to

Integrated: 8354897: Support Soft/Weak Reference in AOT cache

2025-04-30 Thread Ioi Lam
On Fri, 18 Apr 2025 18:31:05 GMT, Ioi Lam wrote: > This PR contains 2 parts > > - Upstream of Soft/Weak Reference support authored by @macarte from [the > Leyden > repo](https://github.com/openjdk/leyden/commit/4ca75d156519596e23abc8a312496b7c2f0e0ca5) > - New C++ class `AOTReferenceObjSupport

Re: RFR: 8297271: AccessFlag.maskToAccessFlags should be specific to class file version [v6]

2025-04-30 Thread Roger Riggs
On Wed, 30 Apr 2025 18:17:27 GMT, Chen Liang wrote: >> Take the class file version to reject flags not yet defined, redefined, or >> obsoleted. This is useful for clients like javap to report the correct >> undefined flags for different class file versions. >> >> A preparatory patch for javap

Re: RFR: 8351565: Implement JEP 502: Stable Values (Preview) [v78]

2025-04-30 Thread Chen Liang
On Thu, 24 Apr 2025 10:37:59 GMT, Per Minborg wrote: >> Implement JEP 502. >> >> The PR passes tier1-tier3 tests. > > Per Minborg has updated the pull request incrementally with one additional > commit since the last revision: > > Make public constuctor private Congratulations! With the int

Re: RFR: 8351443: Improve robustness of StringBuilder

2025-04-30 Thread Shaojin Wen
On Wed, 30 Apr 2025 14:12:36 GMT, Roger Riggs wrote: > Refactor AbstractStringBuilder to maintain consistency among count, coder, > and value buffers while the buffer capacity is being expanded and/or inflated > from Latin1 to UTF16 representations. > The refactoring pattern is to read and wri

Re: RFR: 8352533: Report useful IOExceptions when jspawnhelper fails [v4]

2025-04-30 Thread #NotTheOne
On Wed, 30 Apr 2025 16:11:14 GMT, Aleksey Shipilev wrote: >> When jspawnhelper fails for whatever reason, but more prominently due to >> [JDK-8325621](https://bugs.openjdk.org/browse/JDK-8325621), it will report >> the errors into stdout, but not to the relevant `IOException`. So, if the >> ap

Re: RFR: 8352533: Report useful IOExceptions when jspawnhelper fails [v4]

2025-04-30 Thread Aleksey Shipilev
On Wed, 30 Apr 2025 16:11:14 GMT, Aleksey Shipilev wrote: >> When jspawnhelper fails for whatever reason, but more prominently due to >> [JDK-8325621](https://bugs.openjdk.org/browse/JDK-8325621), it will report >> the errors into stdout, but not to the relevant `IOException`. So, if the >> ap

Re: RFR: 8355391: Use Long::hashCode in java.time

2025-04-30 Thread Shaojin Wen
On Wed, 30 Apr 2025 06:46:07 GMT, Volkan Yazici wrote: > Replace manual bitwise operations in `hashCode` implementations of > `java.time` with `Long::hashCode`. There is a place in java.util.Locale::hashCode that can also be changed Current version long bitsWeight = Double.doubleToLongBits(wei

Re: JavaDoc fix in java.util.Date

2025-04-30 Thread Naoto Sato
Interestingly, the implementation of Date.hashCode() does use the signed right shift ">>". Naoto On 4/30/25 1:06 PM, Chen Liang wrote: Indeed, Joe is right. Unsigned right shift does not appear often and is equivalent to signed right shift if the sign bit is 0. However, this piece of quote c

  1   2   >