Integrated: 8344183: (zipfs) SecurityManager cleanup in the ZipFS area

2024-11-14 Thread Eirik Bjørsnøs
On Thu, 14 Nov 2024 11:21:54 GMT, Eirik Bjørsnøs wrote: > Please review this PR which cleans up SecurityManager-related code following > JEP-486 integraion. > > * `ZipFileSystem` is updated to not perform `AccessController::doPrivileged` > * `ZipFileSystemProvider` is updated to not perform >

Integrated: 8344179: SecurityManager cleanup in the ZIP and JAR areas

2024-11-14 Thread Eirik Bjørsnøs
On Thu, 14 Nov 2024 10:18:18 GMT, Eirik Bjørsnøs wrote: > Please review this PR which cleans up security manager related code in > `java.util.zip` and `java.util.jar`: > > * `JarFile` and `ZipFile` are updated to use `System::getProperty` instead of > `GetPropertyAction::privilegedGetProperty`

Re: RFR: 8344197: SM cleanup in java.util.concurrent

2024-11-14 Thread Alan Bateman
On Thu, 14 Nov 2024 20:45:49 GMT, Roger Riggs wrote: > Refactored to remove use of doPrivileged() and use of SecurityManager. > The DefaultForkJoinWorkerThreadFactory no longer uses the SM to target a > common thread pool. > > A careful review is requested. I did a pass over this. Most of it i

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

2024-11-14 Thread Axel Boldt-Christmas
On Thu, 14 Nov 2024 17:26:31 GMT, Aleksey Shipilev wrote: > > That is probably correct. I was however thinking that it would only be > > pooled asymmetrically as some type of hystereses. So you pool when you > > remove a node (switch the head) and keep it far an arbitrary amount of > > removal

Re: RFR: 8344231: SecurityManager cleanup in java.lang.module and jdk.internal.module [v2]

2024-11-14 Thread Alan Bateman
On Fri, 15 Nov 2024 07:01:39 GMT, Eirik Bjørsnøs wrote: >> Please review this PR which removes code depending on SecurityManager from >> the `java.lang.module` and `jdk.internal.module` packages: >> >> * `ModuleFinder::ofSystem` is updated to not check the >> `"accessSystemModules"` RuntimePer

Integrated: 8343982: Remove usage of security manager from ClassLoader and related classes

2024-11-14 Thread Alan Bateman
On Thu, 14 Nov 2024 09:00:31 GMT, Alan Bateman wrote: > Remove the code for the now defunct SecurityManager execution mode from > ClassLoader and the built-in class loader implementations. The override of > getPermissions is removed from the application class loader, and from the > class loade

Re: RFR: 8331497: Implement JEP 483: Ahead-of-Time Class Loading & Linking [v12]

