Re: RFR: 8344659: Some uses of GetPropertyAction were not removed from java.io and java.nio [v2]

2024-11-20 Thread Brian Burkhalter
On Wed, 20 Nov 2024 23:34:22 GMT, Naoto Sato wrote: >> Brian Burkhalter has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8344659: System.getProperty("sun.jnu.encoding") -> >> StaticProperty.jnuEncoding() > > src/java.base/share/classes/s

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

2024-11-20 Thread Naoto Sato
On Tue, 19 Nov 2024 07:58:22 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 chang

Re: RFR: 8344659: Some uses of GetPropertyAction were not removed from java.io and java.nio [v2]

2024-11-20 Thread Brian Burkhalter
> Remove some occurrences of `GetPropertyAction` overlooked in #22219 and > #22132. Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision: 8344659: System.getProperty("sun.jnu.encoding") -> StaticProperty.jnuEncoding() -

RFR: 8344646: The libjsig deprecation warning should go to stderr not stdout

2024-11-20 Thread David Holmes
In JDK 16 we deprecated the old signal and sigset signal-chaining interfaces under [JDK-8257572](https://bugs.openjdk.org/browse/JDK-8257572). The deprecation warning was written to stdout but all other warnings go to stderr. Having the warning be on stdout causes interference with application o

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

2024-11-20 Thread Alexey Semenyuk
On Wed, 20 Nov 2024 01:47:34 GMT, Taizo Kurashige wrote: >> 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 >> w

RFR: 8344549: Cleanup AccessController in sun.misc.Unsafe

2024-11-20 Thread Roger Riggs
Unwrap calls using doPrivileged in jdk.unsupported sun.misc.Unsafe. - Commit messages: - simplify declaration of INSTANCE - 8344549: Cleanup AccessController in sun.misc.Unsafe Changes: https://git.openjdk.org/jdk/pull/22242/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=

Re: RFR: 8344337: SecurityManager cleanup in java.prefs module [v5]

2024-11-20 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: indentation fixes - Changes: - all: https://git.openjdk.org/jdk/p

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

2024-11-20 Thread Chen Liang
On Tue, 19 Nov 2024 09:40:25 GMT, Adam Sotona wrote: >> Chen Liang has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains six commits: >> >> - Further facelift >> - Merge branch 'master' of https://github.com/openjdk/jdk into >> docs/

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

2024-11-20 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: 8344659: Some uses of GetPropertyAction were not removed from java.io and java.nio

2024-11-20 Thread Lance Andersen
On Wed, 20 Nov 2024 22:36:12 GMT, Brian Burkhalter wrote: > Remove some occurrences of `GetPropertyAction` overlooked in #22219 and > #22132. LGTM - Marked as reviewed by lancea (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/22285#pullrequestreview-2449890758

Re: RFR: 8344659: Some uses of GetPropertyAction were not removed from java.io and java.nio

2024-11-20 Thread Naoto Sato
On Wed, 20 Nov 2024 22:36:12 GMT, Brian Burkhalter wrote: > Remove some occurrences of `GetPropertyAction` overlooked in #22219 and > #22132. Changes in `java.io.Console` and `sun.nio.cs.GB18030` look good. src/java.base/share/classes/sun/nio/fs/Util.java line 40: > 38: > 39: private sta

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

2024-11-20 Thread Anthony Scarpino
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: 8342103: C2 compiler support for Float16 type and associated operations

2024-11-20 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: 8344659: Some uses of GetPropertyAction were not removed from java.io and java.nio

2024-11-20 Thread Brian Burkhalter
On Wed, 20 Nov 2024 23:14:30 GMT, Lance Andersen wrote: >> Remove some occurrences of `GetPropertyAction` overlooked in #22219 and >> #22132. > > LGTM @LanceAndersen , @naotoj Thanks for the reviews. I'll fiix Util.java and hold off integrating until tomorrow. - PR Comment: https

Re: RFR: 8340205: Native linker allows MemoryLayout consisting of only PaddingLayout [v13]

2024-11-20 Thread Jorn Vernee
On Mon, 11 Nov 2024 17:28:34 GMT, Maurizio Cimadamore wrote: > > Maybe we should also check that padding layouts have natural alignment? The > > alignment of padding layouts can affect the alignment of the enclosing > > container. > > This makes sense, but I wonder if that would require a cha

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

2024-11-20 Thread Chen Liang
On Wed, 20 Nov 2024 23:03:43 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

RFR: 8344659: Some uses of GetPropertyAction were not removed from java.io and java.nio

2024-11-20 Thread Brian Burkhalter
Remove some occurrences of `GetPropertyAction` overlooked in #22219 and #22132. - Commit messages: - 8344659: Some uses of GetPropertyAction were not removed from java.io and java.nio Changes: https://git.openjdk.org/jdk/pull/22285/files Webrev: https://webrevs.openjdk.org/?repo=

Re: RFR: 8344337: SecurityManager cleanup in java.prefs module [v5]

2024-11-20 Thread Brian Burkhalter
On Wed, 20 Nov 2024 22:43:44 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: > > indentation

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

2024-11-20 Thread Jorn Vernee
On Mon, 28 Oct 2024 13:53:58 GMT, Jorn Vernee wrote: > There is a subtle race in `UpcallLinker::on_exit` between copying of the old > frame anchor back into place, and the GC. Since this copy is not atomic, it > may briefly appear as if a thread has no last Java frame, while still in the > `_t

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

2024-11-20 Thread Alexey Semenyuk
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 English message "No >> Instance(s) Available." is output on localized windows platforms. >> >> I have refe

Re: RFR: 8315487: Security Providers Filter [v10]

2024-11-20 Thread Martin Balao
> In addition to the goals, scope, motivation, specification and requirement > notes in [JDK-8315487](https://bugs.openjdk.org/browse/JDK-8315487), we would > like to describe the most relevant decisions taken during the implementation > of this enhancement. These notes are organized by feature,

Re: RFR: 8344560: Add system property for patched runtime

2024-11-20 Thread Alan Bateman
On Wed, 20 Nov 2024 18:16:22 GMT, Severin Gehwolf wrote: > Sorry about that. There weren't any major objections, so I moved forward as > there was radio-silence for a while: That's okay, my comment wasn't aimed at you, it was instead just observing that there wasn't much feedback. ---

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

2024-11-20 Thread Iris Clark
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: 8341923: java.util.Locale class specification improvements [v3]

2024-11-20 Thread Naoto Sato
On Wed, 20 Nov 2024 03:03:22 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 chang

Re: RFR: 8344560: Add system property for patched runtime

2024-11-20 Thread Severin Gehwolf
On Wed, 20 Nov 2024 17:45:18 GMT, Alan Bateman wrote: > I had hoped you would get more feedback on the proposal. Sorry about that. There weren't any major objections, so I moved forward as there was radio-silence for a while: https://mail.openjdk.org/pipermail/core-libs-dev/2024-November/134623

Re: RFR: 8344337: SecurityManager cleanup in java.prefs module [v4]

2024-11-20 Thread Brian Burkhalter
On Wed, 20 Nov 2024 18:03:53 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: > > fix indenta

Re: RFR: 8331467: ImageReaderFactory can cause a ClassNotFoundException if the default FileSystemProvider is not the system-default provider [v2]

2024-11-20 Thread jyxzwd
On Wed, 20 Nov 2024 18:02:35 GMT, Alan Bateman wrote: > > yeah,I tested it a few mins ago.It works well in the situation mentioned in > > the issue and in the normal situation, also when a remote/target jdk is > > set. But I have a doubt, when only using the local jdk, no > > remote/targetjdk,

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

2024-11-20 Thread Naoto Sato
On Wed, 20 Nov 2024 02:58:45 GMT, Justin Lu wrote: >> src/java.base/share/classes/java/util/Locale.java line 144: >> >>> 142: * each indicating its own semantics, these values should be ordered >>> 143: * by importance, with most important first, separated by >>> 144: * underscore('_').

RFR: 8344336: SM cleanup of java.lang.System, Runtime, String, StackWalker

2024-11-20 Thread Roger Riggs
Removed use of SecurityManager to check permissions. Relaxed defensive copying of byte arrays (due to lack of SM) Refresh of PR#22168 Including review comments made there. - Commit messages: - Refactor package private method `codeSource` into Module where it is used. - Review sugge

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

2024-11-20 Thread Alan Bateman
On Wed, 20 Nov 2024 19:42:58 GMT, Roger Riggs wrote: > Removed use of SecurityManager to check permissions. > Relaxed defensive copying of byte arrays (due to lack of SM) > > Refresh of PR#22168 Including review comments made there. I agree with Daniel that LOGGERFINDER_PERMISSION and the speci

Re: RFR: 8344646: The libjsig deprecation warning should go to stderr not stdout

2024-11-20 Thread David Holmes
On Wed, 20 Nov 2024 21:30:32 GMT, Mikael Vidstedt wrote: >> In JDK 16 we deprecated the old signal and sigset signal-chaining interfaces >> under [JDK-8257572](https://bugs.openjdk.org/browse/JDK-8257572). The >> deprecation warning was written to stdout but all other warnings go to >> stderr.

Re: RFR: 8344646: The libjsig deprecation warning should go to stderr not stdout

2024-11-20 Thread Mikael Vidstedt
On Wed, 20 Nov 2024 21:18:01 GMT, David Holmes wrote: > In JDK 16 we deprecated the old signal and sigset signal-chaining interfaces > under [JDK-8257572](https://bugs.openjdk.org/browse/JDK-8257572). The > deprecation warning was written to stdout but all other warnings go to > stderr. Having

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

2024-11-20 Thread fabioromano1
On Tue, 19 Nov 2024 09:21:08 GMT, Raffaello Giulietti wrote: > While you are at it, it would be useful to add one test for each of the paths > in the new algorithm (including the exception cases) in the existing > [SquareRootTests](https://github.com/openjdk/jdk/blob/master/test/jdk/java/math/

RFR: 8319993: Update Unicode Data Files to 16.0.0

2024-11-20 Thread Naoto Sato
Updates the JDK to use the latest Unicode 16.0.0, which also updates the ICU4J along with it (8319992: Update ICU4J to Version 76.1). The corresponding CSR has already been approved. - Commit messages: - icu.md changes - Merge branch 'master' into JDK-8319993-Unicode-16 - Merge b

Re: RFR: 8344235: Revisit SecurityManager usage in java.logging after JEP 486 integration

2024-11-20 Thread Roger Riggs
On Wed, 20 Nov 2024 19:39:58 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 `ensureLogM

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

2024-11-20 Thread Roger Riggs
> Removed use of SecurityManager to check permissions. > Relaxed defensive copying of byte arrays (due to lack of SM) > > Refresh of PR#22168 Including review comments made there. Roger Riggs has updated the pull request incrementally with one additional commit since the last revision: Remove

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

2024-11-20 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: 8344560: Add system property for patched runtime

2024-11-20 Thread Severin Gehwolf
Please review this simple patch which adds a new external system property `jdk.patched` when the runtime has been patched with the `--patch-module` switch. This is useful for two reasons: 1) it allows one to determine at runtime whether or not `--patch-module` has been used (by querying the said

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

2024-11-20 Thread Jaikiran Pai
On Tue, 19 Nov 2024 12:43:48 GMT, Alan Bateman wrote: >>> concat the URLs to the resource in the modules and the class path >> >> Did you mean "concat the URLs of the " ? > > "of" or "to" will work here. Done - I've now updated this comment. - PR Review Comment: https://git.op

Re: RFR: 8344560: Add system property for patched runtime

2024-11-20 Thread Alan Bateman
On Wed, 20 Nov 2024 14:26:27 GMT, Severin Gehwolf wrote: > Please review this simple patch which adds a new external system property > `jdk.patched` when the runtime has been patched with the `--patch-module` > switch. This is useful for two reasons: 1) it allows one to determine at > run-time

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

