Re: [External] : Re: Question about Streams, Gatherers, and fetching too many elements

2024-11-19 Thread David Alayachew
Poking the thread in case you are able to answer my previous question Viktor. Also, another question -- I posted this thread to Reddit, and some good discussion has already started. Can you or someone else answer some of the questions that have popped up there? https://old.reddit.com/r/java/comme

Re: RFR: 8340133: Add concise usage message to the java executable [v9]

2024-11-19 Thread Jan Lahoda
On Mon, 18 Nov 2024 21:05:41 GMT, Magnus Ihse Bursie wrote: > I think it makes sense to include the version. I have no strong opinions on > the format. Is the extract in the PR description updated with the latest > version changes? Yes, the description is updated with the output, and I've also

Re: RFR: 8343704: Bad GC parallelism with processing Cleaner queues [v10]

2024-11-19 Thread Aleksey Shipilev
On Sat, 16 Nov 2024 00:03:18 GMT, Brent Christian wrote: >> Aleksey Shipilev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> prev is not needed > > src/java.base/share/classes/jdk/internal/ref/CleanerImpl.java line 239: > >> 237:

Re: RFR: 8343704: Bad GC parallelism with processing Cleaner queues [v11]

2024-11-19 Thread Aleksey Shipilev
On Tue, 19 Nov 2024 00:58:18 GMT, Brent Christian wrote: >> Aleksey Shipilev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Drop --add-exports from the test > > test/jdk/jdk/internal/ref/Cleaner/CleanableListTest.java line 46: > >> 44:

Re: RFR: 8344077: Remove security manager dependency in java.io [v3]

2024-11-19 Thread Alan Bateman
On Mon, 18 Nov 2024 21:56:12 GMT, Brian Burkhalter wrote: >> Expunge the use of the `SecurityManager`, `AccessController`, and the like >> from the `java.io` package. > > Brian Burkhalter has updated the pull request incrementally with one > additional commit since the last revision: > > 834

RFR: 8344534: Remove leftover import of java.security.AccessControlContext in JavaLangAccess

2024-11-19 Thread Eirik Bjørsnøs
Please review this trivial cleanup of an unused import of `AccessControlContext ` in `JavaLangAccess`. This was left over after #22035 removed `JavaLangAccess::newThreadWithAcc(Runnable, AccessControlContext)`. Verification: `make images` succeeds. - Commit messages: - Remove le

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

2024-11-19 Thread Adam Sotona
On Mon, 18 Nov 2024 02:58:31 GMT, Chen Liang wrote: >> 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

Re: RFR: 8293040: Argfile documentation for java launcher tool is confusing regarding usage of wildcards

2024-11-19 Thread Christian Stein
On Mon, 18 Nov 2024 15:22:59 GMT, Christian Stein wrote: > Please review this improvement to the manual page covering the usage of > wildcards in `java`'s argfiles. > [...] I think this sentence can be removed altogether, given that this > semantic is already explained a few sentences above by

Re: RFR: 8343704: Bad GC parallelism with processing Cleaner queues [v12]

2024-11-19 Thread Aleksey Shipilev
> See the bug for more discussion and reproducer. This PR replaces the ad-hoc > linked list with segmented list of arrays. Arrays are easy targets for GC. > There are possible improvements here, most glaring is parallelism that is > currently knee-capped by global synchronization. The synchroniz

RFR: 8344223: Remove calls to SecurityManager and doPrivileged in java.net.URLClassLoader after JEP 486 integration

2024-11-19 Thread Jaikiran Pai
Can I please get a review of this change which proposes to remove SecurityManager related API usages from `URLClassLoader` and its related `URLClassPath`? This addresses https://bugs.openjdk.org/browse/JDK-8344223. The `URLClassLoader.getPermissions()` method will need additional changes but th

Re: RFR: 8344223: Remove calls to SecurityManager and doPrivileged in java.net.URLClassLoader after JEP 486 integration [v2]

2024-11-19 Thread Jaikiran Pai
> Can I please get a review of this change which proposes to remove > SecurityManager related API usages from `URLClassLoader` and its related > `URLClassPath`? This addresses https://bugs.openjdk.org/browse/JDK-8344223. > > The `URLClassLoader.getPermissions()` method will need additional chang

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

2024-11-19 Thread Adam Sotona
On Mon, 18 Nov 2024 02:58:31 GMT, Chen Liang wrote: >> 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

Re: RFR: 8340133: Add concise usage message to the java executable [v7]

2024-11-19 Thread Jaikiran Pai
On Tue, 12 Nov 2024 15:30:23 GMT, Alan Bateman wrote: >> `shortVersionString` changed to `conciseVersionString` in: >> https://github.com/openjdk/jdk/pull/21411/commits/e9e9ad4bdd0a11244cb1ef84fdeea036e94718c7 > >> The idea behind printing the short version is to identify what tool is >> speakin

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

