Re: RFR: 8343981: Remove usage of security manager from Thread and related classes [v4]

2024-11-12 Thread Alan Bateman
On Tue, 12 Nov 2024 22:08:42 GMT, Roger Riggs wrote: >> Alan Bateman has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 227 commits: >> >> - Merge branch 'master' into JDK-8343981 >> - Merge commit 'db85090553ab14a84c3ed0a2604dd56c

Re: RFR: 8343984: Fix Unsafe address overflow [v8]

2024-11-12 Thread Per Minborg
On Tue, 12 Nov 2024 23:34:48 GMT, Shaojin Wen wrote: >> In the JDK code, there are some places that may cause Unsafe offset >> overflow. The probability of occurrence is low, but if it occurs, it will >> cause JVM crash. > > Shaojin Wen has updated the pull request incrementally with one additi

Re: RFC: Introduce JDK property jdk.patched for indicating --patch-module at runtime

2024-11-12 Thread Alan Bateman
On 13/11/2024 03:44, David Holmes wrote: The VM already sets properties like  jdk.module.patch.N=<...> when processing --patch-mods. Doesn't that suffice if all you need is a boolean flag to indicate any patching has occurred? I would have thought you'd like to know which module has been pa

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

2024-11-12 Thread Alan Bateman
On Wed, 13 Nov 2024 03:11:41 GMT, Chen Liang wrote: >> Uses of `InternalLock` are removed and `synchronized` is reinstated. > > src/java.base/share/classes/java/io/BufferedOutputStream.java line 88: > >> 86: } >> 87: >> 88: this.buf = new byte[initialSize]; // resizable if initi

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

2024-11-12 Thread Andrey Turbanov
On Tue, 12 Nov 2024 21:59:43 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: 8341260: Add Float16 to jdk.incubator.vector [v11]

2024-11-12 Thread Joe Darcy
On Mon, 11 Nov 2024 02:09:41 GMT, Jatin Bhateja wrote: >> Joe Darcy has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Respond to review feedback. > > src/jdk.incubator.vector/share/classes/jdk/incubator/vector/Float16.java line > 91: > >

Re: RFR: 8341260: Add Float16 to jdk.incubator.vector [v11]

2024-11-12 Thread Jatin Bhateja
On Wed, 30 Oct 2024 05:25:47 GMT, Joe Darcy wrote: >> Port of Float16 from java.lang in the lworld+fp16 branch to >> jdk.incubabor.vector. > > Joe Darcy has updated the pull request incrementally with one additional > commit since the last revision: > > Respond to review feedback. src/jdk.i

Re: RFR: 8341260: Add Float16 to jdk.incubator.vector [v16]

2024-11-12 Thread Joe Darcy
> Port of Float16 from java.lang in the lworld+fp16 branch to > jdk.incubabor.vector. Joe Darcy has updated the pull request incrementally with two additional commits since the last revision: - Implement code review feedback. - Misc cleanups. - Changes: - all: https://git.open

Re: RFR: 8341260: Add Float16 to jdk.incubator.vector [v14]

2024-11-12 Thread Joe Darcy
On Tue, 12 Nov 2024 21:01:36 GMT, Joe Darcy wrote: > > Looks good. Approving the current status. Are there plans for other small > > additions? > > Subsequent to this comment, I did a light clean-up pass over the tests. I'll > do a pass over the Float16 implementation too to make sure previous

Re: RFC: Introduce JDK property jdk.patched for indicating --patch-module at runtime

2024-11-12 Thread David Holmes
Hi Severin, On 13/11/2024 1:33 am, Severin Gehwolf wrote: Hi, For JDK-8343839 it would be useful to have some form of API in order to be able to detect that a currently running Java process has been launched with '--patch-module'. Alan Bateman suggested to expose a boolean JDK property to indi

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

2024-11-12 Thread Chen Liang
On Tue, 12 Nov 2024 21:45:41 GMT, Brian Burkhalter wrote: > Uses of `InternalLock` are removed and `synchronized` is reinstated. https://github.com/openjdk/jdk/tree/5212535a276a92d96ca20bdcfccfbce956febdb1 is a baseline for before virtual threads were integrated. Note that in this period, the

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

2024-11-12 Thread Chen Liang
On Wed, 13 Nov 2024 02:41:05 GMT, ExE Boss wrote: >> Uses of `InternalLock` are removed and `synchronized` is reinstated. > > src/java.base/share/classes/java/io/BufferedInputStream.java line 241: > >> 239: } >> 240: initialSize = size; >> 241: buf = new byte[size]; > >

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

