Re: RFR: 8303884: jlink --add-options plugin does not allow GNU style options to be provided

2024-12-04 Thread Yasumasa Suenaga
On Tue, 3 Dec 2024 19:59:56 GMT, Henry Jen wrote: > Improving option value handling to support passing argument value starts with > "--". > > Before the fix, in following example, --add-modules will be considered as > another option for JLink instead of argument value for --add-options. > --ad

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v5]

2024-12-04 Thread Jaikiran Pai
On Thu, 5 Dec 2024 04:38:04 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to address >> https://bugs.openjdk.org/browse/JDK-8341551? >> >> The primary work in this PR is the specification of the previously existing >> `sun.misc.URLClassPath.disableJarChec

Re: RFR: 8345403: Add more randomized tests to better cover FloatingDecimal parsing [v3]

2024-12-04 Thread Joe Darcy
On Wed, 4 Dec 2024 10:21:57 GMT, Raffaello Giulietti wrote: >> `jdk.internal.math.FloatingDecimal` parsing is mostly exercised on inputs >> produced by `Float.toString` and `Double.toString`, but should be extended >> on more random inputs. > > Raffaello Giulietti has updated the pull request

Re: RFR: 8316662: Remove one allocation per conversion in Double.toString(double) and Float.toString(float) [v2]

2024-12-04 Thread Chen Liang
On Fri, 29 Sep 2023 18:51:07 GMT, Shaojin Wen wrote: >> Raffaello Giulietti has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Uppercase JLA. > > src/java.base/share/classes/jdk/internal/math/FloatToDecimal.java line 508: > >> 506:

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v5]

2024-12-04 Thread Jaikiran Pai
> Can I please get a review of this change which proposes to address > https://bugs.openjdk.org/browse/JDK-8341551? > > The primary work in this PR is the specification of the previously existing > `sun.misc.URLClassPath.disableJarChecking` system property and how the > internal implementation

Re: RFR: 8342035: jlink plugins for setting java.vendor, java.vm.vendor and java.vendor.url [v5]

2024-12-04 Thread Henry Jen
> Add jlink plugins to allow branding change for java.vendor, java.vm.vendor > and java.vendor.url. > > The jlink plugin will change the value in java.lang.VersionProps, which will > set those property values. The `java.vm.vendor` was initialized by VM with > value set at build time, and then l

Re: RFR: 8309130: x86_64 AVX512 intrinsics for Arrays.sort methods (int, long, float and double arrays) [v42]