2024-11-19 Thread Raffaello Giulietti
On Mon, 18 Nov 2024 14:21:29 GMT, Raffaello Giulietti wrote: >> src/java.base/share/classes/java/math/BigDecimal.java line 2248: >> >>> 2246: } >>> 2247: } >>> 2248: } else { // mc.roundingMode == RoundingMode.UP || >>> mc

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

2024-11-19 Thread Adam Sotona
On Mon, 18 Nov 2024 02:58:31 GMT, Chen Liang wrote: >> 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

Re: RFR: 8344534: Remove leftover import of java.security.AccessControlContext in JavaLangAccess

2024-11-19 Thread Eirik Bjørsnøs
On Tue, 19 Nov 2024 11:54:41 GMT, Alan Bateman wrote: > Okay but hardly worth doing as JLA is changed very frequently so any unused > imports will be quickly removed. Thanks Alan. I'll go ahead and integrate this now, but I'm taking note of your point for any future changes in similar contexts

Integrated: 8336087: Doccheck: the jpackage command page doesn't show the correct command-line options

2024-11-19 Thread Alexey Semenyuk
On Mon, 18 Nov 2024 13:21:25 GMT, Alexey Semenyuk wrote: > Simple typo fix. > > Old view: > https://github.com/openjdk/jdk/blob/dfddbcaab886b9baa731cd748bb7f547e1903b64/src/jdk.jpackage/share/man/jpackage.md > > New view: > https://github.com/alexeysemenyukoracle/jdk/blob/JDK-8336087/src/jdk.

Integrated: 8344415: Restruct jpackage utility classes

2024-11-19 Thread Alexey Semenyuk
On Mon, 18 Nov 2024 18:31:09 GMT, Alexey Semenyuk wrote: > Move child classes of "jdk.jpackage.test.Functional" class to > "jdk.jpackage.internal.util.function" package. > Split "jdk.jpackage.internal.IOUtils" class in "PathUtils", "FileUtils", > "XmlUtils" classes in "jdk.jpackage.internal.uti

Integrated: 8344322: Improve capabilities of jpackage test lib to validate error output of jpackage

2024-11-19 Thread Alexey Semenyuk
On Mon, 18 Nov 2024 13:41:49 GMT, Alexey Semenyuk wrote: > Support using jpackage l10n keys instead of string values when examining > jpackage error output. This pull request has now been integrated. Changeset: 0714114f Author:Alexey Semenyuk URL: https://git.openjdk.org/jdk/commit

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

2024-11-19 Thread Raffaello Giulietti
On Tue, 19 Nov 2024 14:44:40 GMT, fabioromano1 wrote: >> 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 i

Re: RFR: 8343704: Bad GC parallelism with processing Cleaner queues [v12]

2024-11-19 Thread Roger Riggs
On Tue, 19 Nov 2024 08:09:38 GMT, Aleksey Shipilev wrote: >> See the bug for more discussion and reproducer. This PR replaces the ad-hoc >> linked list with segmented list of arrays. Arrays are easy targets for GC. >> There are possible improvements here, most glaring is parallelism that is >>

Re: RFR: 8336707: Contention of ForkJoinPool grows when stealing works [v29]

2024-11-19 Thread Doug Lea
On Tue, 19 Nov 2024 16:52:44 GMT, Viktor Klang wrote: >> Doug Lea has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Ensure InnocuousForkJoinWorkerThread usable with or without SecurityManager > > src/java.base/share/classes/java/util/concu

Re: RFR: 8289771: jpackage: ResourceEditor error when path is overly long on Windows [v2]

2024-11-19 Thread Alexey Semenyuk
> Fix `ResourceEditor` class to handle long paths. > > Based on https://github.com/openjdk/jdk/pull/9384 PR. > > This repairs app image building on Windows if the path to jpackage temp > directory exceeds 260 (`MAX_PATH`) characters. MSI building is still broken > and can NOT be repaired due to

Re: RFR: 8343377: Performance regression in reflective invocation of native methods

2024-11-19 Thread Chen Liang
On Tue, 19 Nov 2024 16:45:47 GMT, Hannes Greule wrote: >> In fact, another solution I have contemplated is to update >> `JavaLangInvokeAccess` implementations. 4 methods in it, >> `unreflectConstructor`, `unreflectField`, `findVirtual`, and `findStatic`, >> are exclusively used by core reflect

Re: RFR: 8344337: SecurityManager cleanup in java.prefs moduleRemove SecMgr, etc usage from java.prefs

2024-11-19 Thread Roger Riggs
On Tue, 19 Nov 2024 18:52:59 GMT, Brent Christian wrote: > Remove usages of SecurityManager, doPrivildged, and AccessController from the > java.prefs module. src/java.prefs/share/classes/java/util/prefs/Preferences.java line 248: > 246: } > 247: } > 248: return fact

Re: RFR: 8339480: Build static-jdk image with a statically linked launcher [v17]

2024-11-19 Thread Erik Joelsson
On Mon, 18 Nov 2024 15:12:12 GMT, Magnus Ihse Bursie wrote: >> As a prerequisite for Hermetic Java, we need a statically linked `java` >> launcher. It should behave like the normal, dynamically linked `java` >> launcher, except that all JDK native libraries should be statically, not >> dynamic

RFR: 8344248: Remove Security Manager dependencies from java.security.jgss and jdk.security.jgss modules

2024-11-19 Thread Sean Mullan
Now that JEP 486 has been integrated, `java.security.jgss` and `jdk.security.jgss` module dependencies on `System.getSecurityManager` and `AccessController.doPrivileged*` can be removed. There is an undocumented property named "sun.security.krb5.autodeducerealm" that can probably be removed as

Re: RFR: 8342103: C2 compiler support for Float16 type and associated operations