2024-11-20 Thread Justin Lu
On Wed, 20 Nov 2024 07:20:32 GMT, Laurent Bourgès wrote: > I will check today if any 'bad' pattern is remaining in the openjdk master > source folder... to be sure. > > Maybe improving jni documentation would be great in another issue... Thanks for checking @bourgesl. The JNI docs did in fact

Withdrawn: 8340887: Add micro benchmark comparing input stream performance of ZipFile vs ZipInputStream

2024-11-20 Thread Eirik Bjørsnøs
On Wed, 25 Sep 2024 10:28:02 GMT, Eirik Bjørsnøs wrote: > Please review this test-only PR which adds a micro benchmark exploring > performance differences between reading entry data sequentially from a > `ZipFile` and reading the same entries using `ZipInputStream` wrapping a > `BufferedInputS

Re: RFR: 8344595: State transitions in internal VirtualThread comment needs to be updated

2024-11-20 Thread duke
On Tue, 19 Nov 2024 19:33:18 GMT, kabutz wrote: > See internal bug review 9077848 > > This is a very small unimportant mistake in the naming of the documentation > that does not match the code. @kabutz Your change (at version 2817981d67c561580f262c049384be6f7fe6520f) is now ready to be spons

RFR: 8344235: Revisit SecurityManager usage in java.logging after JEP 486 integration

2024-11-20 Thread Daniel Fuchs
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 `ensureLogManagerInitialized()` in order to avoid disturbing the initializat

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

2024-11-20 Thread Daniel Fuchs
On Wed, 20 Nov 2024 19:42:58 GMT, Roger Riggs wrote: > Removed use of SecurityManager to check permissions. > Relaxed defensive copying of byte arrays (due to lack of SM) > > Refresh of PR#22168 Including review comments made there. The changes to SystemLogger looks OK to me. Maybe you could ge

Re: RFR: 8340205: Native linker allows MemoryLayout consisting of only PaddingLayout [v17]

2024-11-20 Thread Jorn Vernee
On Wed, 20 Nov 2024 13:46:49 GMT, Per Minborg wrote: >> This PR prevents sequence layout with padding to be used with the Linker. > > Per Minborg 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

Integrated: 8344595: State transitions in internal VirtualThread comment needs to be updated

2024-11-20 Thread kabutz
On Tue, 19 Nov 2024 19:33:18 GMT, kabutz wrote: > See internal bug review 9077848 > > This is a very small unimportant mistake in the naming of the documentation > that does not match the code. This pull request has now been integrated. Changeset: da2d7a09 Author:Dr Heinz M. Kabutz Commi

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

2024-11-20 Thread Aleksey Shipilev
On Tue, 19 Nov 2024 18:50:36 GMT, Roger Riggs 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. - PR Comment: https://gi

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

2024-11-20 Thread Alexander Matveev
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. Looks good. - Marked as reviewe

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

2024-11-20 Thread Chen Liang
On Tue, 19 Nov 2024 16:35:44 GMT, Chen Liang wrote: >> src/java.base/share/classes/jdk/internal/reflect/MethodHandleAccessorFactory.java >> line 430: >> >>> 428: // Single parameter of declared type Object[] >>> 429: Class[] parameters = >>> reflectionFactory.getExecutableShare

Re: RFR: 8344540: Remove superseded wildcard description from java manpage [v2]

2024-11-20 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 Christian Stein has updated the pull

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

2024-11-20 Thread Daniel Fuchs
On Tue, 19 Nov 2024 20:33:35 GMT, Roger Riggs wrote: >> Aleksei Efimov has updated the pull request incrementally with one >> additional commit since the last revision: >> >> clarify factory location usages in NamingManager and jdk.naming.rmi >> module-info > > src/java.naming/share/classes/

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

2024-11-20 Thread Daniel Fuchs
On Tue, 19 Nov 2024 20:38:02 GMT, Roger Riggs wrote: >> Aleksei Efimov has updated the pull request incrementally with one >> additional commit since the last revision: >> >> clarify factory location usages in NamingManager and jdk.naming.rmi >> module-info > > src/java.naming/share/classes/

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

2024-11-20 Thread Daniel Fuchs
On Tue, 19 Nov 2024 00:53:22 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: 8344589: Update IANA Language Subtag Registry to Version 2024-11-19

2024-11-20 Thread Lance Andersen
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 lancea (Reviewer). - PR Revie

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

2024-11-20 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: 8338536: Permanently disable remote code downloading in JNDI [v4]

2024-11-20 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

RFR: 8344524: Remove SecurityManager related code from jdk.jlink module

2024-11-20 Thread Jaikiran Pai
Can I please get a review for this change which removes SecurityManager usages from `jdk.jlink` module? This addresses https://bugs.openjdk.org/browse/JDK-8344524. The internal class `jdk.tools.jlink.internal.JlinkPermission` too has been removed as part of this change. No new tests have been

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

2024-11-20 Thread Viktor Klang
On Wed, 20 Nov 2024 08:11:34 GMT, Alan Bateman wrote: >> src/java.base/share/classes/java/util/concurrent/ForkJoinWorkerThread.java >> line 247: >> >>> 245: = U.objectFieldOffset(Thread.class, "threadLocals"); >>> 246: private static final long INHERITABLETHREADLOCALS >>> 247:

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

2024-11-20 Thread Viktor Klang
On Tue, 19 Nov 2024 19:12:29 GMT, Doug Lea wrote: >> src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 4082: >> >>> 4080: AccessController.doPrivileged(new PrivilegedAction<>() { >>> 4081: public ForkJoinPool run() { >>> 4082:

Re: RFR: 8344595: Naming incorrect for WAIT state in VirtualThread documentation

2024-11-20 Thread Alan Bateman
On Tue, 19 Nov 2024 19:33:18 GMT, kabutz wrote: > See internal bug review 9077848 > > This is a very small unimportant mistake in the naming of the documentation > that does not match the code. Thanks, this comment was missed in the loom repo when we did the last rename. You'll need to adjust

Re: RFR: 8344540: Remove superseded wildcard description from java manpage

2024-11-20 Thread Jaikiran Pai
On Tue, 19 Nov 2024 11:12:01 GMT, Christian Stein wrote: > 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/5cb0d438231383d491b

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

2024-11-20 Thread Yudi Zheng
On Wed, 20 Nov 2024 06:52:11 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

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

2024-11-20 Thread Jaikiran Pai
On Wed, 20 Nov 2024 06:52:11 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

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

2024-11-20 Thread David M . Lloyd
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: 8333796: Add missing serialization functionality to sun.reflect.ReflectionFactory [v11]

2024-11-20 Thread duke
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: 8344223: Remove calls to SecurityManager and doPrivileged in java.net.URLClassLoader after JEP 486 integration [v4]

2024-11-20 Thread Daniel Fuchs
On Wed, 20 Nov 2024 06:52:11 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

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

2024-11-20 Thread Jaikiran Pai
On Tue, 19 Nov 2024 10:32:37 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 `URLClassLo

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

