Re: RFR: 8233451: (fs) Files.newInputStream() cannot be used with character special files [v6]

2024-10-22 Thread Alan Bateman
On Wed, 23 Oct 2024 00:09:25 GMT, Brian Burkhalter wrote: >> Add `isOther` and `available` methods to `FileChannelImpl` and the >> interfaces to native code and use these in `ChannelInputStream` to work >> around cases where a wrapped `FileChannelImpl` is not really seekable. > > Brian Burkhalt

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v3]

2024-10-22 Thread David Holmes
On Wed, 23 Oct 2024 00:35:19 GMT, Patricio Chilano Mateo wrote: >> src/hotspot/share/runtime/objectMonitor.hpp line 292: >> >>> 290: >>> 291: static int64_t owner_for(JavaThread* thread); >>> 292: static int64_t owner_for_oop(oop vthread); >> >> Some comments describing this API would be

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v5]

2024-10-22 Thread David Holmes
On Wed, 23 Oct 2024 00:35:06 GMT, Patricio Chilano Mateo wrote: >> This is the implementation of JEP 491: Synchronize Virtual Threads without >> Pinning. See [JEP 491](https://bugs.openjdk.org/browse/JDK-8337395) for >> further details. >> >> In order to make the code review easier the change

Re: RFR: 8338544: Dedicated Array class descriptor implementation [v8]

2024-10-22 Thread Chen Liang
> @cl4es discovered that Stack Map generation in ClassFile API uses > `componentType` and `arrayType` for `aaload` `aastore` instructions, which > are currently quite slow. We can split out array class descriptors from class > or interfaces to support faster `arrayType` and `componentType` opera

Re: RFR: 8338544: Dedicated Array class descriptor implementation [v7]

2024-10-22 Thread Chen Liang
On Wed, 23 Oct 2024 04:20:49 GMT, Chen Liang wrote: >> @cl4es discovered that Stack Map generation in ClassFile API uses >> `componentType` and `arrayType` for `aaload` `aastore` instructions, which >> are currently quite slow. We can split out array class descriptors from >> class or interfac

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v3]

2024-10-22 Thread David Holmes
On Tue, 22 Oct 2024 11:52:46 GMT, Alan Bateman wrote: >> src/java.base/share/classes/java/lang/VirtualThread.java line 115: >> >>> 113: * RUNNING -> WAITING// transitional state during wait >>> on monitor >>> 114: * WAITING -> WAITED // waiting on monitor >>> 115:

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v3]

2024-10-22 Thread Axel Boldt-Christmas
On Wed, 23 Oct 2024 00:08:54 GMT, Coleen Phillimore wrote: >> src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp line 5341: >> >>> 5339: >>> 5340: void MacroAssembler::inc_held_monitor_count() { >>> 5341: Address dst = Address(rthread, >>> JavaThread::held_monitor_count_offset()); >> >> Sug

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v5]

