RFR: 8286851: Deprecate for removal several of the undocumented java launcher options

2024-09-16 Thread Jaikiran Pai
Can I please get a review of this change which proposes to deprecate several outdated and undocumented java launcher options? This addresses https://bugs.openjdk.org/browse/JDK-8286851. Specifically, the non-standard launcher options `-verbosegc`, `-noclassgc`, `-verify`, `-verifyremote`, `-ss`

Re: RFR: 8339574: Behavior of File.is{Directory,File,Hidden} is not documented with respect to symlinks [v8]

2024-09-16 Thread Daniel Jeliński
On Mon, 16 Sep 2024 19:09:03 GMT, Brian Burkhalter wrote: >> Make explicit how the `java.io.File` methods `isDirectory`, `isFile`, and >> `isHidden` behave when the `File` represents a symbolic link. > > Brian Burkhalter has updated the pull request incrementally with one > additional commit si

Re: RFR: 8337143: (fc, fs) Move filesystem-related native objects from libnio to libjava [v8]

2024-09-16 Thread Daniel Jeliński
On Fri, 13 Sep 2024 20:41:27 GMT, Brian Burkhalter wrote: >> This proposed change would move the native objects required for NIO file >> interaction from the libnio native library to the libjava native library on >> Linux, macOS, and Windows. > > Brian Burkhalter has updated the pull request in

Re: RFR: 8338694: x86_64 intrinsic for tanh using libm [v11]

2024-09-16 Thread Srinivas Vamsi Parasa
> The goal of this PR is to implement an x86_64 intrinsic for > java.lang.Math.tanh() using libm > > Benchmark (ops/ms) | Stock JDK | Tanh intrinsic | Speedup > -- | -- | -- | -- > MathBench.tanhDouble | 70900 | 95618 | 1.35x Srinivas Vamsi Parasa has updated the pull request incrementally with

Re: RFR: 8162500: Receiver annotations of inner classes of local classes not found at runtime