2024-11-20 Thread Aleksey Shipilev
On Wed, 20 Nov 2024 00:50:01 GMT, Brent Christian wrote: >> Aleksey Shipilev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Use RandomFactory in test > > src/java.base/share/classes/jdk/internal/ref/PhantomCleanable.java line 55: > >>

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

2024-11-20 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: 8344524: Remove SecurityManager related code from jdk.jlink module

2024-11-20 Thread Alan Bateman
On Wed, 20 Nov 2024 09:38:05 GMT, Jaikiran Pai wrote: > Can I please get a review for this change which removes SecurityManager > usages from `jdk.jlink` module? This addresses > https://bugs.openjdk.org/browse/JDK-8344524. > > The internal class `jdk.tools.jlink.internal.JlinkPermission` too

Re: RFR: 8344524: Remove SecurityManager related code from jdk.jlink module

2024-11-20 Thread Lance Andersen
On Wed, 20 Nov 2024 09:38:05 GMT, Jaikiran Pai wrote: > Can I please get a review for this change which removes SecurityManager > usages from `jdk.jlink` module? This addresses > https://bugs.openjdk.org/browse/JDK-8344524. > > The internal class `jdk.tools.jlink.internal.JlinkPermission` too

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

2024-11-20 Thread Raffaello Giulietti
On Tue, 19 Nov 2024 18:44:51 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 2260: > >> 2258:

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

