Re: RFR: 8340229: Improve opening sentence of FileInputStream constructor specification

2024-09-27 Thread Jaikiran Pai
On Fri, 27 Sep 2024 16:06:51 GMT, Brian Burkhalter wrote: > Improve the first sentences of the three `FileInputStream` constructors, in > particular removing the term "connection." Do you think, as part of this PR, we should also revisit some of the javadoc in the `java.io.FileOutputStream` cl

Re: RFR: 8341064: Define anchor point and index term for "wrapper classes" [v2]

2024-09-27 Thread Joe Darcy
> The is the initial version of a PR to defined an anchor point and index term > of "wrapper classes." 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

Re: RFR: 8341064: Define anchor point and index term for "wrapper classes"

2024-09-27 Thread Joe Darcy
On Fri, 27 Sep 2024 09:18:11 GMT, Pavel Rappo wrote: >> The is the initial version of a PR to defined an anchor point and index term >> of "wrapper classes." > > src/java.base/share/classes/java/lang/package-info.java line 36: > >> 34: * The {@index "wrapper classes"} {@link Boolean}, >> 35:

Re: RFR: 8329597: C2: Intrinsify Reference.clear [v3]

2024-09-27 Thread Kim Barrett
On Fri, 19 Jul 2024 15:52:14 GMT, Aleksey Shipilev wrote: >> [JDK-8240696](https://bugs.openjdk.org/browse/JDK-8240696) added the native >> method for `Reference.clear`. The original patch skipped intrinsification of >> this method, because we thought `Reference.clear` is not on a performance

Re: RFR: 8328313: Archived module graph should allow identical --module-path to be specified during dump time and run time [v7]

2024-09-27 Thread Calvin Cheung
> Prior to this patch, if `--module-path` is specified in the command line: > during CDS dump time, full module graph will not be included in the CDS > archive; > during run time, full module graph will not be used. > > With this patch, the full module graph will be included in the CDS archive >

Re: RFR: 8328313: Archived module graph should allow identical --module-path to be specified during dump time and run time [v6]

2024-09-27 Thread Calvin Cheung
> Prior to this patch, if `--module-path` is specified in the command line: > during CDS dump time, full module graph will not be included in the CDS > archive; > during run time, full module graph will not be used. > > With this patch, the full module graph will be included in the CDS archive >

Re: RFR: 8341064: Define anchor point and index term for "wrapper classes"

2024-09-27 Thread Pavel Rappo
On Thu, 26 Sep 2024 23:46:04 GMT, Joe Darcy wrote: > The is the initial version of a PR to defined an anchor point and index term > of "wrapper classes." src/java.base/share/classes/java/lang/package-info.java line 36: > 34: * The {@index "wrapper classes"} {@link Boolean}, > 35: * {@link Ch

Re: RFR: 8340326: Remove references to Applet in core-libs/security tests [v6]

2024-09-27 Thread Naoto Sato
On Thu, 26 Sep 2024 17:24:18 GMT, Justin Lu wrote: >> Please review this PR which removes usages of Applet within the corelibs >> tests. >> >> Most changes are removed comments/updated var names. The JBS issue lists >> more files than the ones included in this pull request, please see the >>

Re: RFR: 8328313: Archived module graph should allow identical --module-path to be specified during dump time and run time [v3]

2024-09-27 Thread Alan Bateman
On Mon, 23 Sep 2024 05:57:09 GMT, Calvin Cheung wrote: >> src/java.base/share/classes/jdk/internal/module/ModuleReferences.java line >> 105: >> >>> 103: public byte[] generate(String algorithm) { >>> 104: return ModuleHashes.computeHash(supplier, algorithm); >>> 105:

Re: RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long) [v3]

2024-09-27 Thread Andrew Haley
On Fri, 27 Sep 2024 14:15:04 GMT, Galder Zamarreño wrote: > The only situation where this PR is a regression compared to current code is > when the one of the branch side is always taken. Bear in mind that's quite common. It's not very unusual to clip a range with something equivalent to `x =

Re: RFR: 8336274: MutableBigInteger.leftShift(int) optimization [v13]

2024-09-27 Thread fabioromano1
> This implementation of MutableBigInteger.leftShift(int) optimizes the current > version, avoiding unnecessary copy of the MutableBigInteger's value content > and performing the primitive shifting only in the original portion of the > value array rather than in the value yet extended with trail

Re: RFR: 8339329: ConstantPoolBuilder#constantValueEntry method doc typo and clarifications [v2]

2024-09-27 Thread David M . Lloyd
On Fri, 30 Aug 2024 18:12:38 GMT, David M. Lloyd wrote: >> Please review this small documentation change to ConstantPoolBuilder to fix >> a typo and clarify the usage of the `constantValueEntry` method. > > David M. Lloyd has updated the pull request incrementally with one additional > commit s

Re: RFR: 8329597: C2: Intrinsify Reference.clear [v3]

2024-09-27 Thread Vladimir Kozlov
On Fri, 19 Jul 2024 15:52:14 GMT, Aleksey Shipilev wrote: >> [JDK-8240696](https://bugs.openjdk.org/browse/JDK-8240696) added the native >> method for `Reference.clear`. The original patch skipped intrinsification of >> this method, because we thought `Reference.clear` is not on a performance

Re: RFR: 8329597: C2: Intrinsify Reference.clear [v3]

2024-09-27 Thread Aleksey Shipilev
On Fri, 27 Sep 2024 17:44:38 GMT, Vladimir Kozlov wrote: > Is ZGC affected by this? I see only G1 and Shenandoah changes. Good question. ZGC expands the GC barriers late. This is why the IR test configuration that tests ZGC shows the same result as with other collectors: no additional fluff i

Re: RFR: 8336274: MutableBigInteger.leftShift(int) optimization [v12]

2024-09-27 Thread fabioromano1
> This implementation of MutableBigInteger.leftShift(int) optimizes the current > version, avoiding unnecessary copy of the MutableBigInteger's value content > and performing the primitive shifting only in the original portion of the > value array rather than in the value yet extended with trail

Re: RFR: 8339850: Restore the interrupt status in FileSystemPreferences.lockFile()

2024-09-27 Thread Daniel Jeliński
On Tue, 10 Sep 2024 16:37:11 GMT, sbgoog wrote: > FIleSystemPreferences.lockFile() catches an InterruptedException and just > returns false, forgetting to re-interrupt the current thread. This leaves the > caller with no way to observe that the thread was interrupted. This change > restores th

Re: RFR: 8340326: Remove references to Applet in core-libs/security tests [v7]

2024-09-27 Thread Justin Lu
> Please review this PR which removes usages of Applet within the corelibs > tests. > > Most changes are removed comments/updated var names. The JBS issue lists more > files than the ones included in this pull request, please see the comment on > the JBS issue for the reason why they were not i

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

2024-09-27 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: 8329597: C2: Intrinsify Reference.clear [v3]

2024-09-27 Thread Vladimir Kozlov
On Fri, 19 Jul 2024 15:52:14 GMT, Aleksey Shipilev wrote: >> [JDK-8240696](https://bugs.openjdk.org/browse/JDK-8240696) added the native >> method for `Reference.clear`. The original patch skipped intrinsification of >> this method, because we thought `Reference.clear` is not on a performance

Re: RFR: 8328313: Archived module graph should allow identical --module-path to be specified during dump time and run time [v5]

2024-09-27 Thread Calvin Cheung
On Fri, 27 Sep 2024 11:11:20 GMT, Alan Bateman wrote: > Do you remember why resetArchivedStates resets the resource cache? I would > expected it to be cleared for all class loaders. > I think it is because `resourceCache` is a `SoftReference` and it will fail the check in `JavaClasses::is_sup

RFR: 8340229: Improve opening sentence of FileInputStream constructor specification

2024-09-27 Thread Brian Burkhalter
Improve the first sentences of the three `FileInputStream` constructors, in particular removing the term "connection." - Commit messages: - 8340229: Improve opening sentence of FileInputStream constructor specification Changes: https://git.openjdk.org/jdk/pull/21223/files Webrev

Re: RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long) [v3]

2024-09-27 Thread Galder Zamarreño
On Fri, 27 Sep 2024 14:21:57 GMT, Galder Zamarreño wrote: >> This patch intrinsifies `Math.max(long, long)` and `Math.min(long, long)` in >> order to help improve vectorization performance. >> >> Currently vectorization does not kick in for loops containing either of >> these calls because of

Re: RFR: 8334714: Implement JEP 484: Class-File API [v6]

2024-09-27 Thread ExE Boss
On Thu, 26 Sep 2024 08:16:50 GMT, Adam Sotona wrote: >> Class-File API is leaving preview. >> This is a removal of all `@PreviewFeature` annotations from Class-File API. >> It also bumps all `@since` tags and removes >> `jdk.internal.javac.PreviewFeature.Feature.CLASSFILE_API`. >> >> Please rev

Re: RFR: 8339711: ZipFile.Source.initCEN needlessly reads END header [v2]

2024-09-27 Thread Lance Andersen
On Wed, 25 Sep 2024 16:22:55 GMT, Eirik Bjørsnøs wrote: >> Please review this cleanup PR which makes `ZipFile.Source.initCEN` not >> include the 22-byte trailing`END` header when reading the `CEN` section of >> the ZIP file. >> >> The reading of the END header was probably brought over from na

Re: RFR: 8339850: Restore the interrupt status in FileSystemPreferences.lockFile()

2024-09-27 Thread Brian Burkhalter
On Fri, 27 Sep 2024 14:38:56 GMT, sbgoog wrote: > This PR needs another reviewer. Is there someone that can have a look at it? @djelinski ? @jaikiran ? - PR Comment: https://git.openjdk.org/jdk/pull/20938#issuecomment-2379585126

Re: RFR: 8336274: MutableBigInteger.leftShift(int) optimization [v11]

2024-09-27 Thread Raffaello Giulietti
On Thu, 12 Sep 2024 20:49:49 GMT, fabioromano1 wrote: >> This implementation of MutableBigInteger.leftShift(int) optimizes the >> current version, avoiding unnecessary copy of the MutableBigInteger's value >> content and performing the primitive shifting only in the original portion >> of the

Re: RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long) [v3]