2024-11-12 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: 8343039: Remove jdk.internal.misc.InternalLock and usages from java.io

2024-11-12 Thread ExE Boss
On Tue, 12 Nov 2024 21:45:41 GMT, Brian Burkhalter wrote: > Uses of `InternalLock` are removed and `synchronized` is reinstated. src/java.base/share/classes/java/io/BufferedInputStream.java line 241: > 239: } > 240: initialSize = size; > 241: buf = new byte[size]; This 

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

2024-11-12 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: 8343958: Remove security manager impl in java.lang.Process and java.lang.Runtime.exec [v4]

2024-11-12 Thread Roger Riggs
> Refactor removing the dependencies on SecurityManager, doPrivileged, and > AccessController. Roger Riggs has updated the pull request incrementally with one additional commit since the last revision: Revert unnecessary copyright change in ProcessEnvironment.java. Fix code style in Process

Re: RFR: 8343875: Minor improvements of jpackage test library [v2]

2024-11-12 Thread Alexander Matveev
On Wed, 13 Nov 2024 02:02:27 GMT, Alexey Semenyuk wrote: >> The PR affects jpackage test library only. Changes: >> >> - Removed dependencies on `java.io.File`. `java.io.File.pathSeparator` is >> still used as there is no better alternative. >> - Use `TKit.concatMessages()` instead of `String.fo

Re: RFR: 8341184: Clean up the interaction between the launcher native code and the LauncherHelper [v6]

2024-11-12 Thread Jaikiran Pai
> Can I please get a review of this change, which simplifies the interaction > between the `java` launcher's native code with the > `sun.launcher.LauncherHelper`? > > As noted in https://bugs.openjdk.org/browse/JDK-8341184, this proposed change > reduces the back and forth between the launcher

Re: RFR: 8343875: Minor improvements of jpackage test library [v2]

2024-11-12 Thread Alexey Semenyuk
> The PR affects jpackage test library only. Changes: > > - Removed dependencies on `java.io.File`. `java.io.File.pathSeparator` is > still used as there is no better alternative. > - Use `TKit.concatMessages()` instead of `String.format()` in > TKit.assert...() methods. > - Added unit tests for

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

2024-11-12 Thread Jiangli Zhou
On Mon, 4 Nov 2024 21:30:10 GMT, Magnus Ihse Bursie wrote: >>> I can confirm that with your patch, and clang, and a complete wipe + >>> rebuild, the .java file loading works. I'm currently testing with gcc as >>> well. >> >> Good. >> >> I tested using gcc. > > @jianglizhou Thank you for your

Re: RFR: 8344039: Remove security manager dependency in java.time

2024-11-12 Thread Naoto Sato
On Tue, 12 Nov 2024 15:41:01 GMT, Roger Riggs wrote: > After [JDK-8338411](https://bugs.openjdk.org/browse/JDK-8338411), > Serialization implementation dependencies on doPriviledged and > AccessController are removed. > Some refactoring to cleanup the remaining code is expected. src/java.base/

Re: RFR: 8343704: Bad GC parallelism with processing Cleaner queues

2024-11-12 Thread Brent Christian
On Tue, 12 Nov 2024 16:00:39 GMT, Aleksey Shipilev wrote: > See the bug for more discussion and reproducer. This PR replaces the ad-hoc > linked list with the `ArrayList` wrapper that manages synchronization, search > and replacements efficiently. Arrays are easy targets for GC. There are > po

Re: RFR: 8343064: ClassFormatError: Illegal class name from InnerClassLambdaMetafactory [v3]

2024-11-12 Thread Jorn Vernee
On Tue, 12 Nov 2024 18:00:01 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 cla

Re: RFR: 8343064: ClassFormatError: Illegal class name from InnerClassLambdaMetafactory [v3]

2024-11-12 Thread Chen Liang
On Tue, 12 Nov 2024 23:13:16 GMT, Jorn Vernee wrote: >> Chen Liang 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 six additional >> commits sin

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

2024-11-12 Thread David Alayachew
Apologies, I did not mean to add reduce(). Please ignore that part. On Tue, Nov 12, 2024, 6:37 PM David Alayachew wrote: > Oh sure, I expect something like distinct() to pull everything. In order > to know if something is distinct, you have to do some variant of "check > against everyone else".

Re: RFR: 8343958: Remove security manager impl in java.lang.Process and java.lang.Runtime.exec [v3]

2024-11-12 Thread Brent Christian
On Tue, 12 Nov 2024 18:05:46 GMT, Roger Riggs wrote: >> Refactor removing the dependencies on SecurityManager, doPrivileged, and >> AccessController. > > Roger Riggs has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains 228 commits: > >

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

2024-11-12 Thread David Alayachew
Oh sure, I expect something like distinct() to pull everything. In order to know if something is distinct, you have to do some variant of "check against everyone else". Whether that is holding all instances in memory or their hashes, it's clear from a glance that you will need to look at everything

Re: RFR: 8343984: Fix Unsafe address overflow [v8]

2024-11-12 Thread Shaojin Wen
> In the JDK code, there are some places that may cause Unsafe offset overflow. > The probability of occurrence is low, but if it occurs, it will cause JVM > crash. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: Update src/java.base

Re: RFR: 8343191: Cgroup v1 subsystem fails to set subsystem path [v3]

2024-11-12 Thread Sergey Chernyshev
On Tue, 12 Nov 2024 19:41:50 GMT, Severin Gehwolf wrote: >> Sergey Chernyshev 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 four additional >>

Re: RFR: 8343875: Minor improvements of jpackage test library

2024-11-12 Thread Alexander Matveev
On Fri, 8 Nov 2024 23:57:58 GMT, Alexey Semenyuk wrote: > The PR affects jpackage test library only. Changes: > > - Removed dependencies on `java.io.File`. `java.io.File.pathSeparator` is > still used as there is no better alternative. > - Use `TKit.concatMessages()` instead of `String.format()