2024-12-04 Thread Paul Sandoz
On Sat, 23 Nov 2024 13:41:24 GMT, Piotr Tarsa wrote: > Could you add some code that disables the AVX512 version on Zen4, but keeps > it enabled on Zen5 and future Zen architectures? Or as you suggest [here](https://github.com/intel/x86-simd-sort/issues/6#issuecomment-2506476505) revert to AVX

Integrated: 8334319: Missing keys in jpackage resource bundle

2024-12-04 Thread Alexey Semenyuk
On Wed, 4 Dec 2024 03:38:59 GMT, Alexey Semenyuk wrote: > - Add missing resource keys to Windows property files; > - Fix the code to throw `ConfigException` if the service installer > executable is required but not available instead of throwing the exception > only when it is not found in the

Integrated: 8344461: Additional cleanup in NewThreadAction

2024-12-04 Thread Stuart Marks
On Wed, 4 Dec 2024 19:06:20 GMT, Stuart Marks wrote: > Convert the RMI NewThreadAction class into a couple static methods on > RuntimeUtil. Also remove a couple unnecessary qualified exports from > java.base to java.rmi. This pull request has now been integrated. Changeset: 8a3c100c Author:

Re: RFR: 8344461: Additional cleanup in NewThreadAction [v2]

2024-12-04 Thread Stuart Marks
On Wed, 4 Dec 2024 19:48:03 GMT, Roger Riggs wrote: >> Stuart Marks has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Make thread group fields final. > > src/java.rmi/share/classes/sun/rmi/runtime/RuntimeUtil.java line 60: > >> 58: *

Re: RFR: 8344461: Additional cleanup in NewThreadAction [v2]

2024-12-04 Thread Roger Riggs
On Wed, 4 Dec 2024 22:35:08 GMT, Stuart Marks wrote: >> Convert the RMI NewThreadAction class into a couple static methods on >> RuntimeUtil. Also remove a couple unnecessary qualified exports from >> java.base to java.rmi. > > Stuart Marks has updated the pull request incrementally with one ad

Re: RFR: 8344461: Additional cleanup in NewThreadAction [v2]

2024-12-04 Thread Stuart Marks
> Convert the RMI NewThreadAction class into a couple static methods on > RuntimeUtil. Also remove a couple unnecessary qualified exports from > java.base to java.rmi. Stuart Marks has updated the pull request incrementally with one additional commit since the last revision: Make thread grou

Integrated: 8340359: Remove javax.naming.Context.APPLET

2024-12-04 Thread Aleksei Efimov
On Tue, 3 Dec 2024 17:36:35 GMT, Aleksei Efimov wrote: > JNDI dependency on the `java.applet.Applet` has been removed in JDK9 with > [JDK-8051422](https://bugs.openjdk.org/browse/JDK-8051422). It made the > `Context.APPLET` environment property obsolete and to be ignored when > `javax.naming.I

Re: RFR: 8340359: Remove javax.naming.Context.APPLET

2024-12-04 Thread Chen Liang
It appears that skara is case-sensitive, and it treats the uppercase I as a regular comment instead of a bot command. From: core-libs-dev on behalf of Aleksei Efimov Sent: Wednesday, December 4, 2024 3:19 PM To: core-libs-dev@openjdk.org Subject: Re: RFR: 83403

Re: RFR: 8340359: Remove javax.naming.Context.APPLET

2024-12-04 Thread Aleksei Efimov
On Tue, 3 Dec 2024 17:36:35 GMT, Aleksei Efimov wrote: > JNDI dependency on the `java.applet.Applet` has been removed in JDK9 with > [JDK-8051422](https://bugs.openjdk.org/browse/JDK-8051422). It made the > `Context.APPLET` environment property obsolete and to be ignored when > `javax.naming.I

Integrated: 8341923: java.util.Locale class specification improvements

2024-12-04 Thread Justin Lu
On Mon, 18 Nov 2024 07:41:31 GMT, Justin Lu wrote: > Please review this PR and corresponding CSR which includes a wide range of > specification improvements for java.util.Locale. See the CSR for further > detail. Other changes/suggestions are welcomed to be included as part of this > change. >

Re: RFR: 8341923: java.util.Locale class specification improvements [v5]

2024-12-04 Thread Justin Lu
On Tue, 3 Dec 2024 02:29:16 GMT, Justin Lu wrote: >> Please review this PR and corresponding CSR which includes a wide range of >> specification improvements for java.util.Locale. See the CSR for further >> detail. Other changes/suggestions are welcomed to be included as part of >> this change

Re: RFR: 8343251: Facelift for Type and AnnotatedType specifications [v6]

2024-12-04 Thread Chen Liang
> The Type and AnnotatedType hierarchies have been enigmatic to new users: > users have no clue how to categorize arbitrary type objects, when it is safe > to cast to more specific types, and the exact conditions for method contracts. > > A manifest is [JDK-8306039](https://bugs.openjdk.org/brow

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v4]

2024-12-04 Thread Alan Bateman
On Wed, 4 Dec 2024 16:46:17 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to address >> https://bugs.openjdk.org/browse/JDK-8341551? >> >> The primary work in this PR is the specification of the previously existing >> `sun.misc.URLClassPath.disableJarChec

Integrated: 8333572: Update jpackage.md with info related to WiX v4 and v5 support

2024-12-04 Thread Alexey Semenyuk
On Wed, 4 Dec 2024 03:49:00 GMT, Alexey Semenyuk wrote: > 8333572: Update jpackage.md with info related to WiX v4 and v5 support This pull request has now been integrated. Changeset: 9740c1df Author:Alexey Semenyuk URL: https://git.openjdk.org/jdk/commit/9740c1df6f0469ae80f012dbaf43

Re: RFR: 8344461: Additional cleanup in NewThreadAction

2024-12-04 Thread Roger Riggs
On Wed, 4 Dec 2024 19:06:20 GMT, Stuart Marks wrote: > Convert the RMI NewThreadAction class into a couple static methods on > RuntimeUtil. Also remove a couple unnecessary qualified exports from > java.base to java.rmi. src/java.rmi/share/classes/sun/rmi/runtime/RuntimeUtil.java line 60: > 5

Re: RFR: 8333572: Update jpackage.md with info related to WiX v4 and v5 support

2024-12-04 Thread Alexander Matveev
On Wed, 4 Dec 2024 03:49:00 GMT, Alexey Semenyuk wrote: > 8333572: Update jpackage.md with info related to WiX v4 and v5 support Looks good. - Marked as reviewed by almatvee (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/22534#pullrequestreview-2479750211

Re: RFR: 8334319: Missing keys in jpackage resource bundle [v3]

2024-12-04 Thread Alexander Matveev
On Wed, 4 Dec 2024 17:52:59 GMT, Alexey Semenyuk wrote: >> - Add missing resource keys to Windows property files; >> - Fix the code to throw `ConfigException` if the service installer >> executable is required but not available instead of throwing the exception >> only when it is not found in

Re: RFR: 8344461: Additional cleanup in NewThreadAction

2024-12-04 Thread Stuart Marks
On Wed, 4 Dec 2024 19:23:47 GMT, Roger Riggs wrote: >> Convert the RMI NewThreadAction class into a couple static methods on >> RuntimeUtil. Also remove a couple unnecessary qualified exports from >> java.base to java.rmi. > > Looks good, thanks for the cleanup @RogerRiggs Thanks, I'll integra

Re: RFR: 8342035: jlink plugins for setting java.vendor, java.vm.vendor and java.vendor.url [v4]

2024-12-04 Thread Mandy Chung
On Wed, 4 Dec 2024 19:00:33 GMT, Henry Jen wrote: >> In fact, VM no longer sets this property. This should be updated to simply >> do `props.put`. > > It is just for compatibility with other VM implementation. We don't set the > property in hotspot with this PR. Is it part of the implementat

Re: RFR: 8344461: Additional cleanup in NewThreadAction

2024-12-04 Thread Roger Riggs
On Wed, 4 Dec 2024 19:06:20 GMT, Stuart Marks wrote: > Convert the RMI NewThreadAction class into a couple static methods on > RuntimeUtil. Also remove a couple unnecessary qualified exports from > java.base to java.rmi. Looks good, thanks for the cleanup - Marked as reviewed by

Re: RFR: 8345294: test/jdk/java/lang/Thread/virtual/RetryMonitorEnterWhenPinned.java timeout with JTREG_TEST_THREAD_FACTORY=Virtual [v3]

2024-12-04 Thread Doug Lea
> Accommodate compensations when checking for missed signals; add a better test > for this. Doug Lea 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 fi

Integrated: 8345502: Remove doIntersectionPrivilege methods

2024-12-04 Thread Sean Mullan
On Wed, 4 Dec 2024 15:40:03 GMT, Sean Mullan wrote: > The internal `ProtectionDomain.doIntersectionPrivilege` methods can be > removed as all dependencies have been removed in post JEP 486 cleanup issues. This pull request has now been integrated. Changeset: de3a218a Author:Sean Mullan UR

RFR: 8344461: Additional cleanup in NewThreadAction

2024-12-04 Thread Stuart Marks
Convert the RMI NewThreadAction class into a couple static methods on RuntimeUtil. Also remove a couple unnecessary qualified exports from java.base to java.rmi. - Commit messages: - 8344461: clean up NewThreadAction Changes: https://git.openjdk.org/jdk/pull/22557/files Webrev:

Re: RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v2]

2024-12-04 Thread Brian Burkhalter
On Wed, 4 Dec 2024 01:28:36 GMT, Taizo Kurashige wrote: >> To resolve java/io/File/GetXSpace.java failure, I fix libGetXSpace.c to use >> Cygwin’s `df` to get the size for comparison if the test target drive is a >> CD-ROM drive. >> >> As described in JDK-8343342, GetDiskSpaceInformationW can

Re: RFR: 8342035: jlink plugins for setting java.vendor, java.vm.vendor and java.vendor.url [v4]

2024-12-04 Thread Mandy Chung
On Wed, 4 Dec 2024 07:31:24 GMT, Henry Jen wrote: >> Add jlink plugins to allow branding change for java.vendor, java.vm.vendor >> and java.vendor.url. >> >> The jlink plugin will change the value in java.lang.VersionProps, which will >> set those property values. The `java.vm.vendor` was init

Re: RFR: 8342035: jlink plugins for setting java.vendor, java.vm.vendor and java.vendor.url [v4]

2024-12-04 Thread Henry Jen
On Wed, 4 Dec 2024 18:27:45 GMT, Mandy Chung wrote: >> src/java.base/share/classes/java/lang/VersionProps.java.template line 128: >> >>> 126: >>> 127: // In case VM is not yet set this property >>> 128: props.putIfAbsent("java.vm.vendor", VENDOR_VM); >> >> Can this system prope

Re: RFR: 8342035: jlink plugins for setting java.vendor, java.vm.vendor and java.vendor.url [v4]

2024-12-04 Thread Mandy Chung
On Wed, 4 Dec 2024 07:31:24 GMT, Henry Jen wrote: >> Add jlink plugins to allow branding change for java.vendor, java.vm.vendor >> and java.vendor.url. >> >> The jlink plugin will change the value in java.lang.VersionProps, which will >> set those property values. The `java.vm.vendor` was init

Re: RFR: 8345294: test/jdk/java/lang/Thread/virtual/RetryMonitorEnterWhenPinned.java timeout with JTREG_TEST_THREAD_FACTORY=Virtual [v2]

2024-12-04 Thread Doug Lea
> Accommodate compensations when checking for missed signals; add a better test > for this. Doug Lea 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 fo

Re: RFR: 8345294: test/jdk/java/lang/Thread/virtual/RetryMonitorEnterWhenPinned.java timeout with JTREG_TEST_THREAD_FACTORY=Virtual

2024-12-04 Thread Doug Lea
On Wed, 4 Dec 2024 16:05:02 GMT, Viktor Klang wrote: >> Accommodate compensations when checking for missed signals; add a better >> test for this. > > src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 2016: > >> 2014: return awaitWork(w, p); // block,

Re: RFR: 8342035: jlink plugins for setting java.vendor, java.vm.vendor and java.vendor.url [v4]

2024-12-04 Thread Mandy Chung
On Wed, 4 Dec 2024 07:31:24 GMT, Henry Jen wrote: >> Add jlink plugins to allow branding change for java.vendor, java.vm.vendor >> and java.vendor.url. >> >> The jlink plugin will change the value in java.lang.VersionProps, which will >> set those property values. The `java.vm.vendor` was init

Re: RFR: 8342469: Improve API documentation for java.lang.classfile.instruction [v6]

2024-12-04 Thread Chen Liang
> Improve the documentation for classfile instructions. Includes links to all > opcodes, usage notes for instructions, and other various fixes. > > API Diff: > https://cr.openjdk.org/~liach/apidiff/cf-instr/java.base/module-summary.html > Javadoc: > https://cr.openjdk.org/~liach/javadoc/cf-inst

Re: RFR: 8342035: jlink plugins for setting java.vendor, java.vm.vendor and java.vendor.url [v4]

2024-12-04 Thread Mandy Chung
On Wed, 4 Dec 2024 18:24:26 GMT, Mandy Chung wrote: >> Henry Jen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Clean up adapting review comments > > src/java.base/share/classes/java/lang/VersionProps.java.template line 128: > >> 126:

Re: RFR: 8344235: Revisit SecurityManager usage in java.logging after JEP 486 and JEP 491 integration [v2]

2024-12-04 Thread Andrey Turbanov
On Thu, 21 Nov 2024 10:24:28 GMT, Daniel Fuchs wrote: >> This PR remove usage of SecurityManager, doPrivileges, etc... from >> `java.logging` and `java.base/jdk.internal.logger` >> >> Only notable hack - Logger.checkPermission() no longer checks permissions, >> but has been renamed into `ensur

Re: RFR: 8342035: jlink plugins for setting java.vendor, java.vm.vendor and java.vendor.url [v4]

2024-12-04 Thread Mandy Chung
On Wed, 4 Dec 2024 07:31:24 GMT, Henry Jen wrote: >> Add jlink plugins to allow branding change for java.vendor, java.vm.vendor >> and java.vendor.url. >> >> The jlink plugin will change the value in java.lang.VersionProps, which will >> set those property values. The `java.vm.vendor` was init

Re: RFR: 8342035: jlink plugins for setting java.vendor, java.vm.vendor and java.vendor.url [v4]

2024-12-04 Thread Henry Jen
On Wed, 4 Dec 2024 18:03:42 GMT, Mandy Chung wrote: >> Henry Jen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Clean up adapting review comments > > make/autoconf/spec.gmk.template line 276: > >> 274: >> 275: ifneq ($(COMPANY_NAME),

Re: RFR: 8334319: Missing keys in jpackage resource bundle [v3]

2024-12-04 Thread Naoto Sato
On Wed, 4 Dec 2024 17:52:59 GMT, Alexey Semenyuk wrote: >> - Add missing resource keys to Windows property files; >> - Fix the code to throw `ConfigException` if the service installer >> executable is required but not available instead of throwing the exception >> only when it is not found in

Re: RFR: 8342035: jlink plugins for setting java.vendor, java.vm.vendor and java.vendor.url [v4]

2024-12-04 Thread Mandy Chung
On Wed, 4 Dec 2024 07:31:24 GMT, Henry Jen wrote: >> Add jlink plugins to allow branding change for java.vendor, java.vm.vendor >> and java.vendor.url. >> >> The jlink plugin will change the value in java.lang.VersionProps, which will >> set those property values. The `java.vm.vendor` was init

Re: RFR: 8342979: Start of release updates for JDK 25 [v9]

2024-12-04 Thread Joe Darcy
On Wed, 4 Dec 2024 17:49:16 GMT, Pavel Rappo wrote: >> Prepare for JDK 25. > > Pavel Rappo has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains 14 commits: > > - Merge branch 'master' into 8342979 > - Update --release 24 symbol inform

Re: Discussion: Interpretation of system property flags

2024-12-04 Thread Eirik Bjørsnøs
> > There are at least three issues at play here: > > a: Some flags use inconsistent, confusing, controversial or > less-than-perfect interpretations > b: Some flags use identical interpretations, yet their evaluation happens > in copy-pasted code spread across the code base > c: Some flags use ide

Re: RFR: 8334319: Missing keys in jpackage resource bundle [v2]

2024-12-04 Thread Alexey Semenyuk
On Wed, 4 Dec 2024 16:48:57 GMT, Naoto Sato wrote: >> Should I revert changes in `WinResources_*.properties` files? > > Yes, please. Done - PR Review Comment: https://git.openjdk.org/jdk/pull/22533#discussion_r1870021873

Re: RFR: 8334319: Missing keys in jpackage resource bundle [v3]

2024-12-04 Thread Alexey Semenyuk
> - Add missing resource keys to Windows property files; > - Fix the code to throw `ConfigException` if the service installer > executable is required but not available instead of throwing the exception > only when it is not found in the resource directory; > - Fix `JPackageStringBundle.getForm

Integrated: 8345486: Reevaluate the classes in java.lang.classfile.components package

2024-12-04 Thread Chen Liang
On Wed, 4 Dec 2024 14:23:07 GMT, Chen Liang wrote: > Over the years there have been significant rounds of cleanup to try and keep > the classfile API as focussed and true to its underlying functional core as > possible. One of the side-effects of such cleanups was to move higher-level > functi

Re: RFR: 8342979: Start of release updates for JDK 25 [v9]

2024-12-04 Thread Pavel Rappo
> Prepare for JDK 25. Pavel Rappo has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 14 commits: - Merge branch 'master' into 8342979 - Update --release 24 symbol information for JDK 24 build 26 The macOS/AArch64 build 26 was ta

Re: RFR: 8345219: C2: x86_64 should not go to interpreter stubs for NaNs handling

2024-12-04 Thread Aleksey Shipilev
On Wed, 4 Dec 2024 09:31:14 GMT, Emanuel Peter wrote: >> Found this while cleaning up x86_32 code for removal. >> >> In our current code there is a block added by >> [JDK-8076373](https://bugs.openjdk.org/browse/JDK-8076373): >> https://github.com/openjdk/jdk/blob/3b21a298c29d88720f6bfb2dc1f330

Re: Discussion: Interpretation of system property flags

2024-12-04 Thread Eirik Bjørsnøs
> > Practically, if we wanted to change such long standing behaviors > in order to align on a new consistent handling for all the boolean > properties. > There are at least three issues at play here: a: Some flags use inconsistent, confusing, controversial or less-than-perfect interpretations b:

Re: RFR: 8345486: Reevaluate the classes in java.lang.classfile.components package

2024-12-04 Thread Chen Liang
On Wed, 4 Dec 2024 14:23:07 GMT, Chen Liang wrote: > Over the years there have been significant rounds of cleanup to try and keep > the classfile API as focussed and true to its underlying functional core as > possible. One of the side-effects of such cleanups was to move higher-level > functi

Re: Discussion: Interpretation of system property flags

2024-12-04 Thread Daniel Fuchs
Hi Eirik, Yes, the situation we're in is far from perfect. I've never been a big fan of considering that an empty value means "true": if you're going to pass a System property, you can go the extra mile and supply its value too, which should make the intent uncontroversial. Note that not passing

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v2]

2024-12-04 Thread Eirik Bjørsnøs
On Wed, 4 Dec 2024 16:46:14 GMT, Eirik Bjørsnøs wrote: >> We're stuck with the property name for compatibility, and the usage within >> the class is fairly limited. >> Generally, it is easier to understand the behavior having a feature that is >> enabled not a disable that is disabled. >> $0.02

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v4]

2024-12-04 Thread Roger Riggs
On Wed, 4 Dec 2024 16:46:17 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to address >> https://bugs.openjdk.org/browse/JDK-8341551? >> >> The primary work in this PR is the specification of the previously existing >> `sun.misc.URLClassPath.disableJarChec

Re: RFR: 8334319: Missing keys in jpackage resource bundle [v2]

2024-12-04 Thread Naoto Sato
On Wed, 4 Dec 2024 16:46:13 GMT, Alexey Semenyuk wrote: >> src/jdk.jpackage/windows/classes/jdk/jpackage/internal/resources/WinResources_zh_CN.properties >> line 61: >> >>> 59: error.short-path-conv-fail=Failed to get short version of "{0}" path >>> 60: error.missing-service-installer='service-

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v2]

2024-12-04 Thread Eirik Bjørsnøs
On Wed, 4 Dec 2024 16:40:42 GMT, Roger Riggs wrote: >> Hello Eirik, I have received similar inputs in other places when discussing >> this change. I myself had to think a few times on which naming to follow >> here to make it easier to understand the code. I'll consider your and other >> input

Re: RFR: 8334319: Missing keys in jpackage resource bundle [v2]

2024-12-04 Thread Alexey Semenyuk
On Wed, 4 Dec 2024 16:40:17 GMT, Naoto Sato wrote: >> Alexey Semenyuk 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 two additional >> commits

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v3]