2024-10-22 Thread David Holmes
On Wed, 23 Oct 2024 00:35:06 GMT, Patricio Chilano Mateo wrote: >> This is the implementation of JEP 491: Synchronize Virtual Threads without >> Pinning. See [JEP 491](https://bugs.openjdk.org/browse/JDK-8337395) for >> further details. >> >> In order to make the code review easier the change

Re: RFR: 8342863: Use pattern matching for instanceof in equals methods of wrapper classes

2024-10-22 Thread Rémi Forax
On Wed, 23 Oct 2024 02:06:20 GMT, Joe Darcy wrote: > Noticed this refactoring opportunity while doing some other work in the area. src/java.base/share/classes/java/lang/Boolean.java line 259: > 257: public boolean equals(Object obj) { > 258: if (obj instanceof Boolean b) { > 259:

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v3]

2024-10-22 Thread Axel Boldt-Christmas
On Tue, 22 Oct 2024 19:04:16 GMT, Patricio Chilano Mateo wrote: >> src/hotspot/share/runtime/continuationFreezeThaw.cpp line 2234: >> >>> 2232: retry_fast_path = true; >>> 2233: } else { >>> 2234: relativize_chunk_concurrently(chunk); >> >> Is the `relativize_chunk_concurrently` solu

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

2024-10-22 Thread Julian Waters
On Tue, 22 Oct 2024 18:03:12 GMT, Chris Plummer 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: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v3]

2024-10-22 Thread David Holmes
On Tue, 22 Oct 2024 12:31:24 GMT, Alan Bateman wrote: >> Okay but >> 1. We have the current virtual thread >> 2. We have the current carrier for that virtual thread (which is iotself a >> java.alng.Thread object >> 3. We have Thread.setCurrentLockId which ... ? which thread does it update?

Re: RFR: 8342869: Errors related to unused code on Windows after 8339120 in awt

2024-10-22 Thread Julian Waters
On Wed, 23 Oct 2024 05:07:37 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 > unuse

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

2024-10-22 Thread Prasanta Sadhukhan
On Fri, 18 Oct 2024 19:03:30 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: 8342869: Errors related to unused code on Windows after 8339120 in awt

2024-10-22 Thread Julian Waters
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 unused warnings and addressed all of them by commenting out the code a

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

2024-10-22 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

RFR: 8342868: Errors related to unused code on Windows after 8339120 in core libs

2024-10-22 Thread Julian Waters
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 unused warnings and addressed all of them by commenting out the code a

Re: RFR: 8338544: Dedicated Array class descriptor implementation [v7]

2024-10-22 Thread Chen Liang
On Tue, 8 Oct 2024 01:24:07 GMT, Chen Liang wrote: >> That said, can you leave a quick review on CSR >> https://bugs.openjdk.org/browse/JDK-8340963 too? > > I think I will do this in another patch that adds it to `ConstantDescs` - > there's a place in `ConstantDescs` that could have used it, bu

Re: RFR: 8338544: Dedicated Array class descriptor implementation [v6]

2024-10-22 Thread Chen Liang
On Wed, 23 Oct 2024 04:09:37 GMT, Mandy Chung wrote: >> Chen Liang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Relax displayName spec > > src/java.base/share/classes/java/lang/constant/ClassDesc.java line 278: > >> 276: >> 277:

Re: RFR: 8338544: Dedicated Array class descriptor implementation [v7]

2024-10-22 Thread Chen Liang
> @cl4es discovered that Stack Map generation in ClassFile API uses > `componentType` and `arrayType` for `aaload` `aastore` instructions, which > are currently quite slow. We can split out array class descriptors from class > or interfaces to support faster `arrayType` and `componentType` opera

Re: RFR: 8338544: Dedicated Array class descriptor implementation [v6]

2024-10-22 Thread Mandy Chung
On Tue, 22 Oct 2024 04:50:29 GMT, Chen Liang wrote: >> @cl4es discovered that Stack Map generation in ClassFile API uses >> `componentType` and `arrayType` for `aaload` `aastore` instructions, which >> are currently quite slow. We can split out array class descriptors from >> class or interfac

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

2024-10-22 Thread Prasanta Sadhukhan
On Tue, 22 Oct 2024 16:46:53 GMT, Phil Race wrote: >> Not specific to JEP 486, this should be done as part of a different issue. > > agreed there were many tests modified in javax_swing in this PR where the author tag is removed, only this is missed so I pointed it out... - PR Rev

RFR: 8342865: Use type parameter for Class::getPrimitiveClass

2024-10-22 Thread Chen Liang
Discovered this small cleanup while looking at wrapper class code. - Commit messages: - 8342865: Use type parameter for Class::getPrimitiveClass Changes: https://git.openjdk.org/jdk/pull/21653/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21653&range=00 Issue: https://b

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

2024-10-22 Thread Prasanta Sadhukhan
On Fri, 18 Oct 2024 19:03:30 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: 8338411: Implement JEP 486: Permanently Disable the Security Manager [v2]

2024-10-22 Thread Prasanta Sadhukhan
On Tue, 22 Oct 2024 16:44:59 GMT, Phil Race wrote: >> This should be addressed in a more general separate task, and not part of >> this PR since it does not have anything to do with the changes in this JEP. > > Agreed. This is not a "clean up / update tests" task. > If it is a change on some lin

Re: RFR: 8342863: Use pattern matching for instanceof in equals methods of wrapper classes

2024-10-22 Thread Chen Liang
On Wed, 23 Oct 2024 02:06:20 GMT, Joe Darcy wrote: > Noticed this refactoring opportunity while doing some other work in the area. src/java.base/share/classes/java/lang/Long.java line 1249: > 1247: public boolean equals(Object obj) { > 1248: if (obj instanceof Long ell) { > 1249:

RFR: 8342863: Use pattern matching for instanceof in equals methods of wrapper classes

2024-10-22 Thread Joe Darcy
Noticed this refactoring opportunity while doing some other work in the area. - Commit messages: - JDK-8342863: Use pattern matching for instanceof in equals methods of wrapper classes Changes: https://git.openjdk.org/jdk/pull/21652/files Webrev: https://webrevs.openjdk.org/?repo

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

2024-10-22 Thread Jiangli Zhou
On Mon, 21 Oct 2024 13:17:27 GMT, Magnus Ihse Bursie wrote: > When trying to sort out the LDFLAGS issues, it turned out that I could not > run the linux launcher at all, not even when checking out older commits of > this PR. I am almost at a loss here; I assume that this worked when I created

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v3]

2024-10-22 Thread Coleen Phillimore
On Wed, 23 Oct 2024 00:37:25 GMT, Patricio Chilano Mateo wrote: >> src/hotspot/share/runtime/objectMonitor.hpp line 315: >> >>> 313: void set_succesor(oop vthread); >>> 314: void clear_succesor(); >>> 315: bool has_succesor(); >> >> Sorry but `successor` has two `s` before

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v5]

2024-10-22 Thread Coleen Phillimore
On Wed, 23 Oct 2024 00:35:06 GMT, Patricio Chilano Mateo wrote: >> This is the implementation of JEP 491: Synchronize Virtual Threads without >> Pinning. See [JEP 491](https://bugs.openjdk.org/browse/JDK-8337395) for >> further details. >> >> In order to make the code review easier the change

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v3]

2024-10-22 Thread Coleen Phillimore
On Tue, 22 Oct 2024 15:49:32 GMT, Andrew Haley wrote: >> Patricio Chilano Mateo has updated the pull request incrementally with six >> additional commits since the last revision: >> >> - Fix comments in objectMonitor.hpp >> - Move frame::saved_thread_address() to platform dependent files >>

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v5]

2024-10-22 Thread Coleen Phillimore
On Tue, 22 Oct 2024 02:09:33 GMT, Patricio Chilano Mateo wrote: >> src/hotspot/cpu/aarch64/c2_MacroAssembler_aarch64.cpp line 380: >> >>> 378: lea(t2_owner_addr, owner_address); >>> 379: >>> 380: // CAS owner (null => current thread id). >> >> I think we should be more careful when an

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v4]