RFR: 8343875: Minor improvements of jpackage test library

2024-11-12 Thread Alexey Semenyuk
The PR affects jpackage test library only. Changes: - Removed dependencies on `java.io.File`. `java.io.File.pathSeparator` is still used as there is no better alternative. - Use `TKit.concatMessages()` instead of `String.format()` in TKit.assert...() methods. - Added unit tests for all TKit.asse

Re: RFR: 8343875: Minor improvements of jpackage test library

2024-11-12 Thread Alexey Semenyuk
On Fri, 8 Nov 2024 23:57:58 GMT, Alexey Semenyuk wrote: > The PR affects jpackage test library only. Changes: > > - Removed dependencies on `java.io.File`. `java.io.File.pathSeparator` is > still used as there is no better alternative. > - Use `TKit.concatMessages()` instead of `String.format()

Re: RFR: 8343981: Remove usage of security manager from Thread and related classes [v4]

2024-11-12 Thread Roger Riggs
On Tue, 12 Nov 2024 18:47:46 GMT, Alan Bateman wrote: >> Removes the SecurityManager usage from Thread + friends. >> >> In Thread, the getContextClassLoader method is no longer caller-sensitive >> method. >> >> JavaLangAccess.newThreadWithAcc is removed and jdk.internal.access is no >> longer

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

2024-11-12 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: 8341137: Optimize long vector multiplication using x86 VPMUL[U]DQ instruction [v2]

2024-11-12 Thread Vladimir Ivanov
On Sun, 10 Nov 2024 07:40:30 GMT, Jatin Bhateja 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` + >> `has

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

2024-11-12 Thread Brian Burkhalter
On Tue, 12 Nov 2024 21:45:41 GMT, Brian Burkhalter wrote: > Uses of `InternalLock` are removed and `sycnhronized` is reinstated. Dynamic buffer resizing in `BufferedOutputStream` and `BufferedWriter` is retained. The `jdk.internal.access` classes `JavaIOPrintStreamAccess` and `JavaIOPrintWrit

RFR: 8343039: Remove jdk.internal.misc.InternalLock and usages from java.io

2024-11-12 Thread Brian Burkhalter
Uses of `InternalLock` are removed and `sycnhronized` is reinstated. - Commit messages: - 8343039: Remove jdk.internal.misc.InternalLock and usages from java.io Changes: https://git.openjdk.org/jdk/pull/22048/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22048&range=00

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

2024-11-12 Thread Doug Lea
On Tue, 12 Nov 2024 14:14:18 GMT, Viktor Klang wrote: >> Doug Lea has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Address review comments > > src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 1870: > >> 1868:

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

2024-11-12 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: 8341260: Add Float16 to jdk.incubator.vector [v14]

2024-11-12 Thread Joe Darcy
On Tue, 12 Nov 2024 19:15:45 GMT, Raffaello Giulietti wrote: > Looks good. Approving the current status. Are there plans for other small > additions? Subsequent to this comment, I did a light clean-up pass over the tests. I'll do a pass over the Float16 implementation too to make sure previou

Re: RFR: 8342682: Errors related to unused code on Windows after 8339120 in dt_shmem jdwp security and jpackage [v7]

2024-11-12 Thread Alexander Matveev
On Mon, 11 Nov 2024 09:51:35 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> u

