Withdrawn: 8348556: Inlining fails earlier for MemorySegment::reinterpret

2025-04-03 Thread duke
On Wed, 5 Feb 2025 10:17:09 GMT, Per Minborg wrote: > This PR proposes to add some `@ForceInline` annotations in the `Module` class > in order to assist inlining of FFM var/method handles. > > There are also some changes in other classes (notably `j.l.Object`) which, if > implemented, can take

Re: RFR: 8315130: java.lang.IllegalAccessError when processing classlist to create CDS archive

2025-04-03 Thread Ioi Lam
On Tue, 25 Mar 2025 11:08:24 GMT, Timofei Pushkin wrote: > If a base class is package-private then its subclasses should have the same > package name and defining class loader, otherwise `IllegalAccessError` is > thrown when linking a subclass. Currently when dumping a static archive > separat

RFR: 8353662: Add test for non-local file URL fallback to FTP

2025-04-03 Thread Eirik Bjørsnøs
Please review this test-only PR which introduces testing of the unspecified but long-standing fallback to FTP for non-local files in the 'file' URL scheme. This in preparation for the upcoming proposal to disable the feature by default in JDK-8353440. Since we cannot reliably bind an FTP serve

Re: RFR: 8352565: Add native method implementation of Reference.get() [v4]

2025-04-03 Thread Leonid Mesnik
On Wed, 2 Apr 2025 18:33:16 GMT, Kim Barrett wrote: >> Please review this change which adds a native method providing the >> implementation of Reference::get. Referece::get is an intrinsic candidate, >> so >> this native method implementation is only used when the intrinsic is not. >> >> Curre

Re: RFR: 8353681: jpackage suppresses errors when executed with --verbose option

2025-04-03 Thread Alexander Matveev
On Thu, 3 Apr 2025 21:36:10 GMT, Alexey Semenyuk wrote: > Always print error messages from the last trapped exception to stderr. > Optionally, print its stasktrace to stdout when in verbose mode. > > Add relevant test. Looks good. - Marked as reviewed by almatvee (Reviewer). PR

RFR: 8345431: Detect duplicate entries in jar files with jar --validate

2025-04-03 Thread Henry Jen
This PR check the jar file to ensure entries are consistent from the central directory and local file header. Also check there is no duplicate entry names that could override the desired content by accident. - Commit messages: - 8345431: Detect duplicate entries in jar files with j

Integrated: 8327858: Improve spliterator and forEach for single-element immutable collections

2025-04-03 Thread Chen Liang
On Wed, 20 Sep 2023 04:52:31 GMT, Chen Liang wrote: > Please review this patch that: > 1. Implemented `forEach` to optimize for 1 or 2 element collections. > 2. Implemented `spliterator` to optimize for a single element. > > The default implementations for multiple-element immutable collections

Re: RFR: 8353681: jpackage suppresses errors when executed with --verbose option

2025-04-03 Thread Alexey Semenyuk
On Thu, 3 Apr 2025 21:36:10 GMT, Alexey Semenyuk wrote: > Always print error messages from the last trapped exception to stderr. > Optionally, print its stasktrace to stdout when in verbose mode. > > Add relevant test. @sashamatveev PTAL @sashamatveev PTAL - PR Comment: https://

RFR: 8353681: jpackage suppresses errors when executed with --verbose option

2025-04-03 Thread Alexey Semenyuk
Always print error messages from the last trapped exception to stderr. Optionally, print its stasktrace to stdout when in verbose mode. Add relevant test. - Commit messages: - Print all errors when jpackage is executed with verbose output. Prior the fix it suppressed printing last

Re: RFR: 8327858: Improve spliterator and forEach for single-element immutable collections [v4]

2025-04-03 Thread Chen Liang
On Fri, 11 Oct 2024 15:49:33 GMT, Chen Liang wrote: >> Please review this patch that: >> 1. Implemented `forEach` to optimize for 1 or 2 element collections. >> 2. Implemented `spliterator` to optimize for a single element. >> >> The default implementations for multiple-element immutable collect

Integrated: 8350704: Create tests to ensure the failure behavior of core reflection APIs