2024-11-20 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-20 Thread Doug Lea
On Wed, 20 Nov 2024 10:36:13 GMT, Viktor Klang wrote: >> resetThreadLocals looks good although. A discussion point is whether reset >> should be done for all FJP instances, not just the common pool but not this >> PR. > > Thanks Alan. Yes, I think it should be considered to do it for all FJP >

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

2024-11-20 Thread Alan Bateman
On Tue, 19 Nov 2024 16:57:05 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: 8333796: Add missing serialization functionality to sun.reflect.ReflectionFactory

2024-11-20 Thread Alan Bateman
On Sat, 29 Jun 2024 07:31:44 GMT, Alan Bateman 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 was

Re: RFR: 8331467: ImageReaderFactory can cause a ClassNotFoundException if the default FileSystemProvider is not the system-default provider [v2]

2024-11-20 Thread Alan Bateman
On Wed, 20 Nov 2024 14:04:54 GMT, jyxzwd wrote: >> Use the built-in file system provider rather than the custom file system >> provider. >> Add "public static FileSystemProvider create" method in >> DefaultFileSystemProvider which is from java8API to be compatible against >> runtime. > > jyxzw

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

2024-11-20 Thread Daniel Fuchs
On Wed, 20 Nov 2024 13:06:57 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: 8338536: Permanently disable remote code downloading in JNDI [v3]

