RFR: 8318668: java/lang/management/MemoryMXBean/CollectionUsageThreshold.java fails with Xcomp

2024-11-16 Thread Ramkumar Sunderbabu
Trivial change to exclude the test from running with Xcomp flag. The test fails because the number of GCs as reported by the MXBean doesn't match the expected number. This is due to the additional GC happening due to CodeCache crossing its threshold. We could increase the code cache or restrict

Re: RFR: 8344327: SM cleanup in jdk.unsupported ReflectionFactory

2024-11-16 Thread Joe Darcy
On Sat, 16 Nov 2024 07:59:15 GMT, Alan Bateman wrote: > The CSR for JEP 486 included all the API changes for the supported APIs. With > this PR we are in grey area of "critical internal APIs" that are > undocumented. We have been doing CSRs whenever we remove these anything from > jdk.unsuppor

Re: RFR: 8344319: SM cleanup in jdk.dynlink module

2024-11-16 Thread Attila Szegedi
On Fri, 15 Nov 2024 16:38:53 GMT, Roger Riggs wrote: > Refactor to remove use of SecurityManager Hey Roger, thanks for doing this no doubt unglamorous maintenance task. I reviewed it, and it mostly looks good, there's few things I thought about maybe taking a step further (and one thing I'd pr

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

2024-11-16 Thread Chen Liang
On Fri, 15 Nov 2024 19:30:06 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: 8343704: Bad GC parallelism with processing Cleaner queues [v10]

2024-11-16 Thread Kelvin Nilsen
On Fri, 15 Nov 2024 19:30:06 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: 8344289: SM cleanup in jdk.internal.util [v2]

2024-11-16 Thread Eirik Bjørsnøs
On Fri, 15 Nov 2024 15:43:08 GMT, Eirik Bjørsnøs wrote: >> Please review this PR to clean up `RandomSupport`, `ClassFileDumper` and >> `StaticProperty` in the `jdk.internal.util` namespace: >> >> * `RandomSupport` is updated to replace an `AccessController::doPrivileged` >> call with `Boolean:

RFR: 8344319: SM cleanup in jdk.dynlink module

2024-11-16 Thread Roger Riggs
Refactor to remove use of SecurityManager - Commit messages: - 8344319: SM cleanup in jdk.dynlink module Changes: https://git.openjdk.org/jdk/pull/22152/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22152&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8344319 Sta

Re: RFR: 8344319: SM cleanup in jdk.dynlink module

2024-11-16 Thread Jaikiran Pai
On Fri, 15 Nov 2024 16:38:53 GMT, Roger Riggs wrote: > Refactor to remove use of SecurityManager Hello Roger, there's a typo in the JBS title (and thus this PR title too). The module name should have been `jdk.dynalink`. - PR Comment: https://git.openjdk.org/jdk/pull/22152#issueco

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

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

Integrated: 8344289: SM cleanup in jdk.internal.util

2024-11-16 Thread Eirik Bjørsnøs
On Fri, 15 Nov 2024 09:35:17 GMT, Eirik Bjørsnøs wrote: > Please review this PR to clean up `RandomSupport`, `ClassFileDumper` and > `StaticProperty` in the `jdk.internal.util` namespace: > > * `RandomSupport` is updated to replace an `AccessController::doPrivileged` > call with `Boolean::getB

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

2024-11-16 Thread Ioi Lam
On Fri, 15 Nov 2024 16:38:20 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

Withdrawn: 8344336: Remove class System.CallersHolder, leftover from JEP468

2024-11-16 Thread Eirik Bjørsnøs
On Fri, 15 Nov 2024 21:36:24 GMT, Eirik Bjørsnøs wrote: > Please review this trivial cleanup PR which removes the nested static private > class `System.CallersHolder`. > > This class was used pre JEP486 to track callers of > `System::setSecurityManager` such that warnings were printed only onc

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

2024-11-16 Thread David Holmes
On Fri, 15 Nov 2024 00:07:07 GMT, Magnus Ihse Bursie 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 > m

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

2024-11-16 Thread Alan Bateman
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: 8344168: Change Unsafe base offset from int to long

2024-11-16 Thread Alan Bateman
On Fri, 15 Nov 2024 01:05:10 GMT, ExE Boss wrote: >> Doesn't this break any apps that use these offsets? Aren't these fields >> part of the public API of Unsafe, so changing them requires a CSR? > > @dean-long >> Doesn't this break any apps that use these offsets? Aren't these fields part >> o

Re: RFR: 8344197: SM cleanup in java.util.concurrent [v3]

2024-11-16 Thread Alan Bateman
On Fri, 15 Nov 2024 20:10:45 GMT, Doug Lea wrote: > A side question: Are there now any situations in which Thread.interrupt can > throw an exception? If not, a few more things in j.u.c and elsewhere could be > simplified someday. It's possible to extend Thread and override interrupt so in theo

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

2024-11-16 Thread Alan Bateman
On Fri, 15 Nov 2024 22:41:22 GMT, Eirik Bjørsnøs wrote: >> Removed use of SecurityManager to check permissions. >> Relaxed defensive copying of byte arrays (due to lack of SM) > > src/java.base/share/classes/java/lang/String.java line 843: > >> 841: >> 842: // Trim the given byte array to t

Re: RFR: 8344327: SM cleanup in jdk.unsupported ReflectionFactory

2024-11-16 Thread Alan Bateman
On Fri, 15 Nov 2024 18:32:58 GMT, Roger Riggs wrote: > This cleanup of the use of SecurityManager is in the jdk.unsupported module. > Removed the permission check to call getReflectionFactory(). The CSR for JEP 486 included all the API changes for the supported APIs. With this PR we are in grey