Re: RFR: 8343426: ConcurrentSkipListMap.spliterator() can no longer split the stream

2024-11-12 Thread Viktor Klang
On Tue, 12 Nov 2024 19:31:21 GMT, kabutz wrote: >>> @kabutz Let me know how you want to proceed. 👍 >> >> 've made the changes and sent another PR to the branch holding the changes. >> Hope that's the right way of doing it... > >> @kabutz The update for CSLM is based on @DougLea's proposal on th

Re: RFR: 8341260: Add Float16 to jdk.incubator.vector [v15]

2024-11-12 Thread Joe Darcy
> Port of Float16 from java.lang in the lworld+fp16 branch to > jdk.incubabor.vector. Joe Darcy has updated the pull request incrementally with one additional commit since the last revision: Cleanup pass on tests. - Changes: - all: https://git.openjdk.org/jdk/pull/21574/files

Re: RFR: 8343958: Remove security manager impl in java.lang.Process and java.lang.Runtime.exec [v3]

2024-11-12 Thread Sean Mullan
On Tue, 12 Nov 2024 18:05:46 GMT, Roger Riggs wrote: >> Refactor removing the dependencies on SecurityManager, doPrivileged, and >> AccessController. > > Roger Riggs has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains 228 commits: > >

Re: RFR: 8343191: Cgroup v1 subsystem fails to set subsystem path [v3]

2024-11-12 Thread Severin Gehwolf
On Thu, 7 Nov 2024 22:31:21 GMT, Sergey Chernyshev wrote: >> Cgroup V1 subsustem fails to initialize mounted controllers properly in >> certain cases, that may lead to controllers left undetected/inactive. We >> observed the behavior in CloudFoundry deployments, it affects also host >> system

Re: RFR: 8343191: Cgroup v1 subsystem fails to set subsystem path [v4]

2024-11-12 Thread Sergey Chernyshev
> Cgroup V1 subsustem fails to initialize mounted controllers properly in > certain cases, that may lead to controllers left undetected/inactive. We > observed the behavior in CloudFoundry deployments, it affects also host > systems. > > The relevant /proc/self/mountinfo line is > > > 2207 21

Re: RFR: 8343191: Cgroup v1 subsystem fails to set subsystem path [v3]

2024-11-12 Thread Severin Gehwolf
On Tue, 12 Nov 2024 14:59:41 GMT, Sergey Chernyshev wrote: > > The JBS issue doesn't mention `NullPointerException`. It would be good to > > list the observed NPE issue. > > Example for NPE: > > ``` > public class Test { > public static void main(String[] args) { > java.lang.manag

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

2024-11-12 Thread Kevin Bourrillion
On Tue, 12 Nov 2024 13:17:13 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8343191: Cgroup v1 subsystem fails to set subsystem path [v3]

2024-11-12 Thread Severin Gehwolf
On Tue, 12 Nov 2024 19:09:54 GMT, Sergey Chernyshev wrote: > > Edit: Yet, cg v2 will get into trouble since there, for example on rootless > > podman on cg v2 you'd end up with this instead: > > ``` > > [0.008s][trace][os,container] OSContainer::init: Initializing Container > > Support > > [0.

Re: RFR: 8343426: ConcurrentSkipListMap.spliterator() can no longer split the stream

2024-11-12 Thread kabutz
On Tue, 12 Nov 2024 15:41:36 GMT, kabutz wrote: >>> @kabutz I think @DougLea identified some potential edge-cases with the >>> proposed solution, so I added his suggested diff to the JBS Issue for >>> reference. >> >> Indeed, I didn't check what happens when we create a spliterator on an empty

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

2024-11-12 Thread Alan Bateman
On Tue, 12 Nov 2024 18:28:33 GMT, Kevin Bourrillion wrote: > About the version string: I think I first proposed including it. If we don't, > then I think that `-version` ought to be in the shortlist of options we show > here (not just in full help), so it doesn't become a _three_ step goose cha

RFR: 8344039: Remove security manager dependency in java.time