2024-09-27 Thread Galder Zamarreño
On Fri, 27 Sep 2024 14:21:57 GMT, Galder Zamarreño wrote: >> This patch intrinsifies `Math.max(long, long)` and `Math.min(long, long)` in >> order to help improve vectorization performance. >> >> Currently vectorization does not kick in for loops containing either of >> these calls because of

Re: RFR: 8336274: MutableBigInteger.leftShift(int) optimization [v5]

2024-09-27 Thread fabioromano1
On Tue, 3 Sep 2024 16:50:26 GMT, fabioromano1 wrote: >>> > It would be nice to see some benchmarks where it gives performance >>> > benefits. >>> >>> @kuksenko Try to run the benchmark of the `BigInteger`'s square root, maybe >>> there the benefits are more visible... >> >> "maybe" >> So,

Re: RFR: 8339850: Restore the interrupt status in FileSystemPreferences.lockFile()

2024-09-27 Thread sbgoog
On Tue, 10 Sep 2024 16:37:11 GMT, sbgoog wrote: > FIleSystemPreferences.lockFile() catches an InterruptedException and just > returns false, forgetting to re-interrupt the current thread. This leaves the > caller with no way to observe that the thread was interrupted. This change > restores th

Re: RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long) [v3]

2024-09-27 Thread Galder Zamarreño
On Fri, 27 Sep 2024 14:21:57 GMT, Galder Zamarreño wrote: >> This patch intrinsifies `Math.max(long, long)` and `Math.min(long, long)` in >> order to help improve vectorization performance. >> >> Currently vectorization does not kick in for loops containing either of >> these calls because of