2024-09-16 Thread Chen Liang
On Tue, 16 Jul 2024 18:02:57 GMT, Chen Liang wrote: > In annotated types, local and inner class types should be annotated as > "top-level" types. For example, in the test here > > public static Class getLocalsMember() { > class Local { > class Member { >

Re: RFR: 8340232: Optimize DataInputStream::readUTF

2024-09-16 Thread Chen Liang
On Sun, 8 Sep 2024 10:05:35 GMT, ExE Boss wrote: >> Similar to ObjectInputStream, use JLA.countPositives and >> JLA.inflateBytesToChars to speed up readUTF > > src/java.base/share/classes/java/io/DataInputStream.java line 602: > >> 600: int ascii = JLA.countPositives(bytearr, 0, utflen)

Re: RFR: 8340232: Optimize DataInputStream::readUTF

2024-09-16 Thread ExE Boss
On Sun, 8 Sep 2024 07:52:26 GMT, Shaojin Wen wrote: > Similar to ObjectInputStream, use JLA.countPositives and > JLA.inflateBytesToChars to speed up readUTF src/java.base/share/classes/java/io/DataInputStream.java line 602: > 600: int ascii = JLA.countPositives(bytearr, 0, utflen); > 6

Re: RFR: 8340232: Optimize DataInputStream::readUTF

2024-09-16 Thread Chen Liang
On Mon, 16 Sep 2024 16:41:04 GMT, Shaojin Wen wrote: >> src/java.base/share/classes/java/io/DataInputStream.java line 590: >> >>> 588: if (bytearr == null) { >>> 589: bytearr = new byte[utflen]; >>> 590: allocate = true; >> >> Can we rename this boolean to `trust

Re: RFR: 8340232: Optimize DataInputStream::readUTF

2024-09-16 Thread Shaojin Wen
On Mon, 16 Sep 2024 13:15:02 GMT, Chen Liang wrote: >> Similar to ObjectInputStream, use JLA.countPositives and >> JLA.inflateBytesToChars to speed up readUTF > > src/java.base/share/classes/java/io/DataInputStream.java line 590: > >> 588: if (bytearr == null) { >> 589: byte

Re: RFR: 8340232: Optimize DataInputStream::readUTF

2024-09-16 Thread Shaojin Wen
On Sun, 8 Sep 2024 07:52:26 GMT, Shaojin Wen wrote: > Similar to ObjectInputStream, use JLA.countPositives and > JLA.inflateBytesToChars to speed up readUTF In the readUTFAscii scenario, the performance is significantly improved, but in the readUTFSmall scenario, the performance is regressed.

Re: RFR: 8340232: Optimize DataInputStream::readUTF

2024-09-16 Thread Chen Liang
On Sun, 8 Sep 2024 07:52:26 GMT, Shaojin Wen wrote: > Similar to ObjectInputStream, use JLA.countPositives and > JLA.inflateBytesToChars to speed up readUTF Thanks for the logical cleanup. I will find another io reviewer too. Another comment: we currently eagerly allocate a char array, but now

RFR: 8340232: Optimize DataInputStream::readUTF

2024-09-16 Thread Shaojin Wen
Similar to ObjectInputStream, use JLA.countPositives and JLA.inflateBytesToChars to speed up readUTF - Commit messages: - suggestion from @liach - optimize for ascii - only allocate the char array if we have non-ascii - optimize DataOutputStream::readUTF Changes: https://git.ope

RFR: 8340132: Remove internal CpException for reading malformed utf8

2024-09-16 Thread Chen Liang
Remove an internal exception for invalid utf8 entry format; it should have been an IllegalArgumentException but was an arbitrary subtype of RuntimeException. Converted to throw ConstantPoolException, and consolidated into a single method to reduce code size. - Commit messages: - 8

Re: Where to ask about a potential bug/oversight with hidden classes

2024-09-16 Thread Matias Koivikko
Thanks for the explanation, Chen. I was confused by the javadoc on defineClass, as it states that references would also be redirected during verification. I now see that class loads during verification are irrelevant here. I was also unaware that the receiver of field and method references were di

Re: RFR: 8338546: Speed up ConstantPoolBuilder::classEntry(ClassDesc) [v3]

2024-09-16 Thread Chen Liang
On Tue, 17 Sep 2024 02:04:51 GMT, Chen Liang wrote: >> Speed up `ConstantPoolBuilder::classEntry(ClassDesc)` by going through >> `ClassDesc` comparison and reusing descriptor hash to calculate internal >> name hash if possible. No suitable device to run benchmarks so need to find >> something

Re: RFR: 8339934: Simplify Math.scalb(double) method [v3]

2024-09-16 Thread Joe Darcy
On Fri, 13 Sep 2024 19:33:51 GMT, Raffaello Giulietti wrote: >> `Math.scalb(double)` can be simplified, removing a loop and using >> larger/smaller factors. > > Raffaello Giulietti has updated the pull request incrementally with one > additional commit since the last revision: > > Introduce

Re: RFR: 8338546: Speed up ConstantPoolBuilder::classEntry(ClassDesc) [v3]

2024-09-16 Thread Chen Liang
On Tue, 17 Sep 2024 02:04:51 GMT, Chen Liang wrote: >> Speed up `ConstantPoolBuilder::classEntry(ClassDesc)` by going through >> `ClassDesc` comparison and reusing descriptor hash to calculate internal >> name hash if possible. No suitable device to run benchmarks so need to find >> something

Re: RFR: 8338546: Speed up ConstantPoolBuilder::classEntry(ClassDesc) [v2]

2024-09-16 Thread Claes Redestad
On Sun, 15 Sep 2024 13:22:22 GMT, Chen Liang wrote: >> src/java.base/share/classes/jdk/internal/classfile/impl/Util.java line 372: >> >>> 370: * } >>> 371: * } >>> 372: * This is converted to explicit initialization to avoid bootstrap >>> overhead. >> >> Have you measured this t

Re: RFR: 8338546: Speed up ConstantPoolBuilder::classEntry(ClassDesc) [v3]

2024-09-16 Thread Chen Liang
On Sun, 15 Sep 2024 19:08:00 GMT, ExE Boss wrote: >> Chen Liang has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 15 commits: >> >> - Fix build >> - Merge branch 'master' of https://github.com/openjdk/jdk into >> feature/classent

Re: RFR: 8338546: Speed up ConstantPoolBuilder::classEntry(ClassDesc) [v2]

2024-09-16 Thread Chen Liang
On Thu, 22 Aug 2024 13:45:31 GMT, Claes Redestad wrote: >> Chen Liang has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains five commits: >> >> - Improve benchmark as suggested >> - Merge branch 'master' of https://github.com/openjdk/

Re: RFR: 8338546: Speed up ConstantPoolBuilder::classEntry(ClassDesc) [v3]

2024-09-16 Thread Chen Liang
> Speed up `ConstantPoolBuilder::classEntry(ClassDesc)` by going through > `ClassDesc` comparison and reusing descriptor hash to calculate internal name > hash if possible. No suitable device to run benchmarks so need to find > something to run the new benchmark to ensure things work as intended

Re: RFR: 8338546: Speed up ConstantPoolBuilder::classEntry(ClassDesc) [v3]

2024-09-16 Thread ExE Boss
On Tue, 17 Sep 2024 02:01:49 GMT, Chen Liang wrote: >> Speed up `ConstantPoolBuilder::classEntry(ClassDesc)` by going through >> `ClassDesc` comparison and reusing descriptor hash to calculate internal >> name hash if possible. No suitable device to run benchmarks so need to find >> something

Integrated: 8340176: Replace usage of -noclassgc with -Xnoclassgc in test/jdk/java/lang/management/MemoryMXBean/LowMemoryTest2.java

2024-09-16 Thread Jaikiran Pai
On Mon, 16 Sep 2024 09:21:22 GMT, Jaikiran Pai wrote: > Can I please get a review of this test-only change which replaces the usage > of `-noclassgc` with `-Xnoclassgc` option when launching the test? > > As noted in https://bugs.openjdk.org/browse/JDK-8340176, the `-noclassgc` is > an undocum

Re: RFR: 8340176: Replace usage of -noclassgc with -Xnoclassgc in test/jdk/java/lang/management/MemoryMXBean/LowMemoryTest2.java

2024-09-16 Thread Jaikiran Pai
On Mon, 16 Sep 2024 09:21:22 GMT, Jaikiran Pai wrote: > Can I please get a review of this test-only change which replaces the usage > of `-noclassgc` with `-Xnoclassgc` option when launching the test? > > As noted in https://bugs.openjdk.org/browse/JDK-8340176, the `-noclassgc` is > an undocum

Re: RFR: 8338694: x86_64 intrinsic for tanh using libm [v10]

2024-09-16 Thread Srinivas Vamsi Parasa
> The goal of this PR is to implement an x86_64 intrinsic for > java.lang.Math.tanh() using libm > > Benchmark (ops/ms) | Stock JDK | Tanh intrinsic | Speedup > -- | -- | -- | -- > MathBench.tanhDouble | 70900 | 95618 | 1.35x Srinivas Vamsi Parasa has updated the pull request incrementally with

Re: RFR: 8339574: Behavior of File.is{Directory,File,Hidden} is not documented with respect to symlinks [v6]

2024-09-16 Thread Brian Burkhalter
On Sat, 14 Sep 2024 06:47:40 GMT, Alan Bateman wrote: >> Brian Burkhalter has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8339574: Move symbolic link verbiage from class to constructor doc in >> FIS/FOS/RAF > > src/java.base/share/class

Re: RFR: 8339574: Behavior of File.is{Directory,File,Hidden} is not documented with respect to symlinks [v6]

2024-09-16 Thread Brian Burkhalter
On Sat, 14 Sep 2024 07:03:05 GMT, Alan Bateman wrote: >> Brian Burkhalter has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8339574: Move symbolic link verbiage from class to constructor doc in >> FIS/FOS/RAF > > src/java.base/share/class

Re: RFR: 8338694: x86_64 intrinsic for tanh using libm [v9]

2024-09-16 Thread Srinivas Vamsi Parasa
> The goal of this PR is to implement an x86_64 intrinsic for > java.lang.Math.tanh() using libm > > Benchmark (ops/ms) | Stock JDK | Tanh intrinsic | Speedup > -- | -- | -- | -- > MathBench.tanhDouble | 70900 | 95618 | 1.35x Srinivas Vamsi Parasa has updated the pull request with a new target b

Withdrawn: 8316882: Do not close ZipFileSystem on interrupt

2024-09-16 Thread duke
On Sun, 21 Jul 2024 13:29:36 GMT, Technici4n wrote: > Hi, > > Here is a fix for https://bugs.openjdk.org/browse/JDK-8316882, following the > `FileChannelImpl#setUninterruptible` pattern used in `Files.readAllBytes` for > example. > > There has been some discussion on nio-dev about more broadl

Re: RFR: 8338023: Support two vector selectFrom API [v10]

2024-09-16 Thread Paul Sandoz
On Mon, 16 Sep 2024 02:58:41 GMT, Jatin Bhateja wrote: >> Hi All, >> >> As per the discussion on panama-dev mailing list[1], patch adds the support >> for following new two vector permutation APIs. >> >> >> Declaration:- >> Vector.selectFrom(Vector v1, Vector v2) >> >> >> Semantics:- >>

Integrated: 8340073: Support "%z" time zone abbreviation format in TZ files

2024-09-16 Thread Naoto Sato
On Thu, 12 Sep 2024 23:03:33 GMT, Naoto Sato wrote: > Yet another preparation for upgrading the time zone data to 2024b, which > introduced a new abbreviation format "%z". The update includes: > ... > The main source files' time zone abbreviations now use %z, > supported by zic since

Re: RFR: 8340073: Support "%z" time zone abbreviation format in TZ files [v2]

2024-09-16 Thread Naoto Sato
On Fri, 13 Sep 2024 18:39:42 GMT, Naoto Sato wrote: >> Yet another preparation for upgrading the time zone data to 2024b, which >> introduced a new abbreviation format "%z". The update includes: >> ... >> The main source files' time zone abbreviations now use %z, >> supported by zic

Re: RFR: 8339803: Acknowledge case insensitive unambiguous keywords in tzdata files [v2]

2024-09-16 Thread Stephen Colebourne
On Mon, 16 Sep 2024 19:30:56 GMT, Naoto Sato wrote: >> make/jdk/src/classes/build/tools/tzdb/TzdbZoneRulesProvider.java line 308: >> >>> 306: if (off < tokens.length) { >>> 307: String dayRule = tokens[off++]; >>> 308: if (dayRule.regionMatches(true, 0

Re: RFR: 8339803: Acknowledge case insensitive unambiguous keywords in tzdata files [v2]

2024-09-16 Thread Naoto Sato
On Mon, 16 Sep 2024 18:57:42 GMT, Stephen Colebourne wrote: >> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> tz files aligned with the default TzdbZoneRulesProvider list > > make/jdk/src/classes/build/tools/tzdb/TzdbZoneRul

Re: RFR: 8339574: Behavior of File.is{Directory,File,Hidden} is not documented with respect to symlinks [v8]

2024-09-16 Thread Brian Burkhalter
> Make explicit how the `java.io.File` methods `isDirectory`, `isFile`, and > `isHidden` behave when the `File` represents a symbolic link. Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision: 8339574: Add symbolic link verbiage to Fi

Re: RFR: 8339803: Acknowledge case insensitive unambiguous keywords in tzdata files [v2]

2024-09-16 Thread Stephen Colebourne
On Tue, 10 Sep 2024 22:42:37 GMT, Naoto Sato wrote: >> This is a follow on fix to >> [JDK-8339644](https://bugs.openjdk.org/browse/JDK-8339644). It turned out >> that TZ data files allow abbreviation of keywords, such as "ZO" for "Zone." >> Same fix, i.e, replacing `startsWith()` with `regionM

Re: RFR: 8340073: Support "%z" time zone abbreviation format in TZ files [v2]

2024-09-16 Thread Sean Coffey
On Fri, 13 Sep 2024 18:39:42 GMT, Naoto Sato wrote: >> Yet another preparation for upgrading the time zone data to 2024b, which >> introduced a new abbreviation format "%z". The update includes: >> ... >> The main source files' time zone abbreviations now use %z, >> supported by zic

Re: RFR: 8336025: Improve ZipOutputSream validation of MAX CEN Header field limits [v2]

2024-09-16 Thread Lance Andersen
On Mon, 16 Sep 2024 18:47:40 GMT, Alan Bateman wrote: >> Short answer. finish() which calls writeCEN, will throw for the above. >> >> As the entry comment, is only part of the CEN, I wanted to keep the >> encoding in writeCEN as there is no reason to do it earlier. > > I looks very out of plac

Re: RFR: 8336025: Improve ZipOutputSream validation of MAX CEN Header field limits [v2]

2024-09-16 Thread Alan Bateman
On Mon, 16 Sep 2024 18:22:18 GMT, Lance Andersen wrote: >> src/java.base/share/classes/java/util/zip/ZipEntry.java line 44: >> >>> 42: * entry comment and {@linkplain #CENHDR CEN Header size}, must not >>> 43: * exceed 65,535 bytes. If it does, {@linkplain ZipOutputStream} will >>> 44: * thro

Re: RFR: 8338023: Support two vector selectFrom API [v10]

2024-09-16 Thread Paul Sandoz
On Mon, 16 Sep 2024 02:58:41 GMT, Jatin Bhateja wrote: >> Hi All, >> >> As per the discussion on panama-dev mailing list[1], patch adds the support >> for following new two vector permutation APIs. >> >> >> Declaration:- >> Vector.selectFrom(Vector v1, Vector v2) >> >> >> Semantics:- >>

Re: RFR: 8336025: Improve ZipOutputSream validation of MAX CEN Header field limits [v2]

2024-09-16 Thread Lance Andersen
On Mon, 16 Sep 2024 11:59:22 GMT, Eirik Bjørsnøs wrote: >> I am not sure it is needed, but could tweak to >> >>> The combined length, after encoding, of the .. >> >> thoughts? > >> > The combined length, after encoding, of the .. >> >> thoughts? > > I like it. Disambiguating but also

Re: RFR: 8336025: Improve ZipOutputSream validation of MAX CEN Header field limits [v2]

2024-09-16 Thread Lance Andersen
On Mon, 16 Sep 2024 18:19:34 GMT, Alan Bateman wrote: >> ZipOutputStream::close() calls DeflaterOutputStream::close() will in turn >> will call ZipOutputStream::finish() >> >> I could remove the above and just leave the verbiage in >> ZipOutputStream::finish(), I only added it to close as I di

Re: RFR: 8340073: Support "%z" time zone abbreviation format in TZ files [v2]

2024-09-16 Thread Joe Wang
On Fri, 13 Sep 2024 18:39:42 GMT, Naoto Sato wrote: >> Yet another preparation for upgrading the time zone data to 2024b, which >> introduced a new abbreviation format "%z". The update includes: >> ... >> The main source files' time zone abbreviations now use %z, >> supported by zic

Re: RFR: 8336025: Improve ZipOutputSream validation of MAX CEN Header field limits [v2]

2024-09-16 Thread Lance Andersen
On Mon, 16 Sep 2024 17:59:11 GMT, Alan Bateman wrote: >> Lance Andersen has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Update @link ->@linkplain > > src/java.base/share/classes/java/util/zip/ZipEntry.java line 44: > >> 42: * entry com

Re: RFR: 8338694: x86_64 intrinsic for tanh using libm [v2]

2024-09-16 Thread Srinivas Vamsi Parasa
On Fri, 13 Sep 2024 23:10:19 GMT, Sandhya Viswanathan wrote: >> Hi Joe (@jddarcy), >> >> As suggested by Sandhya (@sviswa7), I added ~750 fixed point tests for tanh >> in `TanhTests.java` using the quad precision tanh implementation in >> libquadmath library from gcc. >> >> Please let me kn

Re: RFR: 8338694: x86_64 intrinsic for tanh using libm [v8]

2024-09-16 Thread Srinivas Vamsi Parasa
> The goal of this PR is to implement an x86_64 intrinsic for > java.lang.Math.tanh() using libm > > Benchmark (ops/ms) | Stock JDK | Tanh intrinsic | Speedup > -- | -- | -- | -- > MathBench.tanhDouble | 70900 | 95618 | 1.35x Srinivas Vamsi Parasa has updated the pull request with a new target b

Re: RFR: 8336025: Improve ZipOutputSream validation of MAX CEN Header field limits [v2]

2024-09-16 Thread Alan Bateman
On Mon, 16 Sep 2024 18:12:32 GMT, Lance Andersen wrote: >> src/java.base/share/classes/java/util/zip/ZipOutputStream.java line 409: >> >>> 407: * A ZipException will be thrown if the combined length of the >>> entry name, >>> 408: * the extra field data, the entry comment and {@linkpl

Re: RFR: 8336025: Improve ZipOutputSream validation of MAX CEN Header field limits [v2]

2024-09-16 Thread Lance Andersen
On Mon, 16 Sep 2024 18:00:48 GMT, Alan Bateman wrote: >> Lance Andersen has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Update @link ->@linkplain > > src/java.base/share/classes/java/util/zip/ZipOutputStream.java line 409: > >> 407:

Re: RFR: 8336025: Improve ZipOutputSream validation of MAX CEN Header field limits [v2]

2024-09-16 Thread Alan Bateman
On Sun, 15 Sep 2024 13:11:26 GMT, Lance Andersen wrote: >> Please review the following PR which addresses that ZipOutputStream should >> validate the CEN header fields similar to what was done via >> [JDK-8316141](https://bugs.openjdk.org/browse/JDK-8316141) >> >> As part of this change, the j

Re: RFR: 8338694: x86_64 intrinsic for tanh using libm [v7]

2024-09-16 Thread Srinivas Vamsi Parasa
> The goal of this PR is to implement an x86_64 intrinsic for > java.lang.Math.tanh() using libm > > Benchmark (ops/ms) | Stock JDK | Tanh intrinsic | Speedup > -- | -- | -- | -- > MathBench.tanhDouble | 70900 | 95618 | 1.35x Srinivas Vamsi Parasa has updated the pull request incrementally with

RFR: 8321413: IllegalArgumentException: Code length outside the allowed range while creating a jlink image

2024-09-16 Thread Henry Jen
…nge while creating a jlink image - Commit messages: - 8321413: IllegalArgumentException: Code length outside the allowed range while creating a jlink image Changes: https://git.openjdk.org/jdk/pull/21022/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21022&range=00 Iss

Re: RFR: 8339574: Behavior of File.is{Directory,File,Hidden} is not documented with respect to symlinks [v7]

2024-09-16 Thread Alan Bateman
On Mon, 16 Sep 2024 17:16:41 GMT, Brian Burkhalter wrote: >> Make explicit how the `java.io.File` methods `isDirectory`, `isFile`, and >> `isHidden` behave when the `File` represents a symbolic link. > > Brian Burkhalter has updated the pull request incrementally with one > additional commit si

Re: RFR: 8339769: Incorrect error message during startup if working directory does not exist [v3]

2024-09-16 Thread Naoto Sato
On Fri, 13 Sep 2024 16:41:40 GMT, Justin Lu wrote: >> Please review this PR which restores the correct exception message when the >> current working directory can not be found during java startup in >> `initPhase1`. >> >> Both MacOS and Linux are expected to fail with `java.lang.Error: Propert

Re: RFR: 8339769: Incorrect error message during startup if working directory does not exist [v3]

2024-09-16 Thread Justin Lu
On Fri, 13 Sep 2024 16:41:40 GMT, Justin Lu wrote: >> Please review this PR which restores the correct exception message when the >> current working directory can not be found during java startup in >> `initPhase1`. >> >> Both MacOS and Linux are expected to fail with `java.lang.Error: Propert

Integrated: 8339769: Incorrect error message during startup if working directory does not exist

2024-09-16 Thread Justin Lu
On Thu, 12 Sep 2024 21:56:10 GMT, Justin Lu wrote: > Please review this PR which restores the correct exception message when the > current working directory can not be found during java startup in > `initPhase1`. > > Both MacOS and Linux are expected to fail with `java.lang.Error: Properties

Re: RFR: 8339574: Behavior of File.is{Directory,File,Hidden} is not documented with respect to symlinks [v7]

2024-09-16 Thread Brian Burkhalter
> Make explicit how the `java.io.File` methods `isDirectory`, `isFile`, and > `isHidden` behave when the `File` represents a symbolic link. Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision: 8339574: Address reviewer comments on FOS

Re: RFR: 8340073: Support "%z" time zone abbreviation format in TZ files [v2]

2024-09-16 Thread Naoto Sato
On Sat, 14 Sep 2024 09:20:25 GMT, Justin Lu wrote: >> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Do not add all links > > src/java.base/share/classes/sun/util/cldr/CLDRTimeZoneNameProviderImpl.java > line 270: > >> 268:

Re: RFR: 8338021: Support new unsigned and saturating vector operators in VectorAPI [v12]

2024-09-16 Thread Paul Sandoz
On Sat, 14 Sep 2024 08:40:44 GMT, Jatin Bhateja wrote: >> Hi All, >> >> As per the discussion on panama-dev mailing list[1], patch adds the support >> following new vector operators. >> >> >> . SUADD : Saturating unsigned addition. >> . SADD: Saturating signed addition. >>

Re: RFR: 8340079: Modify rearrange/selectFrom Vector API methods to perform wrapIndexes instead of checkIndexes

2024-09-16 Thread Sandhya Viswanathan
On Fri, 13 Sep 2024 19:45:11 GMT, Paul Sandoz wrote: >>> Given `rearrange` with 1 vector gets wrapping indices semantics. I think we >>> should stop normalizing indices when converting a `Vector` into a >>> `VectorShuffle` (currently we wrap all out-of-bound elements to `[-VLEN, >>> 0)`). Then

Re: RFR: 8340079: Modify rearrange/selectFrom Vector API methods to perform wrapIndexes instead of checkIndexes [v2]

2024-09-16 Thread Paul Sandoz
On Fri, 13 Sep 2024 22:30:36 GMT, Sandhya Viswanathan wrote: >> Currently the rearrange and selectFrom APIs check shuffle indices and throw >> IndexOutOfBoundsException if there is any exceptional source index in the >> shuffle. This causes the generated code to be less optimal. This PR modifi

Re: RFR: 8338694: x86_64 intrinsic for tanh using libm [v6]

2024-09-16 Thread Scott Gibbons
On Fri, 13 Sep 2024 22:36:45 GMT, Srinivas Vamsi Parasa wrote: >> The goal of this PR is to implement an x86_64 intrinsic for >> java.lang.Math.tanh() using libm >> >> Benchmark (ops/ms) | Stock JDK | Tanh intrinsic | Speedup >> -- | -- | -- | -- >> MathBench.tanhDouble | 70900 | 95618 | 1.35x

Re: RFR: 8311302: Allow for jlinking a custom runtime without packaged modules being present [v37]

2024-09-16 Thread Severin Gehwolf
> Please review this patch which adds a jlink mode to the JDK which doesn't > need the packaged modules being present. A.k.a run-time image based jlink. > Fundamentally this patch adds an option to use `jlink` even though your JDK > install might not come with the packaged modules (directory `jm

Re: RFR: 8340176: Replace usage of -noclassgc with -Xnoclassgc in test/jdk/java/lang/management/MemoryMXBean/LowMemoryTest2.java

2024-09-16 Thread Leonid Mesnik
On Mon, 16 Sep 2024 09:21:22 GMT, Jaikiran Pai wrote: > Can I please get a review of this test-only change which replaces the usage > of `-noclassgc` with `-Xnoclassgc` option when launching the test? > > As noted in https://bugs.openjdk.org/browse/JDK-8340176, the `-noclassgc` is > an undocum

Re: RFR: 8339699: Optimize DataOutputStream writeUTF [v5]

2024-09-16 Thread Chen Liang
On Mon, 16 Sep 2024 14:23:52 GMT, Shaojin Wen wrote: >> PR #20772 introduced an optimization for writeUTF, which can also be used in >> DataOutputStream::writeUTF. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > suggestion

Re: RFR: 8339699: Optimize DataOutputStream writeUTF [v5]

2024-09-16 Thread Shaojin Wen
> PR #20772 introduced an optimization for writeUTF, which can also be used in > DataOutputStream::writeUTF. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: suggestion from @liach - Changes: - all: https://git.openjdk.

Integrated: 8340131: Refactor internal makeHiddenClassDefiner to take option mask instead of Set

2024-09-16 Thread Claes Redestad
On Fri, 13 Sep 2024 15:40:46 GMT, Claes Redestad wrote: > Simple internal refactor to load a few classes less on startup. Arguably > cleaner and avoids some iterator allocations. This pull request has now been integrated. Changeset: e1ebeef0 Author:Claes Redestad URL: https://git.o

Re: RFR: 8340114: Remove outdated SelectVersion() function from the launcher and update the code comments explaining the code flow [v6]

2024-09-16 Thread Jaikiran Pai
On Mon, 16 Sep 2024 13:50:39 GMT, Jaikiran Pai wrote: > For macosx, the CreateExecutionEnvironment unconditionally, through an > internal MacOSXStartup function, spawns a new thread (pthread_create). I forgot to note that, the reason for spawning this new thread is explained as a code comment

Re: RFR: 8340131: Refactor internal makeHiddenClassDefiner to take option mask instead of Set [v6]

2024-09-16 Thread Claes Redestad
On Mon, 16 Sep 2024 07:58:44 GMT, Claes Redestad wrote: >> Simple internal refactor to load a few classes less on startup. Arguably >> cleaner and avoids some iterator allocations. > > Claes Redestad has updated the pull request incrementally with one additional > commit since the last revision

Re: RFR: 8340114: Remove outdated SelectVersion() function from the launcher and update the code comments explaining the code flow [v6]

2024-09-16 Thread Jaikiran Pai
On Mon, 16 Sep 2024 01:06:27 GMT, David Holmes wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> comment improvements > > src/java.base/macosx/native/libjli/java_md_macosx.m line 83: > >> 81: *point of creating

Re: RFR: 8340114: Remove outdated SelectVersion() function from the launcher and update the code comments explaining the code flow [v6]

2024-09-16 Thread Jaikiran Pai
> Can I please get a review of this change which proposes to remove the > (internal) `SelectVersion()` function from the java launcher and also update > the code comments in the launcher to match the current implementation? > > As noted in https://bugs.openjdk.org/browse/JDK-8340114, the > `Sel

Re: RFR: 8339217: Optimize ClassFile API loadConstant [v6]

2024-09-16 Thread Adam Sotona
On Sat, 14 Sep 2024 02:45:47 GMT, Shaojin Wen wrote: >> This is a large method. By splitting it into multiple methods with the same >> name, the caller can automatically select based on the different types of >> parameters, avoiding this large call that cannot be inlined, which can also >> imp

Re: RFR: 8339217: Optimize ClassFile API loadConstant [v6]

2024-09-16 Thread Claes Redestad
On Sat, 14 Sep 2024 02:45:47 GMT, Shaojin Wen wrote: >> This is a large method. By splitting it into multiple methods with the same >> name, the caller can automatically select based on the different types of >> parameters, avoiding this large call that cannot be inlined, which can also >> imp

Re: RFR: 8340200: Misspelled constant `AttributesProcessingOption.DROP_UNSTABLE_ATRIBUTES`

2024-09-16 Thread Chen Liang
On Mon, 16 Sep 2024 12:56:14 GMT, David M. Lloyd wrote: > Please review this small change to fix a misspelling. The constant is not > used directly; rather it is used by ordinal, which explains why the error was > not found sooner. Thanks for the fix! You can transition the CSR issue state to

Re: RFR: 8340131: Refactor internal makeHiddenClassDefiner to take ClassOption ... instead of Set [v6]

2024-09-16 Thread Jorn Vernee
On Mon, 16 Sep 2024 07:58:44 GMT, Claes Redestad wrote: >> Simple internal refactor to load a few classes less on startup. Arguably >> cleaner and avoids some iterator allocations. > > Claes Redestad has updated the pull request incrementally with one additional > commit since the last revision

Re: RFR: 8339699: Optimize DataOutputStream writeUTF [v4]

2024-09-16 Thread Chen Liang
On Fri, 13 Sep 2024 17:38:56 GMT, Shaojin Wen wrote: >> PR #20772 introduced an optimization for writeUTF, which can also be used in >> DataOutputStream::writeUTF. > > Shaojin Wen has updated the pull request incrementally with two additional > commits since the last revision: > > - rename JD

Re: RFR: 8340131: Refactor internal makeHiddenClassDefiner to take ClassOption ... instead of Set [v6]

2024-09-16 Thread Chen Liang
On Mon, 16 Sep 2024 07:58:44 GMT, Claes Redestad wrote: >> Simple internal refactor to load a few classes less on startup. Arguably >> cleaner and avoids some iterator allocations. > > Claes Redestad has updated the pull request incrementally with one additional > commit since the last revision

Re: RFR: 8340200: Misspelled constant `AttributesProcessingOption.DROP_UNSTABLE_ATRIBUTES`

2024-09-16 Thread Chen Liang
On Mon, 16 Sep 2024 12:56:14 GMT, David M. Lloyd wrote: > Please review this small change to fix a misspelling. The constant is not > used directly; rather it is used by ordinal, which explains why the error was > not found sooner. Thanks for this typo fix. Since this will result in a signatur

RFR: 8340200: Misspelled constant `AttributesProcessingOption.DROP_UNSTABLE_ATRIBUTES`

2024-09-16 Thread David M . Lloyd
Please review this small change to fix a misspelling. The constant is not used directly; rather it is used by ordinal, which explains why the error was not found sooner. - Commit messages: - 8340200: Misspelled constant `AttributesProcessingOption.DROP_UNSTABLE_ATRIBUTES` Changes

Re: RFR: 8336025: Improve ZipOutputSream validation of MAX CEN Header field limits [v2]

2024-09-16 Thread Eirik Bjørsnøs
On Mon, 16 Sep 2024 11:19:36 GMT, Lance Andersen wrote: > I left that intentionally for now. A follow on PR will be updating the > ZipEntry javadoc to reduce the max size of the validation check once this PR > is finalized. Hang on, not sure I follow. Perhaps I just didn't understand your resp

Re: RFR: 8340114: Remove outdated SelectVersion() function from the launcher and update the code comments explaining the code flow [v5]

2024-09-16 Thread David Holmes
On Mon, 16 Sep 2024 06:16:56 GMT, Jaikiran Pai wrote: >> src/java.base/share/native/libjli/java.c line 38: >> >>> 36: * One job of the launcher is to remove command line options which the >>> 37: * vm does not understand and will not process. These options include >>> 38: * options which sele

Re: RFR: 8336025: Improve ZipOutputSream validation of MAX CEN Header field limits [v2]

2024-09-16 Thread Eirik Bjørsnøs
On Mon, 16 Sep 2024 11:31:11 GMT, Lance Andersen wrote: > > The combined length, after encoding, of the .. > > thoughts? I like it. Disambiguating but also succinct. - PR Review Comment: https://git.openjdk.org/jdk/pull/21003#discussion_r1761014094

Re: RFR: 8325949: Create an internal utility method for creating VarHandle instances [v3]

2024-09-16 Thread Per Minborg
> This PR suggests introducing an internal class in `java.base` to simplify the > use of some `MethodHandles.Lookup` operations. > > While the utility of the methods might appear to be limited in classes with > many static `VarHandle`/`MethodHandle` variables, it should be noted that the > clas

Re: RFR: 8336025: Improve ZipOutputSream validation of MAX CEN Header field limits [v2]

2024-09-16 Thread Lance Andersen
On Mon, 16 Sep 2024 10:05:56 GMT, Eirik Bjørsnøs wrote: > I'm curious why the combined header length validation is being placed so > late. In general I would assume failing fast is better? > > Also, since the combined header length clause applies to "any directory > record", it also applies to

Re: RFR: 8336025: Improve ZipOutputSream validation of MAX CEN Header field limits [v2]

2024-09-16 Thread Lance Andersen
On Mon, 16 Sep 2024 09:36:49 GMT, Eirik Bjørsnøs wrote: >> Lance Andersen has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Update @link ->@linkplain > > src/java.base/share/classes/java/util/zip/ZipEntry.java line 41: > >> 39: * This cl

Re: RFR: 8336025: Improve ZipOutputSream validation of MAX CEN Header field limits [v2]

2024-09-16 Thread Lance Andersen
On Sun, 15 Sep 2024 13:11:26 GMT, Lance Andersen wrote: >> Please review the following PR which addresses that ZipOutputStream should >> validate the CEN header fields similar to what was done via >> [JDK-8316141](https://bugs.openjdk.org/browse/JDK-8316141) >> >> As part of this change, the j

Re: RFR: 8340114: Remove outdated SelectVersion() function from the launcher and update the code comments explaining the code flow [v5]

2024-09-16 Thread Jaikiran Pai
> Can I please get a review of this change which proposes to remove the > (internal) `SelectVersion()` function from the java launcher and also update > the code comments in the launcher to match the current implementation? > > As noted in https://bugs.openjdk.org/browse/JDK-8340114, the > `Sel

Re: RFR: 8340114: Remove outdated SelectVersion() function from the launcher and update the code comments explaining the code flow [v4]

2024-09-16 Thread Jaikiran Pai
On Mon, 16 Sep 2024 10:11:58 GMT, Alan Bateman wrote: >> Jaikiran Pai 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 >> commits

Re: RFR: 8337143: (fc, fs) Move filesystem-related native objects from libnio to libjava [v8]

2024-09-16 Thread Magnus Ihse Bursie
On Fri, 13 Sep 2024 20:41:27 GMT, Brian Burkhalter wrote: >> This proposed change would move the native objects required for NIO file >> interaction from the libnio native library to the libjava native library on >> Linux, macOS, and Windows. > > Brian Burkhalter has updated the pull request in

Re: RFR: 8325949: Create an internal utility method for creating VarHandle instances [v2]

2024-09-16 Thread Kasper Nielsen
On Fri, 13 Sep 2024 07:50:49 GMT, Per Minborg wrote: >> This PR suggests introducing an internal class in `java.base` to simplify >> the use of some `MethodHandles.Lookup` operations. >> >> While the utility of the methods might appear to be limited in classes with >> many static `VarHandle`/`

Re: RFR: 8340114: Remove outdated SelectVersion() function from the launcher and update the code comments explaining the code flow [v4]

2024-09-16 Thread Alan Bateman
On Mon, 16 Sep 2024 08:49:52 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to remove the >> (internal) `SelectVersion()` function from the java launcher and also update >> the code comments in the launcher to match the current implementation? >> >> As note

Re: RFR: 8336025: Improve ZipOutputSream validation of MAX CEN Header field limits [v2]

2024-09-16 Thread Eirik Bjørsnøs
On Sun, 15 Sep 2024 13:11:26 GMT, Lance Andersen wrote: >> Please review the following PR which addresses that ZipOutputStream should >> validate the CEN header fields similar to what was done via >> [JDK-8316141](https://bugs.openjdk.org/browse/JDK-8316141) >> >> As part of this change, the j

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

2024-09-16 Thread Adam Sotona
> 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 review. > > Thanks, > Adam Adam Sotona has updated the pull re

Re: RFR: 8336025: Improve ZipOutputSream validation of MAX CEN Header field limits [v2]

2024-09-16 Thread Eirik Bjørsnøs
On Sun, 15 Sep 2024 13:11:26 GMT, Lance Andersen wrote: >> Please review the following PR which addresses that ZipOutputStream should >> validate the CEN header fields similar to what was done via >> [JDK-8316141](https://bugs.openjdk.org/browse/JDK-8316141) >> >> As part of this change, the j

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

2024-09-16 Thread Adam Sotona
> 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 review. > > Thanks, > Adam Adam Sotona has updated the pull re

Re: RFR: 8340176: Replace usage of -noclassgc with -Xnoclassgc in test/jdk/java/lang/management/MemoryMXBean/LowMemoryTest2.java

2024-09-16 Thread Kevin Walls
On Mon, 16 Sep 2024 09:21:22 GMT, Jaikiran Pai wrote: > Can I please get a review of this test-only change which replaces the usage > of `-noclassgc` with `-Xnoclassgc` option when launching the test? > > As noted in https://bugs.openjdk.org/browse/JDK-8340176, the `-noclassgc` is > an undocum

RFR: 8340176: Replace usage of -noclassgc with -Xnoclassgc in test/jdk/java/lang/management/MemoryMXBean/LowMemoryTest2.java

2024-09-16 Thread Jaikiran Pai
Can I please get a review of this test-only change which replaces the usage of `-noclassgc` with `-Xnoclassgc` option when launching the test? As noted in https://bugs.openjdk.org/browse/JDK-8340176, the `-noclassgc` is an undocumented option of the `java` launcher, which it converts to `-Xnocla

Re: RFR: 8336025: Improve ZipOutputSream validation of MAX CEN Header field limits [v2]

2024-09-16 Thread Eirik Bjørsnøs
On Sun, 15 Sep 2024 13:11:26 GMT, Lance Andersen wrote: >> Please review the following PR which addresses that ZipOutputStream should >> validate the CEN header fields similar to what was done via >> [JDK-8316141](https://bugs.openjdk.org/browse/JDK-8316141) >> >> As part of this change, the j

Re: RFR: 8340114: Remove outdated SelectVersion() function from the launcher and update the code comments explaining the code flow [v4]

2024-09-16 Thread Jaikiran Pai
> Can I please get a review of this change which proposes to remove the > (internal) `SelectVersion()` function from the java launcher and also update > the code comments in the launcher to match the current implementation? > > As noted in https://bugs.openjdk.org/browse/JDK-8340114, the > `Sel

Integrated: 8339918: Remove checks for outdated -t -tm -Xfuture -checksource -cs -noasyncgc options from the launcher

2024-09-16 Thread Jaikiran Pai
On Wed, 11 Sep 2024 09:47:24 GMT, Jaikiran Pai wrote: > Can I please get a review for this change which cleans up the `java` launcher > to remove checks/support for outdated options? > > As noted in https://bugs.openjdk.org/browse/JDK-8339918, these 6 options have > been outdated and unsupport

Re: RFR: 8339918: Remove checks for outdated -t -tm -Xfuture -checksource -cs -noasyncgc options from the launcher [v7]

2024-09-16 Thread Jaikiran Pai
On Mon, 16 Sep 2024 04:44:39 GMT, Jaikiran Pai wrote: >> Can I please get a review for this change which cleans up the `java` >> launcher to remove checks/support for outdated options? >> >> As noted in https://bugs.openjdk.org/browse/JDK-8339918, these 6 options >> have been outdated and unsu

  1   2   >