2025-04-03 Thread Chen Liang
On Tue, 25 Feb 2025 23:50:01 GMT, Chen Liang wrote: > Core reflection's generic signature parsing system is used for many aspects, > including annotations and enclosing methods, yet it is under-tested. It is > better for us to set up tests to ensure that sensitive error behaviors of > core ref

Re: RFR: 8350704: Create tests to ensure the failure behavior of core reflection APIs [v3]

2025-04-03 Thread Chen Liang
On Mon, 24 Mar 2025 21:29:29 GMT, Chen Liang wrote: >> Core reflection's generic signature parsing system is used for many aspects, >> including annotations and enclosing methods, yet it is under-tested. It is >> better for us to set up tests to ensure that sensitive error behaviors of >> core

Re: RFR: 8341641: Make %APPDATA% and %LOCALAPPDATA% env variables available in *.cfg files [v8]

2025-04-03 Thread Alexey Semenyuk
On Tue, 1 Apr 2025 21:20:54 GMT, Alexey Semenyuk wrote: >> jpackage app laucnher will expand environment variables in .cfg files. >> >> Previously jpackage app launcher only replaced `$APPDIR`, `$BINDIR`, and >> `$ROOTDIR` tokens with the corresponding path values. With this patch, any >> envi

Integrated: 8352419: Test tools/jpackage/share/ErrorTest.java#id0 and #id1 fail

2025-04-03 Thread Alexey Semenyuk
On Fri, 28 Mar 2025 15:02:05 GMT, Alexey Semenyuk wrote: > Make tools/jpackage/share/ErrorTest.java test safely handle the case when > native bundling is unavailable on the test host. > > Additionally: > - If native bundling is unavailable on the test host, PackageTest will throw > `jtreg.Ski

Re: RFR: 8341641: Make %APPDATA% and %LOCALAPPDATA% env variables available in *.cfg files [v8]

2025-04-03 Thread Alexander Matveev
On Tue, 1 Apr 2025 21:20:54 GMT, Alexey Semenyuk wrote: >> jpackage app laucnher will expand environment variables in .cfg files. >> >> Previously jpackage app launcher only replaced `$APPDIR`, `$BINDIR`, and >> `$ROOTDIR` tokens with the corresponding path values. With this patch, any >> envi

Re: RFR: 8353585: Provide ChoiceFormat#parse(String, ParsePosition) tests [v2]

2025-04-03 Thread Justin Lu
> Please review this PR which provides unit tests for > `ChoiceFormat#parse(String, ParsePosition)` to check default, multi match, > and no match behavior. There were no existing relevant tests. Justin Lu has updated the pull request incrementally with one additional commit since the last revis

Re: RFR: 8353684: [BACKOUT] j.u.l.Handler classes create deadlock risk via synchronized publish() method