2024-12-04 Thread Jaikiran Pai
On Wed, 4 Dec 2024 16:35:09 GMT, Roger Riggs wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Lance's suggestion - better comment on the method > > src/java.base/share/classes/jdk/internal/loader/URLClassPath.java l

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v2]

2024-12-04 Thread Roger Riggs
On Wed, 4 Dec 2024 16:35:19 GMT, Jaikiran Pai wrote: >> src/java.base/share/classes/jdk/internal/loader/URLClassPath.java line 89: >> >>> 87: // JAR check is disabled by default and will be enabled only if >>> the "disable JAR check" >>> 88: // system property has been set to "f

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v4]

2024-12-04 Thread Jaikiran Pai
> Can I please get a review of this change which proposes to address > https://bugs.openjdk.org/browse/JDK-8341551? > > The primary work in this PR is the specification of the previously existing > `sun.misc.URLClassPath.disableJarChecking` system property and how the > internal implementation

Re: RFR: 8334319: Missing keys in jpackage resource bundle [v2]

2024-12-04 Thread Naoto Sato
On Wed, 4 Dec 2024 05:14:55 GMT, Alexey Semenyuk wrote: >> - Add missing resource keys to Windows property files; >> - Fix the code to throw `ConfigException` if the service installer >> executable is required but not available instead of throwing the exception >> only when it is not found in