Re: RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long) [v3]

2024-09-27 Thread Galder Zamarreño
> This patch intrinsifies `Math.max(long, long)` and `Math.min(long, long)` in > order to help improve vectorization performance. > > Currently vectorization does not kick in for loops containing either of these > calls because of the following error: > > > VLoop::check_preconditions: failed:

Re: RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long) [v2]

2024-09-27 Thread Galder Zamarreño
> This patch intrinsifies `Math.max(long, long)` and `Math.min(long, long)` in > order to help improve vectorization performance. > > Currently vectorization does not kick in for loops containing either of these > calls because of the following error: > > > VLoop::check_preconditions: failed:

Re: RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long) [v2]

2024-09-27 Thread Galder Zamarreño
On Wed, 17 Jul 2024 22:48:04 GMT, Jasmine Karthikeyan wrote: >>> The C2 changes look nice! I just added one comment here about style. It >>> would also be good to add some IR tests checking that the intrinsic is >>> creating `MaxL`/`MinL` nodes before macro expansion, and a microbenchmark >>>

Re: RFR: 8336274: MutableBigInteger.leftShift(int) optimization [v5]

2024-09-27 Thread Raffaello Giulietti
On Tue, 3 Sep 2024 16:50:26 GMT, fabioromano1 wrote: >>> > It would be nice to see some benchmarks where it gives performance >>> > benefits. >>> >>> @kuksenko Try to run the benchmark of the `BigInteger`'s square root, maybe >>> there the benefits are more visible... >> >> "maybe" >> So,