2024-10-22 Thread Coleen Phillimore
On Tue, 22 Oct 2024 19:01:02 GMT, Patricio Chilano Mateo wrote: >> This is the implementation of JEP 491: Synchronize Virtual Threads without >> Pinning. See [JEP 491](https://bugs.openjdk.org/browse/JDK-8337395) for >> further details. >> >> In order to make the code review easier the change

Re: RFR: 8338544: Dedicated Array class descriptor implementation [v6]

2024-10-22 Thread Chen Liang
On Tue, 22 Oct 2024 23:48:34 GMT, Mandy Chung wrote: >> I believe the specification for class or interface display name is too >> tight: if we have `java.awt.List` versus `java.util.List`, our current >> implementation prints `List` for both cases. It makes sense for an >> implementation to pr

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

2024-10-22 Thread Chen Liang
On Tue, 22 Oct 2024 23:47:33 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: > > Add equals/hashCode implementation; te

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v3]

2024-10-22 Thread Patricio Chilano Mateo
On Tue, 22 Oct 2024 06:31:47 GMT, David Holmes wrote: >> Patricio Chilano Mateo has updated the pull request incrementally with six >> additional commits since the last revision: >> >> - Fix comments in objectMonitor.hpp >> - Move frame::saved_thread_address() to platform dependent files >>

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v5]

2024-10-22 Thread Patricio Chilano Mateo
> This is the implementation of JEP 491: Synchronize Virtual Threads without > Pinning. See [JEP 491](https://bugs.openjdk.org/browse/JDK-8337395) for > further details. > > In order to make the code review easier the changes have been split into the > following initial 4 commits: > > - Change

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v3]

2024-10-22 Thread Patricio Chilano Mateo
On Tue, 22 Oct 2024 06:27:26 GMT, David Holmes wrote: >> Patricio Chilano Mateo has updated the pull request incrementally with six >> additional commits since the last revision: >> >> - Fix comments in objectMonitor.hpp >> - Move frame::saved_thread_address() to platform dependent files >>

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