Integrated: 8345219: C2: x86_64 should not go to interpreter stubs for NaNs handling

2024-12-04 Thread Aleksey Shipilev
On Thu, 28 Nov 2024 18:22:24 GMT, Aleksey Shipilev wrote: > Found this while cleaning up x86_32 code for removal. > > In our current code there is a block added by > [JDK-8076373](https://bugs.openjdk.org/browse/JDK-8076373): > https://github.com/openjdk/jdk/blob/3b21a298c29d88720f6bfb2dc1f3305

Re: RFR: 8345219: C2: x86_64 should not go to interpreter stubs for NaNs handling [v3]

2024-12-04 Thread Aleksey Shipilev
On Wed, 4 Dec 2024 09:42:59 GMT, Aleksey Shipilev wrote: >> Found this while cleaning up x86_32 code for removal. >> >> In our current code there is a block added by >> [JDK-8076373](https://bugs.openjdk.org/browse/JDK-8076373): >> https://github.com/openjdk/jdk/blob/3b21a298c29d88720f6bfb2dc1f

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v3]

2024-12-04 Thread Roger Riggs
On Wed, 4 Dec 2024 16:28:58 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to address >> https://bugs.openjdk.org/browse/JDK-8341551? >> >> The primary work in this PR is the specification of the previously existing >> `sun.misc.URLClassPath.disableJarChec

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v2]