2024-11-14 Thread John R Rose
On Fri, 15 Nov 2024 05:48:27 GMT, Ioi Lam wrote: >> This is an implementation of [JEP 483: Ahead-of-Time Class Loading & >> Linking](https://openjdk.org/jeps/483). >> >> >> Note: this is a combined PR of the following individual PRs >> - https://github.com/openjdk/jdk/pull/20516 >> - https

Re: RFR: 8321413: IllegalArgumentException: Code length outside the allowed range while creating a jlink image [v10]

2024-11-14 Thread Henry Jen
On Fri, 15 Nov 2024 06:37:26 GMT, Henry Jen wrote: >> This PR split out large array/set construction into separate factory methods >> to avoid oversized method trying to construct several of those. >> >> In order to do that, we will need to generate those help methods on demand >> in the class

Re: RFR: 8344231: SecurityManager cleanup in java.lang.module and jdk.internal.module [v2]

2024-11-14 Thread Eirik Bjørsnøs
On Fri, 15 Nov 2024 06:33:30 GMT, Alan Bateman wrote: >> Eirik Bjørsnøs has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - Remove empty line in addProvides >> - Add full stop after class description for SystemImage > > src/java.base/shar

Re: RFR: 8344231: SecurityManager cleanup in java.lang.module and jdk.internal.module [v2]

2024-11-14 Thread Eirik Bjørsnøs
> Please review this PR which removes code depending on SecurityManager from > the `java.lang.module` and `jdk.internal.module` packages: > > * `ModuleFinder::ofSystem` is updated to not check the > `"accessSystemModules"` RuntimePermission > * The `ModuleReferences.ExplodedModuleReader` constru

Re: RFR: 8344231: SecurityManager cleanup in java.lang.module and jdk.internal.module

2024-11-14 Thread Alan Bateman
On Thu, 14 Nov 2024 17:32:40 GMT, Eirik Bjørsnøs wrote: > Please review this PR which removes code depending on SecurityManager from > the `java.lang.module` and `jdk.internal.module` packages: > > * `ModuleFinder::ofSystem` is updated to not check the > `"accessSystemModules"` RuntimePermissi

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

2024-11-14 Thread Alan Bateman
On Thu, 14 Nov 2024 21:03:35 GMT, Brent Christian wrote: >> Nevermind, I added a directed regression test for it now. > >> I see that existing `Cleaner` tests are quite rich already. >> ... >> The new asserts around that code should IMO test enough with existing tests. > > Should any of the exi

Re: RFR: 8321413: IllegalArgumentException: Code length outside the allowed range while creating a jlink image [v10]

2024-11-14 Thread Henry Jen
> This PR split out large array/set construction into separate factory methods > to avoid oversized method trying to construct several of those. > > In order to do that, we will need to generate those help methods on demand in > the class builder. Here we have two approach, one is for dedup set,

Re: RFR: 8331497: Implement JEP 483: Ahead-of-Time Class Loading & Linking [v12]

2024-11-14 Thread Ioi Lam
> This is an implementation of [JEP 483: Ahead-of-Time Class Loading & > Linking](https://openjdk.org/jeps/483). > > > Note: this is a combined PR of the following individual PRs > - https://github.com/openjdk/jdk/pull/20516 > - https://github.com/openjdk/jdk/pull/20517 > - https://github.co

Integrated: 8344065: Remove SecurityManager uses from the java.datatransfer module

2024-11-14 Thread Phil Race
On Thu, 14 Nov 2024 23:51:24 GMT, Phil Race wrote: > remove uses of SM APIs from the java.datatransfer module. Also cleans up the > now un-needed export from java.base This pull request has now been integrated. Changeset: 99070658 Author:Phil Race URL: https://git.openjdk.org/jdk/c

Withdrawn: 8340493: Fix some Asserts failure messages

2024-11-14 Thread duke
On Fri, 20 Sep 2024 00:33:39 GMT, Weijun Wang wrote: > `Asserts.assertNotEquals` shows "expected 12345 to not equal 12345" which > sounds redundant, just say "expected not equals but was 12345". > > `Asserts.assertEqualsByteArray` uses the words "expected... to equal...". > Modify it to follow

Re: RFR: 8329251: Print custom truststore/ keystore name [v11]

2024-11-14 Thread Prasadrao Koppula
On Thu, 7 Nov 2024 17:52:53 GMT, Sean Mullan wrote: >> Prasadrao Koppula has updated the pull request with a new target base due to >> a merge or a rebase. The pull request now contains 11 commits: >> >> - Merge master >> - initialized storeName with empty string >> - Replaced Paths.get with

Re: RFR: 8343876: Enhancements to jpackage test lib

2024-11-14 Thread Alexander Matveev
On Sat, 9 Nov 2024 00:51:03 GMT, Alexey Semenyuk wrote: > Make jpackage test lib more practical. List of changes: > > Support multiple args and var args in `@Parameter` annotation: > > @Test > @Parameter({"12", "foo"}) > @Parameter({"-89", "bar", "more"}) > @Parameter({"-89", "bar", "more", "mo

Re: RFR: 8343039: Remove jdk.internal.misc.InternalLock and usages from java.io [v9]

2024-11-14 Thread Chen Liang
On Thu, 14 Nov 2024 19:16:34 GMT, Brian Burkhalter wrote: >> Uses of `InternalLock` are removed and `synchronized` is reinstated. > > Brian Burkhalter has updated the pull request with a new target base due to a > merge or a rebase. The incremental webrev excludes the unrelated changes > brough

Re: RFR: 8343039: Remove jdk.internal.misc.InternalLock and usages from java.io [v9]

2024-11-14 Thread Brian Burkhalter
On Fri, 15 Nov 2024 01:20:43 GMT, Chen Liang wrote: > Looks good Thanks, @liach , for the second review. > src/java.base/share/classes/java/io/BufferedReader.java line 329: > >> 327: if (term != null) term[0] = false; >> 328: >> 329: bufferLoop: > > How do we usually

Re: RFR: 8344056: Use markdown format for man pages [v2]

2024-11-14 Thread David Holmes
On Thu, 14 Nov 2024 11:11:54 GMT, Magnus Ihse Bursie wrote: >> Currently, the man pages are stored as troff (a text format) in the open >> repo, and a content-wise identical copy is stored as markdown (another text >> format) in the closed repo. >> >> Since markdown is preferred to troff in te

Re: RFR: 8343876: Enhancements to jpackage test lib

2024-11-14 Thread Alexander Matveev
On Sat, 9 Nov 2024 00:51:03 GMT, Alexey Semenyuk wrote: > Make jpackage test lib more practical. List of changes: > > Support multiple args and var args in `@Parameter` annotation: > > @Test > @Parameter({"12", "foo"}) > @Parameter({"-89", "bar", "more"}) > @Parameter({"-89", "bar", "more", "mo

Re: RFR: 8344056: Use markdown format for man pages [v2]

2024-11-14 Thread David Holmes
On Thu, 14 Nov 2024 11:11:54 GMT, Magnus Ihse Bursie wrote: >> Currently, the man pages are stored as troff (a text format) in the open >> repo, and a content-wise identical copy is stored as markdown (another text >> format) in the closed repo. >> >> Since markdown is preferred to troff in te

Re: RFR: 8344168: Change Unsafe base offset from int to long

2024-11-14 Thread ExE Boss
On Thu, 14 Nov 2024 23:20:23 GMT, Dean Long wrote: >> The type of the Unsafe base offset constant is int, which may cause overflow >> when adding int offsets, such as 8343925 (PR #22012). 8343984 (PR #22027) >> fixes most of the offset overflows in JDK, but ArraysSupport and CRC32C are >> stil

Re: RFR: 8344168: Change Unsafe base offset from int to long [v2]

2024-11-14 Thread Shaojin Wen
> The type of the Unsafe base offset constant is int, which may cause overflow > when adding int offsets, such as 8343925 (PR #22012). 8343984 (PR #22027) > fixes most of the offset overflows in JDK, but ArraysSupport and CRC32C are > still unfixed. > > @liach proposed the idea of ​​changing th

Re: RFR: 8344259: Annotate Float16 with jdk.internal.ValueBased

2024-11-14 Thread Joe Darcy
On Fri, 15 Nov 2024 00:25:20 GMT, Paul Sandoz wrote: > Annotate `Float16` with `jdk.internal.ValueBased`. This requires we export > the package `jdk.internal` in module `java.base` to module` > jdk.incubator.vector`. > > Doing so enables the compiler and runtime to report warnings about improp

Re: RFR: 8344259: Annotate Float16 with jdk.internal.ValueBased

2024-11-14 Thread Chen Liang
On Fri, 15 Nov 2024 00:25:20 GMT, Paul Sandoz wrote: > Annotate `Float16` with `jdk.internal.ValueBased`. This requires we export > the package `jdk.internal` in module `java.base` to module` > jdk.incubator.vector`. > > Doing so enables the compiler and runtime to report warnings about improp

Re: RFR: 8344065: Remove SecurityManager uses from the java.datatransfer module

2024-11-14 Thread Sergey Bylokhov
On Thu, 14 Nov 2024 23:51:24 GMT, Phil Race wrote: > remove uses of SM APIs from the java.datatransfer module. Also cleans up the > now un-needed export from java.base Marked as reviewed by serb (Reviewer). - PR Review: https://git.openjdk.org/jdk/pull/22127#pullrequestreview-2437

RFR: 8344259: Annotate Float16 with jdk.internal.ValueBased

2024-11-14 Thread Paul Sandoz
Annotate `Float16` with `jdk.internal.ValueBased`. This requires we export the package `jdk.internal` in module `java.base` to module` jdk.incubator.vector`. Doing so enables the compiler and runtime to report warnings about improper attempts to synchronize on instances of `Float16`, as describe

Re: RFR: 8344252: SM cleanup in java.util classes

2024-11-14 Thread Stuart Marks
On Thu, 14 Nov 2024 22:09:59 GMT, Roger Riggs wrote: > Remove use of doPrivileged and SecurityManager in java.util. Marked as reviewed by smarks (Reviewer). I mainly wanted to look at Arrays, and I looked briefly at the other stuff too. All looks good. - PR Review: https://git.op

Re: RFR: 8344191: Build code should not have classpath exception

2024-11-14 Thread Magnus Ihse Bursie
On Thu, 14 Nov 2024 15:23:35 GMT, Jonathan Gibbons wrote: > The policy has long been to use Classpath Exception in the src and make > directories, but not in the test directories. If you're changing the policy, > you might want to check and update any documentation where the policy might > be

RFR: 8344065: Remove SecurityManager uses from the java.datatransfer module

2024-11-14 Thread Phil Race
remove uses of SM APIs from the java.datatransfer module. Also cleans up the now un-needed export from java.base - Commit messages: - 8344065 Changes: https://git.openjdk.org/jdk/pull/22127/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22127&range=00 Issue: https://bug

Re: RFR: 8344168: Change Unsafe base offset from int to long

2024-11-14 Thread Dean Long
On Thu, 14 Nov 2024 05:32:34 GMT, Shaojin Wen wrote: > The type of the Unsafe base offset constant is int, which may cause overflow > when adding int offsets, such as 8343925 (PR #22012). 8343984 (PR #22027) > fixes most of the offset overflows in JDK, but ArraysSupport and CRC32C are > still

Re: RFR: 8344252: SM cleanup in java.util classes

2024-11-14 Thread Naoto Sato
On Thu, 14 Nov 2024 22:09:59 GMT, Roger Riggs wrote: > Remove use of doPrivileged and SecurityManager in java.util. src/java.base/share/classes/java/util/Properties.java line 952: > 950: > 951: private static void writeDateComment(BufferedWriter bw) throws > IOException { > 952: /

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

2024-11-14 Thread David Alayachew
Oh ok. So it truly is a toss-up depending on each implementation when and where this occurs. Ok, then as my final request, I think even informing the user that this CAN occur is worth doing. If nothing else, the user scouring the documentation for documentation of this behaviour will know that it

RFR: 8344252: SM cleanup in java.util classes

2024-11-14 Thread Roger Riggs
Remove use of doPrivileged and SecurityManager in java.util. - Commit messages: - 8344252: SM cleanup in java.util classes Changes: https://git.openjdk.org/jdk/pull/22122/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22122&range=00 Issue: https://bugs.openjdk.org/browse

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

2024-11-14 Thread Chen Liang
On Thu, 14 Nov 2024 12:28:21 GMT, Jaikiran Pai wrote: >> I agree with marking these close methods as final as long as the previous >> corpus search did not find any user-defined close method in subclasses. > > Hello Chen, corpus analysis shows that there are no subclasses of > Inflater/Deflater

Re: RFR: 8344179: SecurityManager cleanup in the ZIP and JAR areas [v3]

2024-11-14 Thread Sean Mullan
On Thu, 14 Nov 2024 20:28:31 GMT, Eirik Bjørsnøs wrote: >> Please review this PR which cleans up security manager related code in >> `java.util.zip` and `java.util.jar`: >> >> * `JarFile` and `ZipFile` are updated to use `System::getProperty` instead >> of `GetPropertyAction::privilegedGetProp

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

2024-11-14 Thread Roger Riggs
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: 8344179: SecurityManager cleanup in the ZIP and JAR areas [v3]

2024-11-14 Thread Roger Riggs
On Thu, 14 Nov 2024 20:28:31 GMT, Eirik Bjørsnøs wrote: >> Please review this PR which cleans up security manager related code in >> `java.util.zip` and `java.util.jar`: >> >> * `JarFile` and `ZipFile` are updated to use `System::getProperty` instead >> of `GetPropertyAction::privilegedGetProp

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

2024-11-14 Thread Brent Christian
On Thu, 14 Nov 2024 13:20:06 GMT, Aleksey Shipilev wrote: >> I see that existing `Cleaner` tests are quite rich already. Array-based >> implementation does rise question about testing the resizes, that's obvious. >> But I have discovered that copying arrays is not really that good in this >> s

RFR: 8344231: SecurityManager cleanup in java.lang.module and jdk.internal.module

2024-11-14 Thread Eirik Bjørsnøs
Please review this PR which removes code depending on SecurityManager from the `java.lang.module` and `jdk.internal.module` packages: * `ModuleFinder::ofSystem` is updated to not check the `"accessSystemModules"` RuntimePermission * The `ModuleReferences.ExplodedModuleReader` constructor is upda

Re: RFR: 8344179: SecurityManager cleanup in the ZIP and JAR areas [v2]

2024-11-14 Thread Eirik Bjørsnøs
On Thu, 14 Nov 2024 20:02:50 GMT, Lance Andersen wrote: >> I think both are in the 90-100 range. Line length is a bit subjective, but I >> know that at least in the Security Group, we try to keep code to around 80 >> chars so it is easy to review in a side-by-side diff. It also is visually >>

RFR: 8344197: SM cleanup in java.util.concurrent

2024-11-14 Thread Roger Riggs
Refactored to remove use of doPrivileged() and use of SecurityManager. The DefaultForkJoinWorkerThreadFactory no longer uses the SM to target a common thread pool. A careful review is requested. - Commit messages: - Drop mention of permissions - 8344197: SM cleanup in java.util.co

Re: RFR: 8344034: Remove security manager dependency in Serialization [v9]

2024-11-14 Thread Roger Riggs
On Thu, 14 Nov 2024 17:19:02 GMT, Roger Riggs wrote: >> After [JDK-8338411](https://bugs.openjdk.org/browse/JDK-8338411), >> Serialization implementation dependencies on SecurityManager, doPrivildged, >> and AccessController are removed. >> Some refactoring to cleanup the remaining code is expe

Re: RFR: 8344179: SecurityManager cleanup in the ZIP and JAR areas [v3]

2024-11-14 Thread Eirik Bjørsnøs
> Please review this PR which cleans up security manager related code in > `java.util.zip` and `java.util.jar`: > > * `JarFile` and `ZipFile` are updated to use `System::getProperty` instead of > `GetPropertyAction::privilegedGetProperty` > * `ZipFile` is updated to not call SM::checkRead, SM::

Re: RFR: 8344179: SecurityManager cleanup in the ZIP and JAR areas [v3]

2024-11-14 Thread Lance Andersen
On Thu, 14 Nov 2024 20:25:35 GMT, Eirik Bjørsnøs wrote: >> Please review this PR which cleans up security manager related code in >> `java.util.zip` and `java.util.jar`: >> >> * `JarFile` and `ZipFile` are updated to use `System::getProperty` instead >> of `GetPropertyAction::privilegedGetProp

Re: RFR: 8344179: SecurityManager cleanup in the ZIP and JAR areas [v2]

2024-11-14 Thread Lance Andersen
On Thu, 14 Nov 2024 19:59:55 GMT, Sean Mullan wrote: >> Yes, they are 96 and 98 chars long, which means I sympathise with both views >> :) >> >> Unless hearing back from @seanjmullan I'll go with Roger's suggestion of one >> line here. > > I think both are in the 90-100 range. Line length is a

Re: RFR: 8344179: SecurityManager cleanup in the ZIP and JAR areas [v2]

2024-11-14 Thread Sean Mullan
On Thu, 14 Nov 2024 19:58:21 GMT, Eirik Bjørsnøs wrote: >> As long as the line in your ide is around 80 characters or less you are >> good to go. If it is say 100 bytes so you have to scroll, that is when I >> would fold the line. >> >> I think you are OK here > > Yes, they are 96 and 98 cha

Re: RFR: 8344179: SecurityManager cleanup in the ZIP and JAR areas [v2]

2024-11-14 Thread Eirik Bjørsnøs
On Thu, 14 Nov 2024 19:51:33 GMT, Lance Andersen wrote: >> See review comments from @RogerRiggs: >> >> https://github.com/openjdk/jdk/pull/22099#pullrequestreview-2435969401 >> https://github.com/openjdk/jdk/pull/22099#discussion_r1842150753 >> >> where the folding of these lines into one was s

Re: RFR: 8344179: SecurityManager cleanup in the ZIP and JAR areas [v2]

2024-11-14 Thread Lance Andersen
On Thu, 14 Nov 2024 19:45:27 GMT, Eirik Bjørsnøs wrote: >> src/java.base/share/classes/java/util/jar/JarFile.java line 182: >> >>> 180: } >>> 181: RUNTIME_VERSION = >>> Runtime.Version.parse(Integer.toString(runtimeVersion)); >>> 182: String enableMultiRelease = >>> Sys

Re: RFR: 8343039: Remove jdk.internal.misc.InternalLock and usages from java.io [v9]

2024-11-14 Thread Alan Bateman
On Thu, 14 Nov 2024 19:16:34 GMT, Brian Burkhalter wrote: >> Uses of `InternalLock` are removed and `synchronized` is reinstated. > > Brian Burkhalter has updated the pull request with a new target base due to a > merge or a rebase. The incremental webrev excludes the unrelated changes > brough

Re: RFR: 8343125: Correct the documentation for TreeMap's getFloorEntry and getCeilingEntry [v3]

2024-11-14 Thread Stuart Marks
On Thu, 14 Nov 2024 03:23:29 GMT, Naman Nigam wrote: >> As the documentation of getCeilingEntry currently reads, the inference is >> misleading as follows: >> >> if no such entry exists, returns the entry for the least key greater than >> the specified key; >> if no such entry exists (i.e., th

Re: RFR: 8343125: Correct the documentation for TreeMap's getFloorEntry and getCeilingEntry [v3]

2024-11-14 Thread Chen Liang
On Thu, 14 Nov 2024 03:23:29 GMT, Naman Nigam wrote: >> As the documentation of getCeilingEntry currently reads, the inference is >> misleading as follows: >> >> if no such entry exists, returns the entry for the least key greater than >> the specified key; >> if no such entry exists (i.e., th

Re: RFR: 8344179: SecurityManager cleanup in the ZIP and JAR areas [v2]

2024-11-14 Thread Eirik Bjørsnøs
On Thu, 14 Nov 2024 19:30:58 GMT, Sean Mullan wrote: >> Eirik Bjørsnøs has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Fold lines for System::getProperty when reading enableMultiRelease and >> inhibitZip64 > > src/java.base/share/classe

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

2024-11-14 Thread Vladimir Ivanov
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: 8344179: SecurityManager cleanup in the ZIP and JAR areas [v2]

2024-11-14 Thread Sean Mullan
On Thu, 14 Nov 2024 13:21:33 GMT, Eirik Bjørsnøs wrote: >> Please review this PR which cleans up security manager related code in >> `java.util.zip` and `java.util.jar`: >> >> * `JarFile` and `ZipFile` are updated to use `System::getProperty` instead >> of `GetPropertyAction::privilegedGetProp

RFR: 8344246: Unnecessary Hashtable usage in EventSupport.notifiers

2024-11-14 Thread Andrey Turbanov
The field `com.sun.jndi.ldap.EventSupport#notifiers` is always accessed under `lock`. It means extra synchronization from `Hashtable` is not needed. Subtle difference in Hashtable vs Hashmap behavior is that Hashtable doesn't allow `null` keys and `null` values. I've checked all usages of it - on

Re: RFR: 8344183: (zipfs) SecurityManager cleanup in the ZipFS area [v2]

2024-11-14 Thread Eirik Bjørsnøs
On Thu, 14 Nov 2024 19:21:32 GMT, Sean Mullan wrote: > Ok, but your change did not check `UnsupportedOperationException.getCause() > instanceof NoSuchFileException`, it just checked if the exception was > `NoSuchFileException`. For the record, there was a typo in my comment, I meant to say `P

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

2024-11-14 Thread Vladimir Ivanov
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: 8333796: Add missing serialization functionality to sun.reflect.ReflectionFactory [v11]

2024-11-14 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: 8344183: (zipfs) SecurityManager cleanup in the ZipFS area [v2]

2024-11-14 Thread Sean Mullan
On Thu, 14 Nov 2024 16:56:00 GMT, Eirik Bjørsnøs wrote: >> test/jdk/jdk/nio/zipfs/TestPosix.java line 236: >> >>> 234: } >>> 235: return zfpv.readAttributes().group().getName(); >>> 236: } catch (UnsupportedOperationException | NoSuchFileException >>> e) { >> >>

Re: RFR: 8344183: (zipfs) SecurityManager cleanup in the ZipFS area [v3]

2024-11-14 Thread Sean Mullan
On Thu, 14 Nov 2024 17:01:48 GMT, Eirik Bjørsnøs wrote: >> Please review this PR which cleans up SecurityManager-related code following >> JEP-486 integraion. >> >> * `ZipFileSystem` is updated to not perform `AccessController::doPrivileged` >> * `ZipFileSystemProvider` is updated to not perfor

Re: RFR: 8343039: Remove jdk.internal.misc.InternalLock and usages from java.io [v9]

2024-11-14 Thread Brian Burkhalter
> Uses of `InternalLock` are removed and `synchronized` is reinstated. Brian Burkhalter 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 nine additional

Re: RFR: 8344056: Use markdown format for man pages [v2]

2024-11-14 Thread Iris Clark
On Thu, 14 Nov 2024 11:11:54 GMT, Magnus Ihse Bursie wrote: >> Currently, the man pages are stored as troff (a text format) in the open >> repo, and a content-wise identical copy is stored as markdown (another text >> format) in the closed repo. >> >> Since markdown is preferred to troff in te

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

2024-11-14 Thread Jatin Bhateja
> 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) (URShiftVL SRC2, 32) >MulVL (URShiftVL SRC1 , 32) ( A

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

2024-11-14 Thread Jatin Bhateja
On Thu, 14 Nov 2024 02:52:26 GMT, Vladimir Ivanov wrote: >> Jatin Bhateja has refreshed the contents of this pull request, and previous >> commits have been removed. Incremental views are not available. The pull >> request now contains seven commits: >> >> - Removing target specific hooks >>

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

2024-11-14 Thread Jatin Bhateja
On Tue, 12 Nov 2024 21:49:22 GMT, Vladimir Ivanov wrote: >>> In the latest version you added new Ideal nodes (`MulIVL` and `MulUIVL`). I >>> don't see a compelling reason to do so. IMO matcher functionality is more >>> than enough to cover `VPMULDQ` case. `MulIVL` is equivalent to `MulVL` + >>

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

2024-11-14 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: 8344034: Remove security manager dependency in Serialization [v9]

2024-11-14 Thread Sean Mullan
On Thu, 14 Nov 2024 17:19:02 GMT, Roger Riggs wrote: >> After [JDK-8338411](https://bugs.openjdk.org/browse/JDK-8338411), >> Serialization implementation dependencies on SecurityManager, doPrivildged, >> and AccessController are removed. >> Some refactoring to cleanup the remaining code is expe

Re: RFR: 8343125: Correct the documentation for TreeMap's getFloorEntry and getCeilingEntry [v3]

2024-11-14 Thread Archie Cobbs
On Thu, 14 Nov 2024 03:23:29 GMT, Naman Nigam wrote: >> As the documentation of getCeilingEntry currently reads, the inference is >> misleading as follows: >> >> if no such entry exists, returns the entry for the least key greater than >> the specified key; >> if no such entry exists (i.e., th

Re: RFR: 8344168: Change Unsafe base offset from int to long

2024-11-14 Thread Jorn Vernee
On Thu, 14 Nov 2024 05:32:34 GMT, Shaojin Wen wrote: > The type of the Unsafe base offset constant is int, which may cause overflow > when adding int offsets, such as 8343925 (PR #22012). 8343984 (PR #22027) > fixes most of the offset overflows in JDK, but ArraysSupport and CRC32C are > still

Integrated: 8343064: ClassFormatError: Illegal class name from InnerClassLambdaMetafactory

2024-11-14 Thread Chen Liang
On Tue, 5 Nov 2024 18:29:52 GMT, Chen Liang wrote: > After the ClassFile API migration, when serializable lambdas are requested > for hidden class callers, illegal class name is generated for the > serialization methods, which previously had legal yet unusable class names, > as hidden classes

Re: RFR: 8343982: Remove usage of security manager from ClassLoader and related classes [v2]

2024-11-14 Thread Lance Andersen
On Thu, 14 Nov 2024 11:25:08 GMT, Alan Bateman wrote: >> Remove the code for the now defunct SecurityManager execution mode from >> ClassLoader and the built-in class loader implementations. The override of >> getPermissions is removed from the application class loader, and from the >> class l

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

2024-11-14 Thread Lance Andersen
On Thu, 14 Nov 2024 04:14:03 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: 8343704: Bad GC parallelism with processing Cleaner queues [v7]

2024-11-14 Thread Aleksey Shipilev
On Thu, 14 Nov 2024 14:50:21 GMT, Axel Boldt-Christmas wrote: > That is probably correct. I was however thinking that it would only be pooled > asymmetrically as some type of hystereses. So you pool when you remove a node > (switch the head) and keep it far an arbitrary amount of removals. So

Re: RFR: 8344034: Remove security manager dependency in Serialization [v9]

2024-11-14 Thread Roger Riggs
> After [JDK-8338411](https://bugs.openjdk.org/browse/JDK-8338411), > Serialization implementation dependencies on SecurityManager, doPrivildged, > and AccessController are removed. > Some refactoring to cleanup the remaining code is expected. Roger Riggs has updated the pull request incremental

Re: RFR: 8344179: SecurityManager cleanup in the ZIP and JAR areas [v2]

2024-11-14 Thread Roger Riggs
On Thu, 14 Nov 2024 13:21:33 GMT, Eirik Bjørsnøs wrote: >> Please review this PR which cleans up security manager related code in >> `java.util.zip` and `java.util.jar`: >> >> * `JarFile` and `ZipFile` are updated to use `System::getProperty` instead >> of `GetPropertyAction::privilegedGetProp

Re: RFR: 8344034: Remove security manager dependency in Serialization [v8]

2024-11-14 Thread Roger Riggs
> After [JDK-8338411](https://bugs.openjdk.org/browse/JDK-8338411), > Serialization implementation dependencies on SecurityManager, doPrivildged, > and AccessController are removed. > Some refactoring to cleanup the remaining code is expected. Roger Riggs has updated the pull request incremental

Re: RFR: 8343881: java.lang.classfile.Attribute attributeName() method should return Utf8Entry [v3]

2024-11-14 Thread Adam Sotona
> Class-File API usually expose names in a form of > `java.lang.classfile.constantpool.Utf8Entry`. Unfortunately > `java.lang.classfile.Attribute::attributeName` method was omitted during the > API review and it returns inflated `String` value of the name. > > This patch changes return type of

Re: RFR: 8343881: java.lang.classfile.Attribute attributeName() method should return Utf8Entry [v3]

2024-11-14 Thread Adam Sotona
On Thu, 14 Nov 2024 17:04:55 GMT, Chen Liang wrote: >> Adam Sotona has updated the pull request incrementally with one additional >> commit since the last revision: >> >> more fixes > > test/langtools/tools/javap/T6716452.java line 73: > >> 71: error(mm + ": unexpected at

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

2024-11-14 Thread Aleksey Shipilev
On Thu, 14 Nov 2024 14:50:21 GMT, Axel Boldt-Christmas wrote: > I was however thinking that it would only be pooled asymmetrically as some > type of hystereses. So you pool when you remove a node (switch the head) and > keep it far an arbitrary amount of removals. So it would only really waste

Re: RFR: 8344183: (zipfs) SecurityManager cleanup in the ZipFS area [v3]

2024-11-14 Thread Eirik Bjørsnøs
> Please review this PR which cleans up SecurityManager-related code following > JEP-486 integraion. > > * `ZipFileSystem` is updated to not perform `AccessController::doPrivileged` > * `ZipFileSystemProvider` is updated to not perform > `AccessController::doPrivileged` > * The test `TestPosix`

Re: RFR: 8343881: java.lang.classfile.Attribute attributeName() method should return Utf8Entry [v2]

2024-11-14 Thread Chen Liang
On Thu, 14 Nov 2024 17:02:49 GMT, Adam Sotona wrote: >> Class-File API usually expose names in a form of >> `java.lang.classfile.constantpool.Utf8Entry`. Unfortunately >> `java.lang.classfile.Attribute::attributeName` method was omitted during the >> API review and it returns inflated `String`

Re: RFR: 8343881: java.lang.classfile.Attribute attributeName() method should return Utf8Entry [v2]

2024-11-14 Thread Adam Sotona
> Class-File API usually expose names in a form of > `java.lang.classfile.constantpool.Utf8Entry`. Unfortunately > `java.lang.classfile.Attribute::attributeName` method was omitted during the > API review and it returns inflated `String` value of the name. > > This patch changes return type of

Re: RFR: 8344183: (zipfs) SecurityManager cleanup in the ZipFS area [v2]

2024-11-14 Thread Eirik Bjørsnøs
On Thu, 14 Nov 2024 15:48:30 GMT, Sean Mullan wrote: >> Eirik Bjørsnøs has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Update debug logging to not reference privileged operations > > test/jdk/jdk/nio/zipfs/TestPosix.java line 236: > >>

Re: RFR: 8344183: (zipfs) SecurityManager cleanup in the ZipFS area [v3]

2024-11-14 Thread Eirik Bjørsnøs
On Thu, 14 Nov 2024 15:52:32 GMT, Sean Mullan wrote: >> Eirik Bjørsnøs has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - Revert catching of NoSuchFileException in expectedDefaultOwner and >> expectedDefaultGroup >> - Remove @SuppressWa

Integrated: 8342963: TestLargeStub::testUpcall doesn't test upcalls stubs

2024-11-14 Thread Jorn Vernee
On Thu, 24 Oct 2024 18:29:18 GMT, Jorn Vernee wrote: > We were made aware of the fact the `TestLargeStub::testUpcall` was not > actually calling `Linker::upcallStub`. This PR addresses that issue. This pull request has now been integrated. Changeset: 002b985a Author:Jorn Vernee URL:

Re: RFR: 8343039: Remove jdk.internal.misc.InternalLock and usages from java.io [v8]

2024-11-14 Thread Alan Bateman
On Thu, 14 Nov 2024 16:41:12 GMT, Brian Burkhalter wrote: >> Uses of `InternalLock` are removed and `synchronized` is reinstated. > > Brian Burkhalter has updated the pull request incrementally with one > additional commit since the last revision: > > 8343039: Change "resizble" comment in BOS

Re: RFR: 8343039: Remove jdk.internal.misc.InternalLock and usages from java.io [v7]

2024-11-14 Thread Brian Burkhalter
On Thu, 14 Nov 2024 13:18:03 GMT, ExE Boss wrote: >> src/java.base/share/classes/java/io/BufferedOutputStream.java line 89: >> >>> 87: >>> 88: if (getClass() == BufferedOutputStream.class) { >>> 89: // resizable if initialSize < maxSize >> >> I think the comment is confusin

Re: RFR: 8343039: Remove jdk.internal.misc.InternalLock and usages from java.io [v8]

2024-11-14 Thread Brian Burkhalter
> Uses of `InternalLock` are removed and `synchronized` is reinstated. Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision: 8343039: Change "resizble" comment in BOS - Changes: - all: https://git.openjdk.org/jdk/pull/22

Re: RFR: 8342380: Implement JEP 498: Warn upon Use of Memory-Access Methods in sun.misc.Unsafe [v2]

2024-11-14 Thread Viktor Klang
On Wed, 13 Nov 2024 12:05:38 GMT, Alan Bateman wrote: >> Change default value of the command line option >> --sun-misc-unsafe-memory-access from "allow" to "warn". > > Alan Bateman has updated the pull request with a new target base due to a > merge or a rebase. The incremental webrev excludes

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

2024-11-14 Thread Severin Gehwolf
On Tue, 12 Nov 2024 14:29:08 GMT, Alan Bateman wrote: >>> Instead, I think we should look at adding a property such as jdk.patched >> >> You mean a new standard property - observable with >> `System.getProperty("jdk.patched")` as well - which would also show up with >> `java -XshowSettings:pro

Re: RFR: 8344183: (zipfs) SecurityManager cleanup in the ZipFS area [v2]

2024-11-14 Thread Sean Mullan
On Thu, 14 Nov 2024 14:43:50 GMT, Eirik Bjørsnøs wrote: >> Please review this PR which cleans up SecurityManager-related code following >> JEP-486 integraion. >> >> * `ZipFileSystem` is updated to not perform `AccessController::doPrivileged` >> * `ZipFileSystemProvider` is updated to not perfor

Re: RFR: 8343881: java.lang.classfile.Attribute attributeName() method should return Utf8Entry

2024-11-14 Thread Adam Sotona
On Thu, 14 Nov 2024 15:35:17 GMT, Chen Liang wrote: >> Class-File API usually expose names in a form of >> `java.lang.classfile.constantpool.Utf8Entry`. Unfortunately >> `java.lang.classfile.Attribute::attributeName` method was omitted during the >> API review and it returns inflated `String`

RFR: 8343881: java.lang.classfile.Attribute attributeName() method should return Utf8Entry

2024-11-14 Thread Adam Sotona
Class-File API usually expose names in a form of `java.lang.classfile.constantpool.Utf8Entry`. Unfortunately `java.lang.classfile.Attribute::attributeName` method was omitted during the API review and it returns inflated `String` value of the name. This patch changes return type of `java.lang.

Re: RFR: 8343881: java.lang.classfile.Attribute attributeName() method should return Utf8Entry

2024-11-14 Thread Chen Liang
On Thu, 14 Nov 2024 14:19:58 GMT, Adam Sotona wrote: > Class-File API usually expose names in a form of > `java.lang.classfile.constantpool.Utf8Entry`. Unfortunately > `java.lang.classfile.Attribute::attributeName` method was omitted during the > API review and it returns inflated `String` val

Re: RFR: 8344034: Remove security manager dependency in Serialization [v7]

2024-11-14 Thread Roger Riggs
> After [JDK-8338411](https://bugs.openjdk.org/browse/JDK-8338411), > Serialization implementation dependencies on SecurityManager, doPrivildged, > and AccessController are removed. > Some refactoring to cleanup the remaining code is expected. Roger Riggs has updated the pull request with a new

Re: RFR: 8344168: Change Unsafe base offset from int to long

2024-11-14 Thread Chen Liang
On Thu, 14 Nov 2024 05:32:34 GMT, Shaojin Wen wrote: > The type of the Unsafe base offset constant is int, which may cause overflow > when adding int offsets, such as 8343925 (PR #22012). 8343984 (PR #22027) > fixes most of the offset overflows in JDK, but ArraysSupport and CRC32C are > still

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

2024-11-14 Thread Oli Gillespie
On Thu, 14 Nov 2024 13:24:26 GMT, Aleksey Shipilev wrote: >> See the bug for more discussion and reproducer. This PR replaces the ad-hoc >> linked list segmented list of arrays. Arrays are easy targets for GC. There >> are possible improvements here, most glaring is parallelism that is >> curr

  1   2   >