2024-10-22 Thread Joe Darcy
On Tue, 22 Oct 2024 23:13:26 GMT, Joe Darcy wrote: >> src/jdk.incubator.vector/share/classes/jdk/incubator/vector/Float16.java >> line 690: >> >>> 688: // public int hashCode() >>> 689: // public static int hashCode(Float16 value) >>> 690: // public boolean equals(Object obj) >> >>

Re: RFR: 8233451: (fs) Files.newInputStream() cannot be used with character special files [v6]

2024-10-22 Thread Brian Burkhalter
> Add `isOther` and `available` methods to `FileChannelImpl` and the interfaces > to native code and use these in `ChannelInputStream` to work around cases > where a wrapped `FileChannelImpl` is not really seekable. Brian Burkhalter has updated the pull request incrementally with one additional

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v4]

2024-10-22 Thread Coleen Phillimore
On Tue, 22 Oct 2024 19:01:02 GMT, Patricio Chilano Mateo wrote: >> This is the implementation of JEP 491: Synchronize Virtual Threads without >> Pinning. See [JEP 491](https://bugs.openjdk.org/browse/JDK-8337395) for >> further details. >> >> In order to make the code review easier the change

Re: RFR: 8338544: Dedicated Array class descriptor implementation [v6]

2024-10-22 Thread Mandy Chung
On Tue, 22 Oct 2024 23:29:29 GMT, Chen Liang wrote: >> src/java.base/share/classes/java/lang/constant/ClassDesc.java line 278: >> >>> 276: >>> 277: /** >>> 278: * {@return a human-readable name for this {@code ClassDesc}} >> >> I don't see the merit of making the string representation

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

2024-10-22 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: Add equals/hashCode implementation; tests to follow. - Changes: - all: https://git.ope

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

2024-10-22 Thread Chen Liang
On Tue, 22 Oct 2024 20:35:38 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: 8338544: Dedicated Array class descriptor implementation [v6]

2024-10-22 Thread Chen Liang
On Tue, 22 Oct 2024 20:53:14 GMT, Mandy Chung wrote: >> Chen Liang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Relax displayName spec > > src/java.base/share/classes/java/lang/constant/ClassDesc.java line 278: > >> 276: >> 277:

Re: RFR: 8342206: Convenience method to check if a ClassEntry matches a ClassDesc [v3]

2024-10-22 Thread Chen Liang
On Tue, 22 Oct 2024 22:58:10 GMT, ExE Boss wrote: > I think it might be a good idea to also have `equalsSymbol(…)` methods for  > the other pool entries. Indeed, this can avoid promotion to String state for all applicable symbols. I decide to start with the ClassEntry as this is the most error-

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

2024-10-22 Thread Joe Darcy
On Tue, 22 Oct 2024 20:01:45 GMT, Paul Sandoz wrote: >> Joe Darcy 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 seven additional commits >> si

Re: RFR: 8342206: Convenience method to check if a ClassEntry matches a ClassDesc [v3]

2024-10-22 Thread ExE Boss
On Tue, 22 Oct 2024 14:43:14 GMT, Chen Liang wrote: >> Currently, to efficiently check if a `ClassEntry`, such as one from an >> `InvokeInstruction`, is of a particular class, we use such a pattern (as >> seen in JEP 486 [Appendix](https://openjdk.org/jeps/486#Appendix)): >> >> inst.owner().na

Re: RFR: 8342582: user.region for formatting number no longer works for 21.0.5 [v3]

2024-10-22 Thread Naoto Sato
On Tue, 22 Oct 2024 22:17:11 GMT, Naoto Sato wrote: >> This is a regression caused by the fix to >> [JDK-8321206](https://bugs.openjdk.org/browse/JDK-8321206), where the >> default locale with `user.region` creation is inadvertently broken. Fix is >> to restore the user.region override within

Re: RFR: 8342582: user.region for formatting number no longer works for 21.0.5 [v3]

2024-10-22 Thread Justin Lu
On Tue, 22 Oct 2024 22:17:11 GMT, Naoto Sato wrote: >> This is a regression caused by the fix to >> [JDK-8321206](https://bugs.openjdk.org/browse/JDK-8321206), where the >> default locale with `user.region` creation is inadvertently broken. Fix is >> to restore the user.region override within

Re: RFR: 8341939: SigningOptionsTest fails without Xcode with command line developer tools after JDK-8341443 [v2]

2024-10-22 Thread Alexey Semenyuk
On Tue, 22 Oct 2024 22:17:56 GMT, Alexander Matveev wrote: >> - Removed hard check for "Xcode with command line developer tools" when >> `--mac-sign` is specified and instead we will show information message if >> `codesign` fails for any reason that possible root cause of failure is >> missi

Re: RFR: 8341939: SigningOptionsTest fails without Xcode with command line developer tools after JDK-8341443

2024-10-22 Thread Alexander Matveev
On Tue, 22 Oct 2024 01:46:45 GMT, Alexander Matveev wrote: > - Removed hard check for "Xcode with command line developer tools" when > `--mac-sign` is specified and instead we will show information message if > `codesign` fails for any reason that possible root cause of failure is > missing X

Re: RFR: 8341939: SigningOptionsTest fails without Xcode with command line developer tools after JDK-8341443 [v2]

2024-10-22 Thread Alexander Matveev
On Tue, 22 Oct 2024 19:35:55 GMT, Alexey Semenyuk wrote: >> Alexander Matveev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8341939: SigningOptionsTest fails without Xcode with command line >> developer tools after JDK-8341443 [v2] >

Re: RFR: 8341939: SigningOptionsTest fails without Xcode with command line developer tools after JDK-8341443 [v2]

2024-10-22 Thread Alexander Matveev
> - Removed hard check for "Xcode with command line developer tools" when > `--mac-sign` is specified and instead we will show information message if > `codesign` fails for any reason that possible root cause of failure is > missing Xcode with command line developer tools. > - Reason for this is

Re: RFR: 8342582: user.region for formatting number no longer works for 21.0.5 [v3]

2024-10-22 Thread Naoto Sato
> This is a regression caused by the fix to > [JDK-8321206](https://bugs.openjdk.org/browse/JDK-8321206), where the default > locale with `user.region` creation is inadvertently broken. Fix is to restore > the user.region override within StaticProperty initialization. Naoto Sato has updated the

Re: RFR: 8342582: user.region for formatting number no longer works for 21.0.5 [v2]

2024-10-22 Thread Naoto Sato
> This is a regression caused by the fix to > [JDK-8321206](https://bugs.openjdk.org/browse/JDK-8321206), where the default > locale with `user.region` creation is inadvertently broken. Fix is to restore > the user.region override within StaticProperty initialization. Naoto Sato has updated the

Re: RFR: 8342582: user.region for formatting number no longer works for 21.0.5 [v2]

2024-10-22 Thread Naoto Sato
On Tue, 22 Oct 2024 21:28:27 GMT, Roger Riggs wrote: >> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Reflects review comments > > src/java.base/share/classes/jdk/internal/util/StaticProperty.java line 104: > >> 102:

Re: RFR: 8342582: user.region for formatting number no longer works for 21.0.5 [v2]

2024-10-22 Thread Naoto Sato
On Tue, 22 Oct 2024 21:21:48 GMT, Justin Lu wrote: > I think ideally the logic could stay in `Locale`, but since the fallback of > _country/variant_format/display_ `StaticProperty` is based on user.region, it > makes sense to move the logic to when the fallback is set. Since `*_DISPLAY/FORMAT`

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

2024-10-22 Thread Mandy Chung
On Fri, 18 Oct 2024 19:03:30 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: 8233451: (fs) Files.newInputStream() cannot be used with character special files [v4]

2024-10-22 Thread Brian Burkhalter
On Tue, 22 Oct 2024 16:22:26 GMT, Brian Burkhalter wrote: > I assume you'll run the test many tests on all platforms to ensure its > stability before integrating. I ran the version of commit f4ab451 30 times on all platforms without failures. >> test/jdk/java/nio/file/Files/InputStreamTest.jav

Re: RFR: 8233451: (fs) Files.newInputStream() cannot be used with character special files [v5]

2024-10-22 Thread Brian Burkhalter
> Add `isOther` and `available` methods to `FileChannelImpl` and the interfaces > to native code and use these in `ChannelInputStream` to work around cases > where a wrapped `FileChannelImpl` is not really seekable. Brian Burkhalter has updated the pull request incrementally with one additional

Re: RFR: 8342582: user.region for formatting number no longer works for 21.0.5

2024-10-22 Thread Roger Riggs
On Tue, 22 Oct 2024 18:09:57 GMT, Naoto Sato wrote: > This is a regression caused by the fix to > [JDK-8321206](https://bugs.openjdk.org/browse/JDK-8321206), where the default > locale with `user.region` creation is inadvertently broken. Fix is to restore > the user.region override within Stat

Re: RFR: 8342582: user.region for formatting number no longer works for 21.0.5

2024-10-22 Thread Justin Lu
On Tue, 22 Oct 2024 18:09:57 GMT, Naoto Sato wrote: > This is a regression caused by the fix to > [JDK-8321206](https://bugs.openjdk.org/browse/JDK-8321206), where the default > locale with `user.region` creation is inadvertently broken. Fix is to restore > the user.region override within Stat

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

2024-10-22 Thread Joe Darcy
On Tue, 22 Oct 2024 19:41:57 GMT, Paul Sandoz wrote: >> Joe Darcy 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 seven additional commits >> si

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

2024-10-22 Thread Harshitha Onkar
On Tue, 22 Oct 2024 09:29:38 GMT, Prasanta Sadhukhan wrote: >> Sean Mullan has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 97 commits: >> >> - Merge remote-tracking branch 'jdk-sandbox/jep486' into JDK-8338411 >> - Change apiNo

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

2024-10-22 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: Respond to review feedback. - Changes: - all: https://git.openjdk.org/jdk/pull/21574/f

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

2024-10-22 Thread Harshitha Onkar
On Tue, 22 Oct 2024 08:16:38 GMT, Prasanta Sadhukhan wrote: >> Sean Mullan has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 97 commits: >> >> - Merge remote-tracking branch 'jdk-sandbox/jep486' into JDK-8338411 >> - Change apiNo

Re: RFR: 8338544: Dedicated Array class descriptor implementation [v6]

2024-10-22 Thread Mandy Chung
On Tue, 22 Oct 2024 04:50:29 GMT, Chen Liang wrote: >> @cl4es discovered that Stack Map generation in ClassFile API uses >> `componentType` and `arrayType` for `aaload` `aastore` instructions, which >> are currently quite slow. We can split out array class descriptors from >> class or interfac

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

2024-10-22 Thread Harshitha Onkar
On Fri, 18 Oct 2024 19:03:30 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: 8331497: Implement JEP 483: Ahead-of-Time Class Loading & Linking [v2]

2024-10-22 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

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

2024-10-22 Thread Paul Sandoz
On Mon, 21 Oct 2024 17:07:35 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 with a new target base due to a merge > or a rebase. The incremental webrev excludes the unrelated changes brough

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

2024-10-22 Thread Joe Darcy
On Tue, 22 Oct 2024 14:18:33 GMT, Raffaello Giulietti wrote: >> Joe Darcy 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 seven additional commi

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

2024-10-22 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: Respond to review feedback. - Changes: - all: https://git.openjdk.org/jdk/pull/21574/f

Re: RFR: 8341939: SigningOptionsTest fails without Xcode with command line developer tools after JDK-8341443

2024-10-22 Thread Alexey Semenyuk
On Tue, 22 Oct 2024 01:46:45 GMT, Alexander Matveev wrote: > - Removed hard check for "Xcode with command line developer tools" when > `--mac-sign` is specified and instead we will show information message if > `codesign` fails for any reason that possible root cause of failure is > missing X

Re: RFR: 8342807: Update links in java.base to use https://

2024-10-22 Thread Eirik Bjørsnøs
On Tue, 22 Oct 2024 18:22:58 GMT, Daniel Fuchs wrote: > For PortConfig.java - it would be good to have someone involved in the AIX > port comment on the proposed changes. Removing the obsolete link altogether > is also a possibility. The context for the link in PortConfig.java is: // The ep

Re: RFR: 8341939: SigningOptionsTest fails without Xcode with command line developer tools after JDK-8341443

2024-10-22 Thread Alexey Semenyuk
On Tue, 22 Oct 2024 01:46:45 GMT, Alexander Matveev wrote: > - Removed hard check for "Xcode with command line developer tools" when > `--mac-sign` is specified and instead we will show information message if > `codesign` fails for any reason that possible root cause of failure is > missing X

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v4]

2024-10-22 Thread Patricio Chilano Mateo
On Tue, 22 Oct 2024 11:51:47 GMT, Alan Bateman wrote: >> src/hotspot/share/runtime/javaThread.cpp line 1545: >> >>> 1543: if (is_vthread_mounted()) { >>> 1544: // _lock_id is the thread ID of the mounted virtual thread >>> 1545: st->print_cr(" Carrying virtual thread #" INT64_F

Re: RFR: 8342807: Update links in java.base to use https:// [v2]

2024-10-22 Thread Eirik Bjørsnøs
On Tue, 22 Oct 2024 17:40:10 GMT, Justin Lu wrote: >> Eirik Bjørsnøs has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Remove accidental "'" > > src/java.base/unix/native/libjava/ProcessImpl_md.c line 109: > >> 107: * the jspawnhelper, t

Re: RFR: 8341273: JVMTI is not properly hiding some continuation related methods [v8]

2024-10-22 Thread Serguei Spitsyn
> This fixes a problem in the VTMS (Virtual Thread Mount State) transition > frames hiding mechanism. > Please, see a fix description in the first comment. > > Testing: > - Verified with new test `vthread/CheckHiddenFrames` > - Mach5 tiers 1-6 are passed Serguei Spitsyn has updated the pull re

Re: RFR: 8341273: JVMTI is not properly hiding some continuation related methods [v7]

2024-10-22 Thread Serguei Spitsyn
> This fixes a problem in the VTMS (Virtual Thread Mount State) transition > frames hiding mechanism. > Please, see a fix description in the first comment. > > Testing: > - Verified with new test `vthread/CheckHiddenFrames` > - Mach5 tiers 1-6 are passed Serguei Spitsyn has updated the pull re

Re: RFR: 8342807: Update links in java.base to use https:// [v2]

2024-10-22 Thread Eirik Bjørsnøs
> Please review this cleanup PR which updates a total of 12 links to external > documentation or references in `java.base` to use https instead of plain text > http. > > Links in `java.security` and `share/data/tzdata` are excluded from this PR. > > This is a documentaton-only cleanup. No tests

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v4]

2024-10-22 Thread Patricio Chilano Mateo
On Tue, 22 Oct 2024 02:14:23 GMT, Patricio Chilano Mateo wrote: >> src/hotspot/cpu/x86/assembler_x86.cpp line 2866: >> >>> 2864: emit_int32(0); >>> 2865: } >>> 2866: } >> >> Is it possible to make this more general and explicit instead of a sequence >> of bytes? >> >> Something along t

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v3]

2024-10-22 Thread Patricio Chilano Mateo
On Tue, 22 Oct 2024 13:51:26 GMT, Axel Boldt-Christmas wrote: >> Patricio Chilano Mateo has updated the pull request incrementally with six >> additional commits since the last revision: >> >> - Fix comments in objectMonitor.hpp >> - Move frame::saved_thread_address() to platform dependent f

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v4]

2024-10-22 Thread Patricio Chilano Mateo
> This is the implementation of JEP 491: Synchronize Virtual Threads without > Pinning. See [JEP 491](https://bugs.openjdk.org/browse/JDK-8337395) for > further details. > > In order to make the code review easier the changes have been split into the > following initial 4 commits: > > - Change

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v6]

2024-10-22 Thread Naoto Sato
> Changing the charset initialization of `java.io.Console` class, which is the > basis of `java.io.IO`, so that it would behave the same way as `System.out` > wrt encoding. This change will also have the capability to override the > default charset used in `IO` methods with `stdout.encoding` sys

Withdrawn: 8337408: Use GetTempPath2 API instead of GetTempPath

2024-10-22 Thread Dhamoder Nalla
On Thu, 15 Aug 2024 16:23:18 GMT, Dhamoder Nalla wrote: > Use the GetTempPath2 APIs instead of the GetTempPath APIs in native code > across the OpenJDK repository to retrieve the temporary directory path, as > GetTempPath2 provides enhanced security. While GetTempPath may still function > with

Integrated: 8327624: Remove VM implementation that bypass verification for core reflection

2024-10-22 Thread Mandy Chung
On Thu, 17 Oct 2024 20:45:53 GMT, Mandy Chung wrote: > The old core reflection implementation generates dynamic classes that are > special cases in the VM to bypass bytecode verification to workaround various > issues [1] [2] [3]. > > The old core reflection implementation was [removed in JDK

Re: RFR: 8342807: Update links in java.base to use https://

2024-10-22 Thread Daniel Fuchs
On Tue, 22 Oct 2024 10:19:23 GMT, Eirik Bjørsnøs wrote: > Please review this cleanup PR which updates a total of 12 links to external > documentation or references in `java.base` to use https instead of plain text > http. > > Links in `java.security` and `share/data/tzdata` are excluded from t

RFR: 8342582: user.region for formatting number no longer works for 21.0.5

2024-10-22 Thread Naoto Sato
This is a regression caused by the fix to [JDK-8321206](https://bugs.openjdk.org/browse/JDK-8321206), where the default locale with `user.region` creation is inadvertently broken. Fix is to restore the user.region override within StaticProperty initialization. - Commit messages: -

Re: RFR: 8233451: (fs) Files.newInputStream() cannot be used with character special files [v4]

2024-10-22 Thread Louis Bergelson
On Tue, 22 Oct 2024 02:40:44 GMT, Brian Burkhalter wrote: >> Add `isOther` and `available` methods to `FileChannelImpl` and the >> interfaces to native code and use these in `ChannelInputStream` to work >> around cases where a wrapped `FileChannelImpl` is not really seekable. > > Brian Burkhalt

Re: RFR: 8342682: Errors related to unused code on Windows after 8339120

2024-10-22 Thread Chris Plummer
On Mon, 21 Oct 2024 14:34:30 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 > unuse

Re: RFR: 8342807: Update links in java.base to use https://

2024-10-22 Thread Justin Lu
On Tue, 22 Oct 2024 10:19:23 GMT, Eirik Bjørsnøs wrote: > Please review this cleanup PR which updates a total of 12 links to external > documentation or references in `java.base` to use https instead of plain text > http. > > Links in `java.security` and `share/data/tzdata` are excluded from t

Re: RFR: 8342807: Update links in java.base to use https://

2024-10-22 Thread Justin Lu
On Tue, 22 Oct 2024 10:19:23 GMT, Eirik Bjørsnøs wrote: > Please review this cleanup PR which updates a total of 12 links to external > documentation or references in `java.base` to use https instead of plain text > http. > > Links in `java.security` and `share/data/tzdata` are excluded from t

Integrated: 8341445: DecimalFormatSymbols setters should throw NPE

2024-10-22 Thread Justin Lu
On Wed, 2 Oct 2024 23:16:32 GMT, Justin Lu wrote: > Please review this PR which improves the safety of equality checking for > DecimalFormatSymbols. As certain setters did not throw NPE, this allowed for > NPE in the equality method. This PR now updates the setters to throw NPE. > > In additio

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

2024-10-22 Thread Vladimir Kozlov
On Tue, 22 Oct 2024 16:19:48 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://gith

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v4]

2024-10-22 Thread Chen Liang
On Tue, 22 Oct 2024 16:53:45 GMT, Naoto Sato wrote: >> Hello Chen, the `{@systemProperty}` tag is expected to be used where the >> system property is being defined (the "Where should the tag be used?" >> section in >> https://mail.openjdk.org/pipermail/core-libs-dev/2018-November/056653.html).

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v4]

2024-10-22 Thread Naoto Sato
On Tue, 22 Oct 2024 16:26:29 GMT, Jaikiran Pai wrote: >> src/java.base/share/classes/java/lang/System.java line 150: >> >>> 148: * specified by the host environment or user. The encoding used >>> 149: * in the conversion from characters to bytes is equivalent to >>> 150: * stdout.

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v5]

2024-10-22 Thread Naoto Sato
> Changing the charset initialization of `java.io.Console` class, which is the > basis of `java.io.IO`, so that it would behave the same way as `System.out` > wrt encoding. This change will also have the capability to override the > default charset used in `IO` methods with `stdout.encoding` sys

Re: RFR: 8341566: Add Reader.of(CharSequence) [v14]

2024-10-22 Thread Markus KARG
On Mon, 21 Oct 2024 15:44:58 GMT, Markus KARG wrote: >> This Pull Requests proposes an implementation for >> [JDK-8341566](https://bugs.openjdk.org/browse/JDK-8341566): Adding the new >> method `public static Reader Reader.of(CharSequence)` will return an >> anonymous, non-synchronized impleme

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

2024-10-22 Thread Phil Race
On Tue, 22 Oct 2024 15:22:08 GMT, Sean Mullan wrote: >> test/jdk/javax/swing/JComboBox/8080972/TestBasicComboBoxEditor.java line 26: >> >>> 24: import javax.swing.SwingUtilities; >>> 25: import javax.swing.plaf.basic.BasicComboBoxEditor; >>> 26: /* >> >> I think we have finally decided that jtr

  1   2   >