2024-12-04 Thread Jaikiran Pai
On Wed, 4 Dec 2024 16:25:47 GMT, Eirik Bjørsnøs wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> improve code comment > > src/java.base/share/classes/jdk/internal/loader/URLClassPath.java line 89: > >> 87:

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v2]

2024-12-04 Thread Jaikiran Pai
On Wed, 4 Dec 2024 16:12:39 GMT, Lance Andersen wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> improve code comment > > src/java.base/share/classes/jdk/internal/loader/URLClassPath.java line 657: > >> 655:

Re: RFR: 8345502: Remove doIntersectionPrivilege methods [v3]

2024-12-04 Thread Weijun Wang
On Wed, 4 Dec 2024 16:24:55 GMT, Sean Mullan wrote: >> The internal `ProtectionDomain.doIntersectionPrivilege` methods can be >> removed as all dependencies have been removed in post JEP 486 cleanup issues. > > Sean Mullan has updated the pull request incrementally with one additional > commit

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v2]

2024-12-04 Thread Eirik Bjørsnøs
On Wed, 4 Dec 2024 15:46:28 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to address >> https://bugs.openjdk.org/browse/JDK-8341551? >> >> The primary work in this PR is the specification of the previously existing >> `sun.misc.URLClassPath.disableJarChec

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v3]