2024-11-12 Thread Roger Riggs
After [JDK-8338411](https://bugs.openjdk.org/browse/JDK-8338411), Serialization implementation dependencies on doPriviledged and AccessController are removed. Some refactoring to cleanup the remaining code is expected. - Commit messages: - Merge branch 'master' into 8344039-sm-clean

Re: RFR: 8343984: Fix Unsafe address overflow [v7]

2024-11-12 Thread Andrey Turbanov
On Tue, 12 Nov 2024 16:30:12 GMT, Shaojin Wen wrote: >> In the JDK code, there are some places that may cause Unsafe offset >> overflow. The probability of occurrence is low, but if it occurs, it will >> cause JVM crash. > > Shaojin Wen has updated the pull request incrementally with one additi

Re: RFR: 8343981: Remove usage of security manager from Thread and related classes [v4]

2024-11-12 Thread Alan Bateman
On Tue, 12 Nov 2024 19:06:31 GMT, Daniel Fuchs wrote: > The proposed changes look reasonable to me. Good simplification of the code. > I had some uncertainty about the JNDI changes but I couldn't find any place > in JNDI where a Subject would be extracted from the ACC associated with the > cre

Re: RFR: 8341260: Add Float16 to jdk.incubator.vector [v14]

2024-11-12 Thread Raffaello Giulietti
On Tue, 12 Nov 2024 18:40:34 GMT, Joe Darcy wrote: >> Port of Float16 from java.lang in the lworld+fp16 branch to >> jdk.incubabor.vector. > > Joe Darcy has updated the pull request incrementally with one additional > commit since the last revision: > > Fix bug parsing short inputs. Looks g

Re: RFR: 8343426: ConcurrentSkipListMap.spliterator() can no longer split the stream [v3]

2024-11-12 Thread kabutz
> Since Java 10, spliterators for the ConcurrentSkipListMap were pointing to > the head, which has item == null, rather than to the first element. The > trySplit() method no longer worked, and always returned null. Therefore, > parallel streams have not worked for ConcurrentSkipListMap and > Co

Re: RFR: 8343958: Remove security manager impl in java.lang.Process and java.lang.Runtime.exec [v3]

2024-11-12 Thread Andrey Turbanov
On Tue, 12 Nov 2024 18:05:46 GMT, Roger Riggs wrote: >> Refactor removing the dependencies on SecurityManager, doPrivileged, and >> AccessController. > > Roger Riggs has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains 228 commits: > >

Re: RFR: 8343191: Cgroup v1 subsystem fails to set subsystem path [v3]

2024-11-12 Thread Sergey Chernyshev
On Thu, 7 Nov 2024 22:31:21 GMT, Sergey Chernyshev wrote: >> Cgroup V1 subsustem fails to initialize mounted controllers properly in >> certain cases, that may lead to controllers left undetected/inactive. We >> observed the behavior in CloudFoundry deployments, it affects also host >> system

Re: RFR: 8343981: Remove usage of security manager from Thread and related classes [v4]

2024-11-12 Thread Daniel Fuchs
On Tue, 12 Nov 2024 18:47:46 GMT, Alan Bateman wrote: >> Removes the SecurityManager usage from Thread + friends. >> >> In Thread, the getContextClassLoader method is no longer caller-sensitive >> method. >> >> JavaLangAccess.newThreadWithAcc is removed and jdk.internal.access is no >> longer

Re: RFR: 8341260: Add Float16 to jdk.incubator.vector [v14]

2024-11-12 Thread Joe Darcy
> Port of Float16 from java.lang in the lworld+fp16 branch to > jdk.incubabor.vector. Joe Darcy has updated the pull request incrementally with one additional commit since the last revision: Fix bug parsing short inputs. - Changes: - all: https://git.openjdk.org/jdk/pull/21574

Re: RFR: 8343981: Remove usage of security manager from Thread and related classes [v4]

2024-11-12 Thread Alan Bateman
> Removes the SecurityManager usage from Thread + friends. > > In Thread, the getContextClassLoader method is no longer caller-sensitive > method. > > JavaLangAccess.newThreadWithAcc is removed and jdk.internal.access is no > longer exported to java.naming. The usage of newThreadWithAcc is remo

Re: RFR: 8341260: Add Float16 to jdk.incubator.vector [v11]

2024-11-12 Thread Joe Darcy
On Tue, 12 Nov 2024 12:49:01 GMT, Raffaello Giulietti wrote: >> Thanks for catching that; fix and tests added in subsequent push. > > Single digit inputs, e.g., `Float16.valueOf"2")` throw as well. Addressed in most recent push; thanks. - PR Review Comment: https://git.openjdk.org

Re: RFR: 8343981: Remove usage of security manager from Thread and related classes [v3]

2024-11-12 Thread Alan Bateman
> Removes the SecurityManager usage from Thread + friends. > > In Thread, the getContextClassLoader method is no longer caller-sensitive > method. > > JavaLangAccess.newThreadWithAcc is removed and jdk.internal.access is no > longer exported to java.naming. The usage of newThreadWithAcc is remo

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

2024-11-12 Thread Kevin Bourrillion
On Tue, 12 Nov 2024 13:17:13 GMT, Jan Lahoda wrote: >> Currently, running `java` without any parameters will lead to an output that >> is a full `--help`, which is over 100 lines (on my computer at least), and >> it feels overwhelming. And many people might actually want to run >> JShell/REPL,

Re: RFR: 8343064: ClassFormatError: Illegal class name from InnerClassLambdaMetafactory [v2]

2024-11-12 Thread Chen Liang
On Tue, 5 Nov 2024 19:21:58 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 clas

Re: RFR: 8343958: Remove security manager impl in java.lang.Process and java.lang.Runtime.exec [v3]

2024-11-12 Thread Roger Riggs
> Refactor removing the dependencies on SecurityManager, doPrivileged, and > AccessController. Roger Riggs has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 228 commits: - Merge branch 'master' into 8343958-process-sm-cleanup - corre

Re: RFR: 8343064: ClassFormatError: Illegal class name from InnerClassLambdaMetafactory [v3]

2024-11-12 Thread Chen Liang
> 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 cannot be described by a `CONSTANT_Class_info`. > >

Re: RFR: 8343426: ConcurrentSkipListMap.spliterator() can no longer split the stream

2024-11-12 Thread Viktor Klang
On Tue, 12 Nov 2024 15:41:36 GMT, kabutz wrote: >>> @kabutz I think @DougLea identified some potential edge-cases with the >>> proposed solution, so I added his suggested diff to the JBS Issue for >>> reference. >> >> Indeed, I didn't check what happens when we create a spliterator on an empty

Re: RFR: 8343984: Fix Unsafe address overflow [v6]

2024-11-12 Thread Alan Bateman
On Tue, 12 Nov 2024 15:54:00 GMT, Shaojin Wen wrote: >> In the JDK code, there are some places that may cause Unsafe offset >> overflow. The probability of occurrence is low, but if it occurs, it will >> cause JVM crash. > > Shaojin Wen has updated the pull request incrementally with one additi

Re: RFR: 8343981: Remove usage of security manager from Thread and related classes [v2]

2024-11-12 Thread Alan Bateman
> Removes the SecurityManager usage from Thread + friends. > > In Thread, the getContextClassLoader method is no longer caller-sensitive > method. > > JavaLangAccess.newThreadWithAcc is removed and jdk.internal.access is no > longer exported to java.naming. The usage of newThreadWithAcc is remo

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

2024-11-12 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: 8343958: Remove security manager impl in java.lang.Process and java.lang.Runtime.exec [v2]

2024-11-12 Thread Roger Riggs
> Refactor removing the dependencies on SecurityManager, doPrivileged, and > AccessController. Roger Riggs has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 226 commits: - Simplify the generation of the exception message. The file

Integrated: 8338411: Implement JEP 486: Permanently Disable the Security Manager

2024-11-12 Thread Sean Mullan
On Mon, 14 Oct 2024 13:52:24 GMT, Sean Mullan wrote: > This is the implementation of JEP 486: Permanently Disable the Security > Manager. See [JEP 486](https://openjdk.org/jeps/486) for more details. The > [CSR](https://bugs.openjdk.org/browse/JDK-8338412) describes in detail the > main change

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

2024-11-12 Thread Sandhya Viswanathan
On Sun, 10 Nov 2024 07:36:55 GMT, Jatin Bhateja wrote: >> Yes, this should ensure 0x. > > We land here only after checking if inputs are uints, didn't want redundant > match, its just a convince routine for forwarding inputs. I will create a > lambda for this. uint check only ensures v

Re: RFR: 8342566: Improve javadoc of java.lang.annotation.ElementType [v3]

2024-11-12 Thread Kevin Bourrillion
> 8342566: Improve javadoc of java.lang.annotation.ElementType Kevin Bourrillion 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 commit

Re: RFR: 8344023: Unnecessary Hashtable usage in LdapClient.defaultBinaryAttrs

2024-11-12 Thread Daniel Fuchs
On Tue, 5 Nov 2024 12:49:04 GMT, Andrey Turbanov wrote: > Content of Hashtable `com.sun.jndi.ldap.LdapClient#defaultBinaryAttrs` is > fully initialized in `` block. > It means we can replace legacy synchronized `Hashtable` with immutable set. Thanks for running the tests @AlekseiEfimov ---

Re: RFR: 8344034: Remove security manager dependency in Serialization

2024-11-12 Thread Alan Bateman
On Tue, 12 Nov 2024 15:09:23 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 expected

Re: RFR: 8341260: Add Float16 to jdk.incubator.vector [v13]

2024-11-12 Thread Joe Darcy
> Port of Float16 from java.lang in the lworld+fp16 branch to > jdk.incubabor.vector. Joe Darcy has updated the pull request incrementally with one additional commit since the last revision: Fix typos founds in code review. - Changes: - all: https://git.openjdk.org/jdk/pull/21

Re: RFR: 8343984: Fix Unsafe address overflow [v7]

2024-11-12 Thread Chen Liang
On Tue, 12 Nov 2024 16:30:12 GMT, Shaojin Wen wrote: >> In the JDK code, there are some places that may cause Unsafe offset >> overflow. The probability of occurrence is low, but if it occurs, it will >> cause JVM crash. > > Shaojin Wen has updated the pull request incrementally with one additi

Re: RFR: 8343984: Fix Unsafe address overflow [v7]

2024-11-12 Thread Alan Bateman
On Tue, 12 Nov 2024 16:37:28 GMT, Shaojin Wen wrote: > @liach provided a new idea, which is to change the type of > jdk.internal.misc.Unsafe.ARRAY_XXX_OFFSET from int to long. I think @liach's > idea is better, that is the way to completely solve this problem. I discussed this briefly with him

RFR: 8343981: Remove usage of security manager from Thread and related classes

2024-11-12 Thread Alan Bateman
Removes the SecurityManager usage from Thread + friends. In Thread, the getContextClassLoader method is no longer caller-sensitive method. JavaLangAccess.newThreadWithAcc is removed and jdk.internal.access is no longer exported to java.naming. The usage of newThreadWithAcc is removed from com.

Re: RFR: 8343984: Fix Unsafe address overflow [v7]

2024-11-12 Thread Shaojin Wen
On Tue, 12 Nov 2024 16:30:12 GMT, Shaojin Wen wrote: >> In the JDK code, there are some places that may cause Unsafe offset >> overflow. The probability of occurrence is low, but if it occurs, it will >> cause JVM crash. > > Shaojin Wen has updated the pull request incrementally with one additi

Re: RFR: 8343984: Fix Unsafe address overflow [v7]

2024-11-12 Thread Shaojin Wen
> In the JDK code, there are some places that may cause Unsafe offset overflow. > The probability of occurrence is low, but if it occurs, it will cause JVM > crash. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: fix copyright -

RFR: 8344034: Remove security manager dependency in Serialization

2024-11-12 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. - Depends on: https://git.openjdk.org/jdk/pull/

Re: RFR: 8343984: Fix Unsafe address overflow [v5]

2024-11-12 Thread Alan Bateman
On Tue, 12 Nov 2024 12:10:07 GMT, Alan Bateman wrote: >> Shaojin Wen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> rename address to offset, from @AlanBateman > > Marked as reviewed by alanb (Reviewer). > @AlanBateman @minborg Sorry,

Re: RFR: 8343286: Missing unchecked cast warning in polymorphic method call [v6]

2024-11-12 Thread Vicente Romero
> Javac is not issuing a mandated unchecked cast warning for code like: > > > import java.lang.invoke.VarHandle; > > class VarHandleCast { > VarHandle vh; > V method(Object obj) { > return (V)vh.getAndSet(this, obj); > } > } > > > according to the spec the return type i

Re: RFR: 8343704: Bad GC parallelism with processing Cleaner queues

2024-11-12 Thread Aleksey Shipilev
On Tue, 12 Nov 2024 16:00:39 GMT, Aleksey Shipilev wrote: > See the bug for more discussion and reproducer. This PR replaces the linked > list with an `ArrayList` wrapper that manages synchronization, search and > replacements effectively. There are possible improvements here, most glaring > i

Re: RFR: 8338411: Implement JEP 486: Permanently Disable the Security Manager [v11]

2024-11-12 Thread Alexey Ivanov
On Tue, 12 Nov 2024 14:44:55 GMT, Sean Mullan wrote: >> This is the implementation of JEP 486: Permanently Disable the Security >> Manager. See [JEP 486](https://openjdk.org/jeps/486) for more details. The >> [CSR](https://bugs.openjdk.org/browse/JDK-8338412) describes in detail the >> main ch

RFR: 8343704: Bad GC parallelism with processing Cleaner queues

2024-11-12 Thread Aleksey Shipilev
See the bug for more discussion and reproducer. This PR replaces the linked list with an `ArrayList` wrapper that manages synchronization, search and replacements effectively. There are possible improvements here, most glaring is parallelism that is currently knee-capped by global synchronizatio

Re: RFR: 8343286: Missing unchecked cast warning in polymorphic method call [v5]

2024-11-12 Thread Vicente Romero
> Javac is not issuing a mandated unchecked cast warning for code like: > > > import java.lang.invoke.VarHandle; > > class VarHandleCast { > VarHandle vh; > V method(Object obj) { > return (V)vh.getAndSet(this, obj); > } > } > > > according to the spec the return type i

Re: RFR: 8344023: Unnecessary Hashtable usage in LdapClient.defaultBinaryAttrs

2024-11-12 Thread Aleksei Efimov
On Tue, 5 Nov 2024 12:49:04 GMT, Andrey Turbanov wrote: > Content of Hashtable `com.sun.jndi.ldap.LdapClient#defaultBinaryAttrs` is > fully initialized in `` block. > It means we can replace legacy synchronized `Hashtable` with immutable set. The changes look good to me. Also, I've launched exi

Re: RFR: 8338411: Implement JEP 486: Permanently Disable the Security Manager [v11]

2024-11-12 Thread Sean Coffey
On Tue, 12 Nov 2024 14:44:55 GMT, Sean Mullan wrote: >> This is the implementation of JEP 486: Permanently Disable the Security >> Manager. See [JEP 486](https://openjdk.org/jeps/486) for more details. The >> [CSR](https://bugs.openjdk.org/browse/JDK-8338412) describes in detail the >> main ch

Re: RFR: 8343984: Fix Unsafe address overflow [v5]

2024-11-12 Thread Shaojin Wen
On Tue, 12 Nov 2024 12:10:07 GMT, Alan Bateman wrote: >> Shaojin Wen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> rename address to offset, from @AlanBateman > > Marked as reviewed by alanb (Reviewer). @AlanBateman @minborg Sorry, a

Re: RFR: 8343426: ConcurrentSkipListMap.spliterator() can no longer split the stream [v2]

2024-11-12 Thread kabutz
> Since Java 10, spliterators for the ConcurrentSkipListMap were pointing to > the head, which has item == null, rather than to the first element. The > trySplit() method no longer worked, and always returned null. Therefore, > parallel streams have not worked for ConcurrentSkipListMap and > Co

Re: RFR: 8338411: Implement JEP 486: Permanently Disable the Security Manager [v11]

2024-11-12 Thread Lance Andersen
On Tue, 12 Nov 2024 14:44:55 GMT, Sean Mullan wrote: >> This is the implementation of JEP 486: Permanently Disable the Security >> Manager. See [JEP 486](https://openjdk.org/jeps/486) for more details. The >> [CSR](https://bugs.openjdk.org/browse/JDK-8338412) describes in detail the >> main ch

Re: RFR: 8343426: ConcurrentSkipListMap.spliterator() can no longer split the stream

2024-11-12 Thread Viktor Klang
On Tue, 12 Nov 2024 15:41:36 GMT, kabutz wrote: >>> @kabutz I think @DougLea identified some potential edge-cases with the >>> proposed solution, so I added his suggested diff to the JBS Issue for >>> reference. >> >> Indeed, I didn't check what happens when we create a spliterator on an empty

Re: RFR: 8343426: ConcurrentSkipListMap.spliterator() can no longer split the stream

2024-11-12 Thread Viktor Klang
On Tue, 12 Nov 2024 15:41:36 GMT, kabutz wrote: >>> @kabutz I think @DougLea identified some potential edge-cases with the >>> proposed solution, so I added his suggested diff to the JBS Issue for >>> reference. >> >> Indeed, I didn't check what happens when we create a spliterator on an empty

Re: RFR: 8343984: Fix Unsafe address overflow [v6]

2024-11-12 Thread Shaojin Wen
> In the JDK code, there are some places that may cause Unsafe offset overflow. > The probability of occurrence is low, but if it occurs, it will cause JVM > crash. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: more fix unsafe addr

Re: RFR: 8343426: ConcurrentSkipListMap.spliterator() can no longer split the stream

2024-11-12 Thread kabutz
On Mon, 4 Nov 2024 16:14:35 GMT, kabutz wrote: >> Sure, where should I add that test? > >> @kabutz I think @DougLea identified some potential edge-cases with the >> proposed solution, so I added his suggested diff to the JBS Issue for >> reference. > > Indeed, I didn't check what happens when

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

2024-11-12 Thread Severin Gehwolf
On Tue, 12 Nov 2024 14:34:45 GMT, Severin Gehwolf wrote: >> Yes, I'm wondering if a JDK-specific (rather than standard) property could >> be more widely useful as it would allow observability tools to know that the >> JDK has been patched. It would be good to get wider input on this. > > OK, th

  1   2   >