2024-11-19 Thread Paul Sandoz
On Mon, 14 Oct 2024 11:40:01 GMT, Jatin Bhateja wrote: > Hi All, > > This patch adds C2 compiler support for various Float16 operations added by > [PR#22128](https://github.com/openjdk/jdk/pull/22128) > > Following is the summary of changes included with this patch:- > > 1. Detection of vario

Re: RFR: 8342103: C2 compiler support for Float16 type and associated operations

2024-11-19 Thread Jatin Bhateja
On Mon, 14 Oct 2024 15:32:41 GMT, Bhavana Kilambi wrote: > Hi Jatin, could you also include the idealization tests here - > test/hotspot/jtreg/compiler/c2/irTests/MulHFNodeIdealizationTests.java and > ConvF2HFIdealizationTests.java in this PR? Hi @Bhavana-Kilambi , I am in process of refining

Re: RFR: 8344248: Remove Security Manager dependencies from java.security.jgss and jdk.security.jgss modules

2024-11-19 Thread Sean Mullan
On Tue, 19 Nov 2024 20:43:25 GMT, Sean Mullan wrote: > Now that JEP 486 has been integrated, `java.security.jgss` and > `jdk.security.jgss` module dependencies on `System.getSecurityManager` and > `AccessController.doPrivileged*` can be removed. > > There is an undocumented property named "sun

Re: RFR: 8336707: Contention of ForkJoinPool grows when stealing works [v29]

2024-11-19 Thread Doug Lea
On Tue, 19 Nov 2024 16:54:04 GMT, Viktor Klang wrote: >> Doug Lea has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Ensure InnocuousForkJoinWorkerThread usable with or without SecurityManager > > src/java.base/share/classes/java/util/concu

Re: RFR: 8344337: SecurityManager cleanup in java.prefs moduleRemove SecMgr, etc usage from java.prefs

2024-11-19 Thread Brent Christian
On Tue, 19 Nov 2024 18:52:59 GMT, Brent Christian wrote: > Remove usages of SecurityManager, doPrivildged, and AccessController from the > java.prefs module. src/java.prefs/share/classes/java/util/prefs/Preferences.java line 40: > 38: import java.util.ServiceConfigurationError; > 39: > 40: //

RFR: 8344587: Reduce number of "jdk.jpackage.internal" classes used from other packages

2024-11-19 Thread Alexey Semenyuk
Stop using internal AppImageFile, ApplicationLayout, and PackageFile classes in the tests. Replace them with stubs. Stop referencing IOUtils class from XmlUtils and PathUtils classes. - Commit messages: - Minor improvements - Make IOUtils class package-private - Bugfix & cleanup

Re: RFR: 8344223: Remove calls to SecurityManager and doPrivileged in java.net.URLClassLoader after JEP 486 integration [v3]

2024-11-19 Thread Jaikiran Pai
On Tue, 19 Nov 2024 12:54:18 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to remove >> SecurityManager related API usages from `URLClassLoader` and its related >> `URLClassPath`? This addresses https://bugs.openjdk.org/browse/JDK-8344223. >> >> The `URLCl

RFR: 8344550: Compilation error of jpackage test JPackageStringBundle.java source

2024-11-19 Thread Alexey Semenyuk
Bad merge fix - Commit messages: - 8344550: Compilation error of jpackage test JPackageStringBundle.java source Changes: https://git.openjdk.org/jdk/pull/22241/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22241&range=00 Issue: https://bugs.openjdk.org/browse/JDK-834455

Re: RFR: 8343478: Remove unnecessary @SuppressWarnings annotations (core-libs) [v7]

2024-11-19 Thread Archie Cobbs
> Please review this patch which removes unnecessary `@SuppressWarnings` > annotations. Archie Cobbs has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 13 commits: - Remove more unnecessary @SuppressWarnings annotations. - Merge branc

Re: RFR: 8342103: C2 compiler support for Float16 type and associated operations

2024-11-19 Thread Jatin Bhateja
On Tue, 19 Nov 2024 12:41:46 GMT, Sandhya Viswanathan wrote: >> ISA supports multiple flavors, the current scheme is in line with the wiring >> of inputs done before matching. > > You could save some reg/reg movs with 231 flavor. It will depend on the live ranges of the three inputs.

Integrated: 8344550: Compilation error of jpackage test JPackageStringBundle.java source

2024-11-19 Thread Alexey Semenyuk
On Tue, 19 Nov 2024 15:50:07 GMT, Alexey Semenyuk wrote: > Bad merge fix This pull request has now been integrated. Changeset: 7f672eb2 Author:Alexey Semenyuk URL: https://git.openjdk.org/jdk/commit/7f672eb266b76a9310dcf108f72adf2469e63dee Stats: 3 lines in 1 file changed: 1 ins

Re: RFR: 8344337: SecurityManager cleanup in java.prefs moduleRemove SecMgr, etc usage from java.prefs

2024-11-19 Thread Lance Andersen
On Tue, 19 Nov 2024 18:52:59 GMT, Brent Christian wrote: > Remove usages of SecurityManager, doPrivildged, and AccessController from the > java.prefs module. Hi Brent, There looks to be a lot of commented out code that should be removed as part of your PR? src/java.prefs/unix/classes/java/ut

Re: RFR: 8338536: Permanently disable remote code downloading in JNDI [v3]

2024-11-19 Thread Daniel Fuchs
On Tue, 19 Nov 2024 19:22:44 GMT, Aleksei Efimov wrote: >> This PR permanently disable remote code downloading in JNDI/LDAP and >> JNDI/RMI JDK providers, and contains the following changes: >> - The following two properties are removed: >> - `com.sun.jndi.ldap.object.trustURLCodebase` >>

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v5]