2024-12-04 Thread Jaikiran Pai
> Can I please get a review of this change which proposes to address > https://bugs.openjdk.org/browse/JDK-8341551? > > The primary work in this PR is the specification of the previously existing > `sun.misc.URLClassPath.disableJarChecking` system property and how the > internal implementation

Re: RFR: 8345219: C2: x86_64 should not go to interpreter stubs for NaNs handling [v3]

2024-12-04 Thread Emanuel Peter
On Wed, 4 Dec 2024 14:50:11 GMT, Aleksey Shipilev wrote: >> This fix looks correct by looking on original changes. >> >> Yes, special Interpreter's code for these methods is only generated for >> x86_32 in `templateInterpreterGenerator_x86_32.cpp`. > >> I just launched testing, I don't think @

Re: RFR: 8345502: Remove doIntersectionPrivilege methods [v3]

2024-12-04 Thread Sean Mullan
> The internal `ProtectionDomain.doIntersectionPrivilege` methods can be > removed as all dependencies have been removed in post JEP 486 cleanup issues. Sean Mullan has updated the pull request incrementally with one additional commit since the last revision: Add # to linkplain link. ---

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v2]

2024-12-04 Thread Daniel Fuchs
On Wed, 4 Dec 2024 15:58:41 GMT, Jaikiran Pai wrote: >> test/jdk/jdk/internal/loader/URLClassPath/JarCheckTest.java line 60: >> >>> 58: * @run junit/othervm -Dsun.misc.URLClassPath.disableJarChecking >>> JarCheckTest >>> 59: * @run junit/othervm -Dsun.misc.URLClassPath.disableJarChecking=true

Re: RFR: 8345486: Reevaluate the classes in java.lang.classfile.components package

2024-12-04 Thread Adam Sotona
On Wed, 4 Dec 2024 14:23:07 GMT, Chen Liang wrote: > Over the years there have been significant rounds of cleanup to try and keep > the classfile API as focussed and true to its underlying functional core as > possible. One of the side-effects of such cleanups was to move higher-level > functi

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v2]

2024-12-04 Thread Lance Andersen
On Wed, 4 Dec 2024 15:46:28 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to address >> https://bugs.openjdk.org/browse/JDK-8341551? >> >> The primary work in this PR is the specification of the previously existing >> `sun.misc.URLClassPath.disableJarChec

Re: RFR: 8345016: [ASAN] java.c false positive ‘%s’ directive argument is null [-Werror=format-truncation=] [v2]

2024-12-04 Thread SendaoYan
> Hi all, > The file src/java.base/share/native/libjli/java.c generate false positive > compile warning by gcc14 with gcc options `-fsanitize=undefined -O2`, and > make jdk build error when configure with option `--enable-asan`. So I think > it's necessory to disable the false positive compile