2024-11-20 Thread Aleksei Efimov
On Wed, 20 Nov 2024 11:33:19 GMT, Daniel Fuchs wrote: >> src/java.naming/share/classes/com/sun/jndi/ldap/Connection.java line 262: >> >>> 260: } >>> 261: >>> 262: worker = new Thread(this); >> >> Rataining a static factory for thread may use useful to be able to customize >> t

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

2024-11-20 Thread Aleksei Efimov
On Tue, 19 Nov 2024 20:42:04 GMT, Roger Riggs wrote: >> Aleksei Efimov has updated the pull request incrementally with one >> additional commit since the last revision: >> >> clarify factory location usages in NamingManager and jdk.naming.rmi >> module-info > > src/java.naming/share/classes/

Re: RFR: 8344611: Add missing classpath exception

2024-11-20 Thread Sorna Sarathi
On Wed, 20 Nov 2024 14:02:10 GMT, Amit Kumar wrote: > Do similar change for: > > ``` > src/java.base/share/native/libjava/ub.h > src/jdk.jlink/share/classes/jdk/tools/jlink/internal/runtimelink/JimageDiffGenerator.java > src/jdk.jlink/share/classes/jdk/tools/jlink/internal/runtimelink/ResourcePo

Re: RFR: 8340205: Native linker allows MemoryLayout consisting of only PaddingLayout [v17]

2024-11-20 Thread Per Minborg
> This PR prevents sequence layout with padding to be used with the Linker. Per Minborg 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 36 additional co

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

2024-11-20 Thread Viktor Klang
On Tue, 19 Nov 2024 14:23:58 GMT, Francesco Nigro 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 >> regressi

Re: RFR: 8344611: Add missing classpath exception

2024-11-20 Thread Amit Kumar
On Wed, 20 Nov 2024 10:46:54 GMT, Sorna Sarathi wrote: > This PR adds missing Classpath exception in several files. > > JBS Issue: [JDK-8334611](https://bugs.openjdk.org/browse/JDK-8344611) Do similar change for: src/java.base/share/native/libjava/ub.h src/jdk.jlink/share/classes/jdk/tools/jl

RFR: 8344611: Add missing classpath exception

2024-11-20 Thread Sorna Sarathi
This PR adds missing Classpath exception in several files. JBS Issue: [JDK-8334611](https://bugs.openjdk.org/browse/JDK-8344611) - Commit messages: - Added classpath exception for some additional files - Added missing classpath exception Changes: https://git.openjdk.org/jdk/pull/2

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

2024-11-20 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: 8338536: Permanently disable remote code downloading in JNDI [v5]

2024-11-20 Thread Aleksei Efimov
On Wed, 20 Nov 2024 16:31:44 GMT, Daniel Fuchs wrote: >> Aleksei Efimov has updated the pull request incrementally with one >> additional commit since the last revision: >> >> change jdk.naming.rmi per Daniel's suggestion > > src/jdk.naming.rmi/share/classes/module-info.java line 64: > >> 62

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

2024-11-20 Thread Daniel Fuchs
On Wed, 20 Nov 2024 16:25:56 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: 8338536: Permanently disable remote code downloading in JNDI [v5]

2024-11-20 Thread Daniel Fuchs
On Wed, 20 Nov 2024 16:25:56 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: 8338536: Permanently disable remote code downloading in JNDI [v5]

2024-11-20 Thread Daniel Fuchs
On Wed, 20 Nov 2024 16:40:43 GMT, Aleksei Efimov wrote: >> src/jdk.naming.rmi/share/classes/module-info.java line 64: >> >>> 62: * location} specified in the reference can be supported by a custom >>> implementation of {@link >>> 63: * javax.naming.spi.ObjectFactoryBuilder}. If a location is

Re: RFR: 8331467: ImageReaderFactory can cause a ClassNotFoundException if the default FileSystemProvider is not the system-default provider [v2]

2024-11-20 Thread jyxzwd
> Use the built-in file system provider rather than the custom file system > provider. > Add "public static FileSystemProvider create" method in > DefaultFileSystemProvider which is from java8API to be compatible against > runtime. jyxzwd has updated the pull request incrementally with two addi

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

2024-11-20 Thread Bhavana Kilambi
On Wed, 20 Nov 2024 14:57:11 GMT, Jatin Bhateja wrote: >> test/hotspot/jtreg/compiler/vectorization/TestFloat16VectorConvChain.java >> line 44: >> >>> 42: @Test >>> 43: @IR(applyIfCPUFeatureAnd = {"avx512_fp16", "false", "avx512vl", >>> "true"}, counts = {IRNode.VECTOR_CAST_HF2F, IRNod

Re: RFR: 8344524: Remove SecurityManager related code from jdk.jlink module

2024-11-20 Thread Iris Clark
On Wed, 20 Nov 2024 09:38:05 GMT, Jaikiran Pai wrote: > Can I please get a review for this change which removes SecurityManager > usages from `jdk.jlink` module? This addresses > https://bugs.openjdk.org/browse/JDK-8344524. > > The internal class `jdk.tools.jlink.internal.JlinkPermission` too

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

2024-11-20 Thread Justin Lu
> 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. > > APIDiff: > https://cr.openjdk.org/~jlu/8341923_a

Re: RFR: 8331467: ImageReaderFactory can cause a ClassNotFoundException if the default FileSystemProvider is not the system-default provider [v2]

2024-11-20 Thread jyxzwd
On Wed, 20 Nov 2024 14:11:51 GMT, Alan Bateman wrote: > I don't think we should be doing this. Did you try the direction of checking > the defining class loader that I outlined in the previous comment? yeah,I tested it a few mins ago.It works well in the situation mentioned in the issue and in

Integrated: 8333796: Add missing serialization functionality to sun.reflect.ReflectionFactory

2024-11-20 Thread David M . Lloyd
On Thu, 13 Jun 2024 14:31:06 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 was ex

Re: RFR: 8331467: ImageReaderFactory can cause a ClassNotFoundException if the default FileSystemProvider is not the system-default provider [v2]

2024-11-20 Thread jyxzwd
On Sun, 10 Nov 2024 17:04:12 GMT, Alan Bateman wrote: >> If we load the custom DefaultFileSystemProvider by SystemClassLoader,then we >> will step into the method >> SystemModuleFinders$SystemModuleReader#findImageLocation again, and the var >> imageReader will be null.But we can not define a

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

2024-11-20 Thread Roger Riggs
On Wed, 20 Nov 2024 11:38:35 GMT, Daniel Fuchs wrote: >> src/java.naming/share/classes/com/sun/naming/internal/VersionHelper.java >> line 163: >> >>> 161: InputStream getJavaHomeConfStream(String filename) { >>> 162: try { >>> 163: String javahome = System.getProperty("j

Re: RFR: 8343839: Detect patched modules and abort run-time image link early [v2]

2024-11-20 Thread Severin Gehwolf
> Please review this fix to how patched modules are being handled when linking > from the run-time image. During review of > [JDK-8311302](https://bugs.openjdk.org/browse/JDK-8311302) it was pointed out > that module patching should be detected earlier and the link should get > aborted in that

  1   2   >