2025-04-03 Thread David Holmes
On Thu, 3 Apr 2025 21:03:08 GMT, Stuart Marks wrote: > Back out commit for > [JDK-8349206](https://bugs.openjdk.org/browse/JDK-8349206) because of build > failure. > > This reverts commit ebcb9a8b128cc6411610566c8368db63d25a5127. LGTM Thanks Stuart! - Marked as reviewed by dholm

RFR: 8353684: [BACKOUT] j.u.l.Handler classes create deadlock risk via synchronized publish() method

2025-04-03 Thread Stuart Marks
Back out commit for [JDK-8349206](https://bugs.openjdk.org/browse/JDK-8349206) because of build failure. This reverts commit ebcb9a8b128cc6411610566c8368db63d25a5127. - Commit messages: - 8353684: BACKOUT 8349206: j.u.l.Handler classes create deadlock risk via synchronized publish

RFR: 8353679: Restructure classes in jdk.jpackage.internal package

2025-04-03 Thread Alexey Semenyuk
- Move ConfigException, PackagerException, MsiVersion, and DottedVersion classes from "jdk.jpackage.internal" package to "jdk.jpackage.internal.model" package. - Remove public ctor from DottedVersion class. It can only be constructed with `DottedVersion.lazy()` and `DottedVersion.greedy()` func

Re: RFR: 8353679: Restructure classes in jdk.jpackage.internal package

2025-04-03 Thread Alexey Semenyuk
On Tue, 1 Apr 2025 15:18:13 GMT, Alexey Semenyuk wrote: > - Move ConfigException, PackagerException, MsiVersion, and DottedVersion > classes from "jdk.jpackage.internal" package to "jdk.jpackage.internal.model" > package. > - Remove public ctor from DottedVersion class. It can only be construc

Re: RFR: 8349206: j.u.l.Handler classes create deadlock risk via synchronized publish() method [v13]

2025-04-03 Thread Stuart Marks
On Wed, 2 Apr 2025 21:59:32 GMT, David Beaumont wrote: >> 8349206: j.u.l.Handler classes create deadlock risk via synchronized >> publish() method. >> >> 1. Remove synchronization of calls to publish() in Handlers in >> java.util.logging package. >> 2. Add explanatory comments to various affec

RFR: 8351354: Enhance java -XshowSettings:security:tls to show enabled TLS groups and signature algorithms

2025-04-03 Thread Matthew Donovan
In this PR I added TLS groups and signature algorithms to the output of the show settings flag. The values are printed in a single column, like the cipher suites. There can be a lot of values so putting on a single line is ugly. I tried putting them in columns, but it is hard to read. -

Re: RFR: 8352693: Use a simpler console reader instead of JLine for System.console() [v2]

2025-04-03 Thread Jan Lahoda
On Thu, 3 Apr 2025 17:59:52 GMT, Jan Lahoda wrote: >> The `java.io.Console` has several backends: a simple on in `java.base`, a >> more convenient one in `jdk.internal.le` (with line-reading based on JLine) >> and one for JShell. >> >> The backend based on JLine is proving to be a somewhat pro

Re: RFR: 8352693: Use a simpler console reader instead of JLine for System.console() [v3]

2025-04-03 Thread Jan Lahoda
> The `java.io.Console` has several backends: a simple on in `java.base`, a > more convenient one in `jdk.internal.le` (with line-reading based on JLine) > and one for JShell. > > The backend based on JLine is proving to be a somewhat problematic - JLine is > very powerful, possibly too powerfu

Re: RFR: 8353489: Increase timeout and improve Windows compatibility in test/jdk/java/lang/ProcessBuilder/Basic.java

2025-04-03 Thread Oleksii Sylichenko
On Thu, 6 Mar 2025 13:34:07 GMT, Oleksii Sylichenko wrote: > This PR proposes three improvements to the `Basic.java` test: > > 1. Increase Timeout >- The current timeout is insufficient when running the test in IntelliJ > IDEA. >- I propose increasing it by one minute. >- The timeou

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

2025-04-03 Thread Per Minborg
> 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: Clean up StableValue docs - Changes: - all: https://git.openjdk.org/jdk/pull/23972/files - new: https://git.op

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

2025-04-03 Thread Per Minborg
On Wed, 2 Apr 2025 18:46:06 GMT, Viktor Klang wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add info that Map#values and Map#entrySet are stable > > test/jdk/java/lang/StableValue/StableValueFactoriesTest.java lin

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

2025-04-03 Thread Maurizio Cimadamore
On Thu, 3 Apr 2025 14:00:00 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 the sqrt example different src/java.base/share/classes/j

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

2025-04-03 Thread Maurizio Cimadamore
On Thu, 3 Apr 2025 12:17:03 GMT, Maurizio Cimadamore wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Move Serializable specs to @implNote > > src/java.base/share/classes/java/lang/StableValue.java line 653: > >> 6

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

2025-04-03 Thread Per Minborg
On Wed, 2 Apr 2025 18:49:31 GMT, Viktor Klang wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add info that Map#values and Map#entrySet are stable > > test/jdk/java/lang/StableValue/StableValueTest.java line 262: >

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

2025-04-03 Thread Per Minborg
> 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 the sqrt example different - Changes: - all: https://git.openjdk.org/jdk/pull/23972/files - new: https://

Re: RFR: 8304674: AttachCurrentThread 's argument is JavaVMAttachArgs

2025-04-03 Thread tison
On Tue, 1 Apr 2025 05:38:17 GMT, Jaikiran Pai wrote: >> @jaikiran not yet. How can I create an issue for this PR? I don't find some >> instructions :/ > > Hello @tisonkun, > >> How can I create an issue for this PR? I don't find some instructions :/ > > In general, the OpenJDK contribution gui

Re: RFR: 8352935: Launcher should not add $JDK/../lib to LD_LIBRARY_PATH [v2]

2025-04-03 Thread Jaikiran Pai
On Thu, 3 Apr 2025 13:09:10 GMT, Joachim Kern wrote: >> In the JDK launcher, there is a codepath which would set/modify the >> LD_LIBRARY_PATH. This happens unconditionally on AIX and Linux/musl and can >> also happen on other Linux platforms if an LD_LIBRARY_PATH is pre-set which >> contains

Re: RFR: 8352935: Launcher should not add $JDK/../lib to LD_LIBRARY_PATH

2025-04-03 Thread Jaikiran Pai
On Tue, 1 Apr 2025 09:13:45 GMT, Joachim Kern wrote: > In the JDK launcher, there is a codepath which would set/modify the > LD_LIBRARY_PATH. This happens unconditionally on AIX and Linux/musl and can > also happen on other Linux platforms if an LD_LIBRARY_PATH is pre-set which > contains a li

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

2025-04-03 Thread Per Minborg
> 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: Specify that an exception is thrown for illegal inputs - Changes: - all: https://git.openjdk.org/jdk/pull/23972/

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

2025-04-03 Thread Per Minborg
On Wed, 2 Apr 2025 19:22:28 GMT, Quan Anh Mai wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add info that Map#values and Map#entrySet are stable > > src/java.base/share/classes/java/lang/StableValue.java line 402:

Re: RFR: 8066583: DeflaterInput/OutputStream and InflaterInput/OutputStream should explain responsibility for freeing resources [v9]

2025-04-03 Thread Jaikiran Pai
> Can I please get a review of this doc-only change which proposes to improve > the API documentation of `DeflaterInputStream`, `DeflaterOutputStream`, > `InflaterInputStream` and `InflaterOutputStream` classes? > > As noted in https://bugs.openjdk.org/browse/JDK-8066583 some of the > construct

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

2025-04-03 Thread Per Minborg
On Wed, 12 Mar 2025 14:14:13 GMT, Per Minborg wrote: >> It's true that the storage can be flatter here -- that said, this can also >> be done as a later refactoring. One advantage of doing things the way >> @minborg did it here, is that it's fairly easy to prove that the code below >> is corre

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

2025-04-03 Thread Per Minborg
> 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: Break out and move performance related text - Changes: - all: https://git.openjdk.org/jdk/pull/23972/files - n

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

2025-04-03 Thread Maurizio Cimadamore
On Thu, 3 Apr 2025 11:34:03 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: > > Move Serializable specs to @implNote src/java.base/share/clas

Re: RFR: 8066583: DeflaterInput/OutputStream and InflaterInput/OutputStream should explain responsibility for freeing resources [v8]

2025-04-03 Thread Alan Bateman
On Thu, 3 Apr 2025 11:40:23 GMT, Jaikiran Pai wrote: >> Can I please get a review of this doc-only change which proposes to improve >> the API documentation of `DeflaterInputStream`, `DeflaterOutputStream`, >> `InflaterInputStream` and `InflaterOutputStream` classes? >> >> As noted in https://

Re: RFR: 8066583: DeflaterInput/OutputStream and InflaterInput/OutputStream should explain responsibility for freeing resources [v7]

2025-04-03 Thread Jaikiran Pai
On Tue, 1 Apr 2025 07:22:45 GMT, Jaikiran Pai wrote: >> Can I please get a review of this doc-only change which proposes to improve >> the API documentation of `DeflaterInputStream`, `DeflaterOutputStream`, >> `InflaterInputStream` and `InflaterOutputStream` classes? >> >> As noted in https://

Re: RFR: 8066583: DeflaterInput/OutputStream and InflaterInput/OutputStream should explain responsibility for freeing resources [v8]

2025-04-03 Thread Jaikiran Pai
> Can I please get a review of this doc-only change which proposes to improve > the API documentation of `DeflaterInputStream`, `DeflaterOutputStream`, > `InflaterInputStream` and `InflaterOutputStream` classes? > > As noted in https://bugs.openjdk.org/browse/JDK-8066583 some of the > construct

Re: RFR: 8353185: Introduce the concept of upgradeable files in context of JEP 493

2025-04-03 Thread Bernd
On Wed, 2 Apr 2025 18:39:57 GMT, Severin Gehwolf wrote: > For JEP 493-enabled builds there are no JMODs. Certain files come from the > installed JDK image when a user creates a custom run-time from it. This is > problematic for example for files that often come from a different package > (e.g.

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

2025-04-03 Thread Per Minborg
On Wed, 2 Apr 2025 14:58:35 GMT, Maurizio Cimadamore wrote: >> There are two fundamental variants. One with `CACHED_SIZE` (for list and int >> function) and one with `CACHED_KEYS` (for map and function). > > Yes - but they cache different things -- the first caches results for values > 0-9 --

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

2025-04-03 Thread Per-Ake Minborg
Hi Remi and thank you for the feedback from JChateau (what a wonderful name!). This is one of the issues we already have on the list for the next round of preview. Now we know more folks are on the same page. Best, Per From: Remi Forax Sent: Wednesday, April 2,

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

2025-04-03 Thread Per Minborg
> 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: Address comments - Changes: - all: https://git.openjdk.org/jdk/pull/23972/files - new: https://git.openjdk.org

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

2025-04-03 Thread Per Minborg
On Wed, 2 Apr 2025 14:30:05 GMT, Viktor Klang wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add info that Map#values and Map#entrySet are stable > > src/java.base/share/classes/java/lang/StableValue.java line 426:

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

2025-04-03 Thread Per Minborg
On Wed, 2 Apr 2025 18:42:06 GMT, Viktor Klang wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add info that Map#values and Map#entrySet are stable > > test/jdk/java/lang/StableValue/StableMapTest.java line 143: > >

Re: RFR: 8353185: Introduce the concept of upgradeable files in context of JEP 493

2025-04-03 Thread Severin Gehwolf
On Thu, 3 Apr 2025 09:46:38 GMT, Alan Bateman wrote: > Part of me is concerned that the hidden option is a bit of an attractive > nuisance. What would you think about just having a fixed list in a properties > file in the repo, thus a resource in the jlink module. This would avoid the > list i

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

2025-04-03 Thread Per Minborg
On Wed, 2 Apr 2025 18:33:39 GMT, Viktor Klang wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add info that Map#values and Map#entrySet are stable > > test/jdk/java/lang/StableValue/StableFunctionTest.java line 147:

Re: RFR: 8353185: Introduce the concept of upgradeable files in context of JEP 493

2025-04-03 Thread Alan Bateman
On Wed, 2 Apr 2025 18:39:57 GMT, Severin Gehwolf wrote: > For JEP 493-enabled builds there are no JMODs. Certain files come from the > installed JDK image when a user creates a custom run-time from it. This is > problematic for example for files that often come from a different package > (e.g.

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

2025-04-03 Thread Per Minborg
On Wed, 2 Apr 2025 18:33:22 GMT, Viktor Klang wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add info that Map#values and Map#entrySet are stable > > test/jdk/java/lang/StableValue/StableFunctionTest.java line 136:

Withdrawn: 8304674: AttachCurrentThread 's argument is JavaVMAttachArgs

2025-04-03 Thread tison
On Wed, 23 Oct 2024 06:06:43 GMT, tison wrote: > Try to add clear type annotations. > > Please let me know how this patch can be properly reviewed >_< This pull request has been closed without being integrated. - PR: https://git.openjdk.org/jdk/pull/21658

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

2025-04-03 Thread Per Minborg
On Wed, 2 Apr 2025 18:29:06 GMT, Viktor Klang wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add info that Map#values and Map#entrySet are stable > > test/jdk/java/lang/StableValue/StableFunctionTest.java line 86:

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

2025-04-03 Thread Per Minborg
On Wed, 2 Apr 2025 16:31:03 GMT, Viktor Klang wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add info that Map#values and Map#entrySet are stable > > src/java.base/share/classes/jdk/internal/lang/stable/StableValue

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

2025-04-03 Thread Per Minborg
On Wed, 2 Apr 2025 15:24:47 GMT, Viktor Klang wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add info that Map#values and Map#entrySet are stable > > src/java.base/share/classes/jdk/internal/lang/stable/StableEnumF

Re: RFR: 8304674: AttachCurrentThread 's argument is JavaVMAttachArgs

2025-04-03 Thread tison
On Wed, 23 Oct 2024 06:06:43 GMT, tison wrote: > Try to add clear type annotations. > > Please let me know how this patch can be properly reviewed >_< > _Mailing list message from [David Holmes](mailto:david.hol...@oracle.com) on > [core-libs-dev](mailto:core-libs-...@mail.openjdk.org):_ > >

Re: RFR: 8352935: Launcher should not add $JDK/../lib to LD_LIBRARY_PATH

2025-04-03 Thread Magnus Ihse Bursie
On Tue, 1 Apr 2025 09:13:45 GMT, Joachim Kern wrote: > In the JDK launcher, there is a codepath which would set/modify the > LD_LIBRARY_PATH. This happens unconditionally on AIX and Linux/musl and can > also happen on other Linux platforms if an LD_LIBRARY_PATH is pre-set which > contains a li

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

2025-04-03 Thread Per Minborg
On Wed, 2 Apr 2025 14:24:20 GMT, Viktor Klang wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add info that Map#values and Map#entrySet are stable > > src/java.base/share/classes/java/lang/StableValue.java line 377:

Re: RFR: 8349206: j.u.l.Handler classes create deadlock risk via synchronized publish() method [v13]

2025-04-03 Thread Daniel Fuchs
On Wed, 2 Apr 2025 21:59:32 GMT, David Beaumont wrote: >> 8349206: j.u.l.Handler classes create deadlock risk via synchronized >> publish() method. >> >> 1. Remove synchronization of calls to publish() in Handlers in >> java.util.logging package. >> 2. Add explanatory comments to various affec

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

2025-04-03 Thread Per Minborg
On Wed, 2 Apr 2025 14:25:45 GMT, Viktor Klang wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add info that Map#values and Map#entrySet are stable > > src/java.base/share/classes/java/lang/StableValue.java line 384:

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

2025-04-03 Thread Per Minborg
On Wed, 2 Apr 2025 14:24:04 GMT, Viktor Klang wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add info that Map#values and Map#entrySet are stable > > src/java.base/share/classes/java/lang/StableValue.java line 374:

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

2025-04-03 Thread Per Minborg
On Wed, 2 Apr 2025 21:37:25 GMT, Maurizio Cimadamore wrote: >> Or "observably immutable"? 🤔 > > or... "immutable" There is a problem here: If we say it is "immutable content" people might think that passing mutable data makes it immutable. If we say it is "shallowly immutable content" people

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

2025-04-03 Thread Per Minborg
> 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: Address doc comments - Changes: - all: https://git.openjdk.org/jdk/pull/23972/files - new: https://git.openjdk

Re: JDK-8352891 Performance improvements to ByteArrayOutputStream

2025-04-03 Thread Alan Bateman
On 02/04/2025 19:04, Engebretson, John wrote:   Apologies, human error – here’s the message I intended:   Thank you!  I’ve updated the PR accordingly and summarized the benchmarks in the description.  Here’s the short version: * For small payloads, unsynchronized and optimized versions are

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

2025-04-03 Thread Per Minborg
On Wed, 2 Apr 2025 09:26:52 GMT, Maurizio Cimadamore wrote: >> src/java.base/share/classes/java/lang/StableValue.java line 461: >> >>> 459: * An unset stable value has no content. >>> 460: * >>> 461: * The returned stable value is not {@link Serializable}. >> >> I find the clai

Re: RFR: 8352935: Launcher should not add $JDK/../lib to LD_LIBRARY_PATH

2025-04-03 Thread David Holmes
On Tue, 1 Apr 2025 09:13:45 GMT, Joachim Kern wrote: > In the JDK launcher, there is a codepath which would set/modify the > LD_LIBRARY_PATH. This happens unconditionally on AIX and Linux/musl and can > also happen on other Linux platforms if an LD_LIBRARY_PATH is pre-set which > contains a li

Re: RFR: 8353267: jmod create finds the wrong set of packages when class file are in non-package location

2025-04-03 Thread Henry Jen
On Tue, 1 Apr 2025 17:33:43 GMT, Alan Bateman wrote: > `jmod create` maps the contents of the module to a set of packages. This > mapping derives illegal package names when class resources are located in > non-package locations, e.g. in the META-INF tree. `jlink` also has an issue > in this ar