Re: RFR: 8345294: test/jdk/java/lang/Thread/virtual/RetryMonitorEnterWhenPinned.java timeout with JTREG_TEST_THREAD_FACTORY=Virtual

2024-12-04 Thread Viktor Klang
On Wed, 4 Dec 2024 14:03:58 GMT, Doug Lea wrote: > Accommodate compensations when checking for missed signals; add a better test > for this. src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 2016: > 2014: return awaitWork(w, p); // block, drop, or ex

Re: RFR: 8345219: C2: x86_64 should not go to interpreter stubs for NaNs handling [v3]

2024-12-04 Thread Emanuel Peter
On Wed, 4 Dec 2024 09:42:59 GMT, Aleksey Shipilev wrote: >> Found this while cleaning up x86_32 code for removal. >> >> In our current code there is a block added by >> [JDK-8076373](https://bugs.openjdk.org/browse/JDK-8076373): >> https://github.com/openjdk/jdk/blob/3b21a298c29d88720f6bfb2dc1f

Re: RFR: 8345502: Remove doIntersectionPrivilege methods

2024-12-04 Thread Sean Mullan
On Wed, 4 Dec 2024 15:53:37 GMT, Weijun Wang wrote: > I see in `SharedSecrets` these 2 imports are useless. Not sure if you want to > take this chance to remove them as well. > > ``` > import java.io.PrintStream; > import java.io.PrintWriter; > ``` Sure. Fixed. - PR Comment: http

Re: RFR: 8345502: Remove doIntersectionPrivilege methods [v2]

2024-12-04 Thread Sean Mullan
> The internal `ProtectionDomain.doIntersectionPrivilege` methods can be > removed as all dependencies have been removed in post JEP 486 cleanup issues. Sean Mullan has updated the pull request incrementally with one additional commit since the last revision: Remove unused imports. -

Re: RFR: 8345502: Remove doIntersectionPrivilege methods [v2]

2024-12-04 Thread Weijun Wang
On Wed, 4 Dec 2024 15:59:44 GMT, Sean Mullan wrote: >> The internal `ProtectionDomain.doIntersectionPrivilege` methods can be >> removed as all dependencies have been removed in post JEP 486 cleanup issues. > > Sean Mullan has updated the pull request incrementally with one additional > commit

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v2]

2024-12-04 Thread Jaikiran Pai
On Wed, 4 Dec 2024 14:53:19 GMT, Daniel Fuchs wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> improve code comment > > test/jdk/jdk/internal/loader/URLClassPath/JarCheckTest.java line 60: > >> 58: * @run junit/ot

Re: RFR: 8345502: Remove doIntersectionPrivilege methods

2024-12-04 Thread Weijun Wang
On Wed, 4 Dec 2024 15:40:03 GMT, Sean Mullan wrote: > The internal `ProtectionDomain.doIntersectionPrivilege` methods can be > removed as all dependencies have been removed in post JEP 486 cleanup issues. I see in `SharedSecrets` these 2 imports are useless. Not sure if you want to take this c

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v2]

2024-12-04 Thread Daniel Fuchs
On Wed, 4 Dec 2024 15:46:28 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to address >> https://bugs.openjdk.org/browse/JDK-8341551? >> >> The primary work in this PR is the specification of the previously existing >> `sun.misc.URLClassPath.disableJarChec

Re: RFR: 8345016: [ASAN] java.c false positive ‘%s’ directive argument is null [-Werror=format-truncation=]

2024-12-04 Thread SendaoYan
On Wed, 4 Dec 2024 15:40:21 GMT, Jaikiran Pai wrote: > Hello @sendaoYan, what exact version of `gcc` is this? Hi, the gcc version is gcc14.2.0 > gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/home/yansendao/software/gcc/gcc-14.2.0-binary/bin/../libexec/gcc/x86_64-pc-linux-gn

Re: RFR: 8345294: test/jdk/java/lang/Thread/virtual/RetryMonitorEnterWhenPinned.java timeout with JTREG_TEST_THREAD_FACTORY=Virtual

2024-12-04 Thread Viktor Klang
On Wed, 4 Dec 2024 14:03:58 GMT, Doug Lea wrote: > Accommodate compensations when checking for missed signals; add a better test > for this. Thanks for the fix, Doug, and thanks for the reproducer test, @AlanBateman! Having a look at the patch now 👍 - PR Comment: https://git.open

Re: RFR: 8341551: Revisit jdk.internal.loader.URLClassPath.JarLoader after JEP 486 [v2]

2024-12-04 Thread Jaikiran Pai
> Can I please get a review of this change which proposes to address > https://bugs.openjdk.org/browse/JDK-8341551? > > The primary work in this PR is the specification of the previously existing > `sun.misc.URLClassPath.disableJarChecking` system property and how the > internal implementation

RFR: 8345502: Remove doIntersectionPrivilege methods

2024-12-04 Thread Sean Mullan
The internal `ProtectionDomain.doIntersectionPrivilege` methods can be removed as all dependencies have been removed in post JEP 486 cleanup issues. - Commit messages: - Initial cleanup. Changes: https://git.openjdk.org/jdk/pull/22548/files Webrev: https://webrevs.openjdk.org/?re