2024-11-19 Thread Stuart Marks
On Fri, 15 Nov 2024 12:17:47 GMT, Lance Andersen wrote: >> Stuart in one of his review comments in this PR had noted that: >> >>> I think the class specification needs to be clearer about the positioning >>> of end() and close(). The end() method has done the real work of "closing" >>> since t

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v7]

2024-11-19 Thread Stuart Marks
On Fri, 15 Nov 2024 11:15:28 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> prop

Re: RFR: 8342103: C2 compiler support for Float16 type and associated operations

2024-11-19 Thread Bhavana Kilambi
On Mon, 14 Oct 2024 11:40:01 GMT, Jatin Bhateja wrote: > Hi All, > > This patch adds C2 compiler support for various Float16 operations added by > [PR#22128](https://github.com/openjdk/jdk/pull/22128) > > Following is the summary of changes included with this patch:- > > 1. Detection of vario

RFR: 8289771: jpackage: ResourceEditor error when path is overly long on Windows

2024-11-19 Thread Alexey Semenyuk
Fix `ResourceEditor` class to handle long paths. Based on https://github.com/openjdk/jdk/pull/9384 PR. This repairs app image building on Windows if the path to jpackage temp directory exceeds 260 (`MAX_PATH`) characters. MSI building is still broken and can NOT be repaired due to WiX's limitat

Re: RFR: 8289771: jpackage: ResourceEditor error when path is overly long on Windows

2024-11-19 Thread Alexey Semenyuk
On Thu, 14 Nov 2024 04:40:37 GMT, Alexey Semenyuk wrote: > Fix `ResourceEditor` class to handle long paths. > > Based on https://github.com/openjdk/jdk/pull/9384 PR. > > This repairs app image building on Windows if the path to jpackage temp > directory exceeds 260 (`MAX_PATH`) characters. MSI

Re: RFR: 8338536: Permanently disable remote code downloading in JNDI [v3]

2024-11-19 Thread Roger Riggs
On Tue, 19 Nov 2024 19:22:44 GMT, Aleksei Efimov wrote: >> This PR permanently disable remote code downloading in JNDI/LDAP and >> JNDI/RMI JDK providers, and contains the following changes: >> - The following two properties are removed: >> - `com.sun.jndi.ldap.object.trustURLCodebase` >>

Re: RFR: 8289771: jpackage: ResourceEditor error when path is overly long on Windows [v3]

2024-11-19 Thread Alexey Semenyuk
> Fix `ResourceEditor` class to handle long paths. > > Based on https://github.com/openjdk/jdk/pull/9384 PR. > > This repairs app image building on Windows if the path to jpackage temp > directory exceeds 260 (`MAX_PATH`) characters. MSI building is still broken > and can NOT be repaired due to

Re: RFR: 8341137: Optimize long vector multiplication using x86 VPMUL[U]DQ instruction [v5]

2024-11-19 Thread Sandhya Viswanathan
On Thu, 14 Nov 2024 18:24:59 GMT, Jatin Bhateja wrote: >> This patch optimizes LongVector multiplication by inferring VPMUL[U]DQ >> instruction for following IR pallets. >> >> >>MulVL ( AndV SRC1, 0x) ( AndV SRC2, 0x) >>MulVL (URShiftVL SRC1 , 32) (

Re: RFR: 8331735: UpcallLinker::on_exit races with GC when copying frame anchor

2024-11-19 Thread Jorn Vernee
On Tue, 19 Nov 2024 06:47:17 GMT, David Holmes wrote: > I wonder if we can assert we are in a safepoint-safe state when doing so? I think we can do this. I've prototyped this here: https://github.com/openjdk/jdk/compare/pr/21742...JornVernee:jdk:SafeFrameAnchor+assert This catches the issue fi

Re: RFR: 8344223: Remove calls to SecurityManager and doPrivileged in java.net.URLClassLoader after JEP 486 integration [v2]

2024-11-19 Thread Alan Bateman
On Tue, 19 Nov 2024 10:48:25 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to remove >> SecurityManager related API usages from `URLClassLoader` and its related >> `URLClassPath`? This addresses https://bugs.openjdk.org/browse/JDK-8344223. >> >> The `URLCl

RFR: 8344540: Remove superseded wildcard description from java manpage

2024-11-19 Thread Christian Stein
Please review this follow-up PR to improve `java`'s manpage section about wildcards in argument files: the confusing sentence is now removed. This is a cleanup of commit https://github.com/openjdk/jdk/commit/5cb0d438231383d491b2fcca455d09af7f2ee016 - Commit messages: - 8344540: Re

Re: RFR: 8344223: Remove calls to SecurityManager and doPrivileged in java.net.URLClassLoader after JEP 486 integration [v2]

2024-11-19 Thread Alan Bateman
On Tue, 19 Nov 2024 12:42:18 GMT, Jaikiran Pai wrote: >> The new comment isn't quite right, it should say "concat the URLs to the >> resource in the modules and the class path". > >> concat the URLs to the resource in the modules and the class path > > Did you mean "concat the URLs of the "

Re: RFR: 8336881: [Linux] Support for hierarchical limits for Metrics [v13]

2024-11-19 Thread Severin Gehwolf
> Please review this fix for cgroups-based metrics reporting in the > `jdk.internal.platform` package. This fix is supposed to address wrong > reporting of certain limits if the limits aren't set at the leaf nodes. > > For example, on cg v2, the memory limit interface file is `memory.max`. > Co

Re: RFR: 8336707: Contention of ForkJoinPool grows when stealing works [v29]

2024-11-19 Thread Viktor Klang
On Sun, 17 Nov 2024 15:33:02 GMT, Doug Lea wrote: >> This addresses tendencies in previous update to increase fencing, scanning, >> and signalling that can increase contention, and slow down performance >> especially on ARM platforms. It also uses more ARM-friendly constructions to >> reduce o

Re: RFR: 8343377: Performance regression in reflective invocation of native methods

2024-11-19 Thread Hannes Greule
On Fri, 15 Nov 2024 22:17:10 GMT, Chen Liang wrote: > When core reflection was migrated to be implemented by Method Handles, > somehow, the method handles are not used for native methods, which are > generally linkable by method handles. This causes significant performance > regressions when

Re: RFR: 8333796: Add missing serialization functionality to sun.reflect.ReflectionFactory [v11]

2024-11-19 Thread Chen Liang
On Thu, 14 Nov 2024 15:10:37 GMT, David M. Lloyd wrote: >> Issue [JDK-8164908](https://bugs.openjdk.org/browse/JDK-8164908) added >> support for functionality required to continue to support IIOP and custom >> serializers in light of additional module-based restrictions on reflection. >> It wa

Re: RFR: 8344337: SecurityManager cleanup in java.prefs moduleRemove SecMgr, etc usage from java.prefs

2024-11-19 Thread Sean Mullan
On Tue, 19 Nov 2024 18:52:59 GMT, Brent Christian wrote: > Remove usages of SecurityManager, doPrivildged, and AccessController from the > java.prefs module. src/java.prefs/share/classes/java/util/prefs/AbstractPreferences.java line 1059: > 1057: * preference tree. > 1058: */

Re: RFR: 8342103: C2 compiler support for Float16 type and associated operations

2024-11-19 Thread Jatin Bhateja
On Mon, 14 Oct 2024 11:40:01 GMT, Jatin Bhateja wrote: > Hi All, > > This patch adds C2 compiler support for various Float16 operations added by > [PR#22128](https://github.com/openjdk/jdk/pull/22128) > > Following is the summary of changes included with this patch:- > > 1. Detection of vario

Re: RFR: 8342103: C2 compiler support for Float16 type and associated operations

2024-11-19 Thread Bhavana Kilambi
On Fri, 25 Oct 2024 04:46:52 GMT, Jatin Bhateja wrote: >> Hi Jatin, could you also include the idealization tests here - >> test/hotspot/jtreg/compiler/c2/irTests/MulHFNodeIdealizationTests.java and >> ConvF2HFIdealizationTests.java in this PR? > >> Hi Jatin, could you also include the idealiza

Re: RFR: 8342103: C2 compiler support for Float16 type and associated operations

2024-11-19 Thread Joe Darcy
On Mon, 14 Oct 2024 11:40:01 GMT, Jatin Bhateja wrote: > Hi All, > > This patch adds C2 compiler support for various Float16 operations added by > [PR#22128](https://github.com/openjdk/jdk/pull/22128) > > Following is the summary of changes included with this patch:- > > 1. Detection of vario

Re: RFR: 8342103: C2 compiler support for Float16 type and associated operations

2024-11-19 Thread Jatin Bhateja
On Mon, 18 Nov 2024 23:11:20 GMT, Sandhya Viswanathan wrote: >> Hi All, >> >> This patch adds C2 compiler support for various Float16 operations added by >> [PR#22128](https://github.com/openjdk/jdk/pull/22128) >> >> Following is the summary of changes included with this patch:- >> >> 1. Det

Re: RFR: 8342103: C2 compiler support for Float16 type and associated operations

2024-11-19 Thread Sandhya Viswanathan
On Tue, 19 Nov 2024 08:43:06 GMT, Jatin Bhateja wrote: >> src/hotspot/cpu/x86/x86.ad line 11015: >> >>> 11013: ins_encode %{ >>> 11014: int vlen_enc = vector_length_encoding(this); >>> 11015: __ evfmadd132ph($dst$$XMMRegister, $src2$$XMMRegister, >>> $src1$$XMMRegister, vlen_enc); >>

Re: RFR: 8342103: C2 compiler support for Float16 type and associated operations

2024-11-19 Thread Bhavana Kilambi
On Wed, 16 Oct 2024 14:19:40 GMT, Bhavana Kilambi wrote: >> Hi All, >> >> This patch adds C2 compiler support for various Float16 operations added by >> [PR#22128](https://github.com/openjdk/jdk/pull/22128) >> >> Following is the summary of changes included with this patch:- >> >> 1. Detectio

Re: RFR: 8342103: C2 compiler support for Float16 type and associated operations

2024-11-19 Thread Sandhya Viswanathan
On Tue, 19 Nov 2024 00:29:42 GMT, Sandhya Viswanathan wrote: >> Hi All, >> >> This patch adds C2 compiler support for various Float16 operations added by >> [PR#22128](https://github.com/openjdk/jdk/pull/22128) >> >> Following is the summary of changes included with this patch:- >> >> 1. Det

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

2024-11-19 Thread Raffaello Giulietti
On Tue, 19 Nov 2024 19:02:09 GMT, fabioromano1 wrote: >> src/java.base/share/classes/java/math/BigDecimal.java line 2253: >> >>> 2251: >>> 2252: case UP, CEILING -> { >>> 2253: BigInteger[] sqrtRem = >>> workingInt.sqrtAndRemainder(); >> >> Can't th

Re: RFR: 8343704: Bad GC parallelism with processing Cleaner queues [v13]

2024-11-19 Thread Aleksey Shipilev
> See the bug for more discussion and reproducer. This PR replaces the ad-hoc > linked list with segmented list of arrays. Arrays are easy targets for GC. > There are possible improvements here, most glaring is parallelism that is > currently knee-capped by global synchronization. The synchroniz

Re: RFR: 8343704: Bad GC parallelism with processing Cleaner queues [v12]

2024-11-19 Thread Aleksey Shipilev
On Tue, 19 Nov 2024 19:19:51 GMT, Brent Christian wrote: >> Aleksey Shipilev 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 13 additional >> co

RFR: 8342103: C2 compiler support for Float16 type and associated operations

2024-11-19 Thread Jatin Bhateja
Hi All, This patch adds C2 compiler support for various Float16 operations added by [PR#22128](https://github.com/openjdk/jdk/pull/22128) Following is the summary of changes included with this patch:- 1. Detection of various Float16 operations through inline expansion or pattern folding ideali

Re: RFR: 8343704: Bad GC parallelism with processing Cleaner queues [v12]

2024-11-19 Thread Brent Christian
On Tue, 19 Nov 2024 08:09:38 GMT, Aleksey Shipilev wrote: >> See the bug for more discussion and reproducer. This PR replaces the ad-hoc >> linked list with segmented list of arrays. Arrays are easy targets for GC. >> There are possible improvements here, most glaring is parallelism that is >>

Re: RFR: 8338536: Permanently disable remote code downloading in JNDI [v3]

2024-11-19 Thread Aleksei Efimov
> This PR permanently disable remote code downloading in JNDI/LDAP and JNDI/RMI > JDK providers, and contains the following changes: > - The following two properties are removed: > - `com.sun.jndi.ldap.object.trustURLCodebase` > - `com.sun.jndi.rmi.object.trustURLCodebase` > - JNDIs object

Re: RFR: 8343704: Bad GC parallelism with processing Cleaner queues [v12]

2024-11-19 Thread Aleksey Shipilev
On Tue, 19 Nov 2024 19:26:03 GMT, Aleksey Shipilev wrote: > > With SM removal, there is a doPrivileged call in Cleaner.java. Should that > > be handled separately from this PR? > > Since this is not related to the problem at hand, I'd prefer to keep it out > of this PR. Actually, I wonder if

Re: RFR: 8342103: C2 compiler support for Float16 type and associated operations

2024-11-19 Thread John R Rose
On Mon, 14 Oct 2024 11:40:01 GMT, Jatin Bhateja wrote: > Hi All, > > This patch adds C2 compiler support for various Float16 operations added by > [PR#22128](https://github.com/openjdk/jdk/pull/22128) > > Following is the summary of changes included with this patch:- > > 1. Detection of vario

Re: RFR: 8342103: C2 compiler support for Float16 type and associated operations

2024-11-19 Thread Joe Darcy
On Thu, 17 Oct 2024 21:35:40 GMT, Paul Sandoz wrote: > > Before the work in this PR proceeds, I think the java.lang -> > > jdk.incubator.vector move of Float16 should occur first. This will allow > > leaner reviews and better API separation. I can get an updated PR of the > > move prepared wit

Integrated: 8344077: Remove security manager dependency in java.io

2024-11-19 Thread Brian Burkhalter
On Mon, 18 Nov 2024 20:28:49 GMT, Brian Burkhalter wrote: > Expunge the use of the `SecurityManager`, `AccessController`, and the like > from the `java.io` package. This pull request has now been integrated. Changeset: 81e43114 Author:Brian Burkhalter URL: https://git.openjdk.org/j

Re: RFR: 8344337: SecurityManager cleanup in java.prefs moduleRemove SecMgr, etc usage from java.prefs [v3]

2024-11-19 Thread Brent Christian
> Remove usages of SecurityManager, doPrivildged, and AccessController from the > java.prefs module. Brent Christian has updated the pull request incrementally with one additional commit since the last revision: One more comment removal; fix 1 indent - Changes: - all: https://

Re: RFR: 8344337: SecurityManager cleanup in java.prefs moduleRemove SecMgr, etc usage from java.prefs

2024-11-19 Thread Brent Christian
On Tue, 19 Nov 2024 19:18:12 GMT, Lance Andersen wrote: >> Remove usages of SecurityManager, doPrivildged, and AccessController from >> the java.prefs module. > > src/java.prefs/unix/classes/java/util/prefs/FileSystemPreferences.java line > 63: > >> 61: //}; >> 62: //AccessCont

Re: RFR: 8344587: Reduce number of "jdk.jpackage.internal" classes used from other packages

2024-11-19 Thread Alexey Semenyuk
On Tue, 19 Nov 2024 22:31:28 GMT, Alexey Semenyuk wrote: > Stop using internal AppImageFile, ApplicationLayout, and PackageFile classes > in the tests. Replace them with stubs. > > Stop referencing IOUtils class from XmlUtils and PathUtils classes. @sashamatveev ptal - PR Comment

Re: RFR: 8342103: C2 compiler support for Float16 type and associated operations

2024-11-19 Thread Sandhya Viswanathan
On Mon, 14 Oct 2024 11:40:01 GMT, Jatin Bhateja wrote: > Hi All, > > This patch adds C2 compiler support for various Float16 operations added by > [PR#22128](https://github.com/openjdk/jdk/pull/22128) > > Following is the summary of changes included with this patch:- > > 1. Detection of vario

Re: RFR: 8344337: SecurityManager cleanup in java.prefs moduleRemove SecMgr, etc usage from java.prefs

2024-11-19 Thread Sean Mullan
On Tue, 19 Nov 2024 18:52:59 GMT, Brent Christian wrote: > Remove usages of SecurityManager, doPrivildged, and AccessController from the > java.prefs module. A few classes need updated copyrights. - PR Comment: https://git.openjdk.org/jdk/pull/22252#issuecomment-2486583493

Re: RFR: 8342103: C2 compiler support for Float16 type and associated operations

2024-11-19 Thread Joe Darcy
On Mon, 14 Oct 2024 16:42:24 GMT, Paul Sandoz wrote: > We should move the `Float16` class to `jdk.incubator.vector` and relevant > intrinsic stuff to `jdk.internal.vm.vector`, and we don't need the changes to > `BigDecimal` and `BigInteger`. To expand on that point, a few weeks back I took a l

Re: RFR: 8343704: Bad GC parallelism with processing Cleaner queues [v13]

2024-11-19 Thread Brent Christian
On Tue, 19 Nov 2024 19:53:45 GMT, Aleksey Shipilev wrote: >> See the bug for more discussion and reproducer. This PR replaces the ad-hoc >> linked list with segmented list of arrays. Arrays are easy targets for GC. >> There are possible improvements here, most glaring is parallelism that is >>

Re: RFR: 8342103: C2 compiler support for Float16 type and associated operations

2024-11-19 Thread Paul Sandoz
On Fri, 25 Oct 2024 04:46:52 GMT, Jatin Bhateja wrote: >> Hi Jatin, could you also include the idealization tests here - >> test/hotspot/jtreg/compiler/c2/irTests/MulHFNodeIdealizationTests.java and >> ConvF2HFIdealizationTests.java in this PR? > >> Hi Jatin, could you also include the idealiza

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

2024-11-19 Thread fabioromano1
On Tue, 19 Nov 2024 18:43:46 GMT, Raffaello Giulietti wrote: >> fabioromano1 has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Correct remainder checking > > src/java.base/share/classes/java/math/BigDecimal.java line 2200: > >> 2198:

Re: RFR: 8344275: tools/jpackage/windows/Win8301247Test.java fails on localized Windows platform [v3]

2024-11-19 Thread Taizo Kurashige
On Fri, 15 Nov 2024 13:25:01 GMT, Alexey Semenyuk wrote: > The implementation may change, but the name of the function should remain the > same. That certainly makes sense. I changed setWinEnableUTF8 to setWinRunWithEnglishOutput as you suggested. > I'd run suppress the output of "chcp" comma

Re: RFR: 8344275: tools/jpackage/windows/Win8301247Test.java fails on localized Windows platform [v4]

2024-11-19 Thread Taizo Kurashige
> To resolve tools/jpackage/windows/Win8301247Test.java failure, I made "wmic" > executed with "chcp 65001". This ensures that the encoding is UTF8 and that > the English message "No Instance(s) Available." is output on localized > windows platforms. > > I have referred to the following for how

Re: RFR: 8344275: tools/jpackage/windows/Win8301247Test.java fails on localized Windows platform [v3]

2024-11-19 Thread Taizo Kurashige
On Wed, 20 Nov 2024 03:13:23 GMT, Alexey Semenyuk wrote: >> Taizo Kurashige has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Fix indent > > test/jdk/tools/jpackage/helpers/jdk/jpackage/test/Executor.java line 487: > >> 485:

Re: RFR: 8344589: Update IANA Language Subtag Registry to Version 2024-11-19

2024-11-19 Thread Iris Clark
On Wed, 20 Nov 2024 02:59:54 GMT, Justin Lu wrote: > Please review this PR which keeps the IANA language subtag registry data up > to date with release _2024-11-19_. > > The changes are trivial and Locale tests pass as expected. Marked as reviewed by iris (Reviewer). - PR Review:

Re: RFR: 8344336: SM cleanup of java.lang.System, Runtime, String, StackWalker [v2]

2024-11-19 Thread Alan Bateman
On Mon, 18 Nov 2024 19:22:33 GMT, Roger Riggs wrote: >> Removed use of SecurityManager to check permissions. >> Relaxed defensive copying of byte arrays (due to lack of SM) > > Roger Riggs has updated the pull request incrementally with one additional > commit since the last revision: > > Rev

Re: RFR: 8344337: SecurityManager cleanup in java.prefs moduleRemove SecMgr, etc usage from java.prefs [v2]

2024-11-19 Thread Brent Christian
> Remove usages of SecurityManager, doPrivildged, and AccessController from the > java.prefs module. Brent Christian has updated the pull request incrementally with one additional commit since the last revision: remove commented code + other review feedback - Changes: - all: h

Re: RFR: 8344275: tools/jpackage/windows/Win8301247Test.java fails on localized Windows platform [v2]

2024-11-19 Thread Taizo Kurashige
> To resolve tools/jpackage/windows/Win8301247Test.java failure, I made "wmic" > executed with "chcp 65001". This ensures that the encoding is UTF8 and that > the English message "No Instance(s) Available." is output on localized > windows platforms. > > I have referred to the following for how

Re: RFR: 8344275: tools/jpackage/windows/Win8301247Test.java fails on localized Windows platform [v3]

2024-11-19 Thread Taizo Kurashige
> To resolve tools/jpackage/windows/Win8301247Test.java failure, I made "wmic" > executed with "chcp 65001". This ensures that the encoding is UTF8 and that > the English message "No Instance(s) Available." is output on localized > windows platforms. > > I have referred to the following for how

Re: RFR: 8343704: Bad GC parallelism with processing Cleaner queues [v13]

2024-11-19 Thread Brent Christian
On Tue, 19 Nov 2024 19:53:45 GMT, Aleksey Shipilev wrote: >> See the bug for more discussion and reproducer. This PR replaces the ad-hoc >> linked list with segmented list of arrays. Arrays are easy targets for GC. >> There are possible improvements here, most glaring is parallelism that is >>

Re: RFR: 8344337: SecurityManager cleanup in java.prefs moduleRemove SecMgr, etc usage from java.prefs [v3]

2024-11-19 Thread Brian Burkhalter
On Tue, 19 Nov 2024 23:16:38 GMT, Brent Christian wrote: >> Remove usages of SecurityManager, doPrivildged, and AccessController from >> the java.prefs module. > > Brent Christian has updated the pull request incrementally with one > additional commit since the last revision: > > One more co

Re: RFR: 8344525: Fix leftover ExceptionOccurred in java.base

2024-11-19 Thread Alan Bateman
On Wed, 20 Nov 2024 03:02:39 GMT, Justin Lu wrote: > Please review this PR which removes the leftover ocurrences of incorrect JNI > `ExceptionOccurred(env)` usage within _java.base_. > > This PR also includes 9 cases of `if (ExceptionOccurred(env) == NULL)`. While > these occurrences are fine

Re: RFR: 8344525: Fix leftover ExceptionOccurred in java.base

2024-11-19 Thread Laurent Bourgès
On Wed, 20 Nov 2024 03:02:39 GMT, Justin Lu wrote: > Please review this PR which removes the leftover ocurrences of incorrect JNI > `ExceptionOccurred(env)` usage within _java.base_. > > This PR also includes 9 cases of `if (ExceptionOccurred(env) == NULL)`. While > these occurrences are fine

Re: RFR: 8336707: Contention of ForkJoinPool grows when stealing works [v30]

2024-11-19 Thread Doug Lea
> This addresses tendencies in previous update to increase fencing, scanning, > and signalling that can increase contention, and slow down performance > especially on ARM platforms. It also uses more ARM-friendly constructions to > reduce overhead (leading to several changes that all of the same

Re: RFR: 8344275: tools/jpackage/windows/Win8301247Test.java fails on localized Windows platform [v3]

2024-11-19 Thread Taizo Kurashige
On Fri, 15 Nov 2024 14:20:00 GMT, Alexey Semenyuk wrote: >> Taizo Kurashige has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Fix indent > > test/jdk/tools/jpackage/helpers/jdk/jpackage/test/Executor.java line 344: > >> 342: c

Re: RFR: 8344275: tools/jpackage/windows/Win8301247Test.java fails on localized Windows platform

2024-11-19 Thread Taizo Kurashige
On Fri, 15 Nov 2024 14:23:36 GMT, Alexey Semenyuk wrote: > I'm not sure "65001" is the right choice if the request is to get the output > in English. Would "437" or "850" be more appropriate arguments for the "chcp" > command? After receiving your comment, I ran the chcp command on Windows Ser

Re: RFR: 8344275: tools/jpackage/windows/Win8301247Test.java fails on localized Windows platform [v3]

2024-11-19 Thread Taizo Kurashige
On Wed, 20 Nov 2024 03:16:47 GMT, Alexey Semenyuk wrote: >> Taizo Kurashige has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Fix indent > > test/jdk/tools/jpackage/helpers/jdk/jpackage/test/Executor.java line 344: > >> 342: private L

Re: RFR: 8344275: tools/jpackage/windows/Win8301247Test.java fails on localized Windows platform [v4]

2024-11-19 Thread Taizo Kurashige
On Wed, 20 Nov 2024 04:22:48 GMT, Taizo Kurashige wrote: >> To resolve tools/jpackage/windows/Win8301247Test.java failure, I made "wmic" >> executed with "chcp 437". This ensures that the encoding is UTF8 and that >> the English message "No Instance(s) Available." is output on localized >> win

  1   2   >