Re: RFR: 8329597: C2: Intrinsify Reference.clear [v3]

2024-09-27 Thread Aleksey Shipilev
On Fri, 19 Jul 2024 15:52:14 GMT, Aleksey Shipilev wrote: >> [JDK-8240696](https://bugs.openjdk.org/browse/JDK-8240696) added the native >> method for `Reference.clear`. The original patch skipped intrinsification of >> this method, because we thought `Reference.clear` is not on a performance

Re: RFR: 8328313: Archived module graph should allow identical --module-path to be specified during dump time and run time [v3]

2024-09-27 Thread Alan Bateman
On Tue, 24 Sep 2024 21:17:35 GMT, Calvin Cheung wrote: >> src/java.base/share/classes/jdk/internal/module/ModuleBootstrap.java line >> 481: >> >>> 479: cf, >>> 480: clf, >>> 481: mainModule); >> >> This was correctly aligned before, n

Re: RFR: 8328313: Archived module graph should allow identical --module-path to be specified during dump time and run time [v5]

2024-09-27 Thread Alan Bateman
On Thu, 26 Sep 2024 00:49:20 GMT, Calvin Cheung wrote: >> Prior to this patch, if `--module-path` is specified in the command line: >> during CDS dump time, full module graph will not be included in the CDS >> archive; >> during run time, full module graph will not be used. >> >> With this patc

Re: RFR: 8340801: Disable ubsan checks in some awt/2d coding

2024-09-27 Thread Matthias Baesken
On Wed, 25 Sep 2024 12:17:59 GMT, Matthias Baesken wrote: > There is some old awt/2d coding where warnings occur when running with ubsan > enabled binaries. > However at most of these locations the coding should work (at least on our > supported platform set) so the warnings can be disabled at

Re: RFR: 8340801: Disable ubsan checks in some awt/2d coding

2024-09-27 Thread Julian Waters
On Fri, 27 Sep 2024 06:46:24 GMT, Matthias Baesken wrote: > And it was reviewed by erikj and ihse, I think those are members of the > OpenJDK build group Erik and Magnus are indeed part of the build team. Erik is the Skara tool lead but does build work as well, while Magnus is pretty much the