Re: RFR: 8345016: [ASAN] java.c false positive ‘%s’ directive argument is null [-Werror=format-truncation=]

2024-12-04 Thread Jaikiran Pai
On Wed, 4 Dec 2024 14:57:22 GMT, SendaoYan wrote: > Hi all, > The file src/java.base/share/native/libjli/java.c generate false positive > compile warning by gcc14 with gcc options `-fsanitize=undefined -O2`, and > make jdk build error when configure with option `--enable-asan`. So I think > i

Re: RFR: 8345294: test/jdk/java/lang/Thread/virtual/RetryMonitorEnterWhenPinned.java timeout with JTREG_TEST_THREAD_FACTORY=Virtual

2024-12-04 Thread Viktor Klang
On Wed, 4 Dec 2024 14:03:58 GMT, Doug Lea wrote: > Accommodate compensations when checking for missed signals; add a better test > for this. test/jdk/java/lang/Thread/virtual/Starvation.java line 1: > 1: /* @test Suggestion: /* * Copyright (c) 2024, Oracle and/or its affiliates. All rights

Re: RFR: 8345219: C2: x86_64 should not go to interpreter stubs for NaNs handling [v3]

2024-12-04 Thread Emanuel Peter
On Wed, 4 Dec 2024 14:48:55 GMT, Aleksey Shipilev wrote: >> test/hotspot/jtreg/compiler/c2/irTests/TestFPConversion.java line 33: >> >>> 31: * @summary Test that code generation for FP conversion works as >>> intended >>> 32: * @library /test/lib / >>> 33: * @requires os.arch != "x86" & os.a

Re: Discussion: Interpretation of system property flags

2024-12-04 Thread Roger Riggs
Hi Eirik, Yes, its a long standing and inconsistent area of deferred maintenance. Most of the individual cases are not used enough to warrant making the (in many cases) incompatible change and breaking some application/library somewhere. Interesting, you did not mention Boolean.getBoolean(Str

RFR: 8345016: [ASAN] java.c false positive ‘%s’ directive argument is null [-Werror=format-truncation=]

2024-12-04 Thread SendaoYan
Hi all, The file src/java.base/share/native/libjli/java.c generate false positive compile warning by gcc14 with gcc options `-fsanitize=undefined -O2`, and make jdk build error when configure with option `--enable-asan`. So I think it's necessory to disable the false positive compile warning to

Re: RFR: 8345465: Fix performance regression on x64 after JDK-8345120 [v2]

2024-12-04 Thread Per Minborg
> This PR proposes to fix a performance regression (on x64 platforms) for > 32-bit strings introduced by > [JDK-8345120](https://bugs.openjdk.org/browse/JDK-8345120). > > The PR also fixes a performance regression in the benchmarks caused by using > the wrong type for `MemorySegment`. > > Regr

Re: RFR: 8345219: C2: x86_64 should not go to interpreter stubs for NaNs handling [v3]

2024-12-04 Thread Aleksey Shipilev
On Wed, 4 Dec 2024 14:06:38 GMT, Emanuel Peter wrote: >> Aleksey Shipilev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Disable IR tests on IA32 > > test/hotspot/jtreg/compiler/c2/irTests/TestFPConversion.java line 33: > >> 31: * @su

Re: RFR: 8341402: BigDecimal's square root optimization [v31]

2024-12-04 Thread fabioromano1
> After changing `BigInteger.sqrt()` algorithm, this can be also used to speed > up `BigDecimal.sqrt()` implementation. Here is how I made it. > > The main steps of the algorithm are as follows: > first argument reduce the value to an integer using the following relations: > > x = y * 10 ^ exp >

Re: RFR: 8345219: C2: x86_64 should not go to interpreter stubs for NaNs handling [v3]

2024-12-04 Thread Aleksey Shipilev
On Tue, 3 Dec 2024 03:10:51 GMT, Vladimir Kozlov wrote: >> Aleksey Shipilev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Disable IR tests on IA32 > > This fix looks correct by looking on original changes. > > Yes, special Interprete

Discussion: Interpretation of system property flags

2024-12-04 Thread Eirik Bjørsnøs
Hi, The OpenJDK includes many boolean flags in the form of system properties. These toggle different behavior such as debug logging, verification, caching, compatibility and conditional features. A common interpretation is to evaluate a property as true if it is set and either blank or equal to "

Re: RFR: 8345486: Reevaluate the classes in java.lang.classfile.components package

2024-12-04 Thread Maurizio Cimadamore
On Wed, 4 Dec 2024 14:23:07 GMT, Chen Liang wrote: > Over the years there have been significant rounds of cleanup to try and keep > the classfile API as focussed and true to its underlying functional core as > possible. One of the side-effects of such cleanups was to move higher-level > functi

RFR: 8345486: Reevaluate the classes in java.lang.classfile.components package

2024-12-04 Thread Chen Liang
Over the years there have been significant rounds of cleanup to try and keep the classfile API as focussed and true to its underlying functional core as possible. One of the side-effects of such cleanups was to move higher-level functionalities from the root classfile API package `java.lang.clas

  1   2   >