Integrated: 8308899: Introduce Classfile context and improve Classfile options

2023-06-26 Thread Adam Sotona
On Fri, 26 May 2023 14:56:57 GMT, Adam Sotona wrote: > Classfile context object and multi-state options have been discussed at > https://mail.openjdk.org/pipermail/classfile-api-dev/2023-May/000321.html > This patch implements the proposed changes in Classfile API and fixes all > affected code

Re: RFR: 8308899: Introduce Classfile context and improve Classfile options [v26]

2023-06-26 Thread Chen Liang
On Mon, 26 Jun 2023 16:47:46 GMT, Adam Sotona wrote: >> Classfile context object and multi-state options have been discussed at >> https://mail.openjdk.org/pipermail/classfile-api-dev/2023-May/000321.html >> This patch implements the proposed changes in Classfile API and fixes all >> affected

Re: RFR: 8310182: DateTimeFormatter date formats (ISO_LOCAL_DATE) separated with hyphen, not dash [v2]

2023-06-26 Thread Iris Clark
On Tue, 27 Jun 2023 03:39:30 GMT, Naoto Sato wrote: >> Replacing the ambiguous `dash` with `hyphen-minus` for more clarity. There >> are other locations than `ISO_LOCAL_DATE` that have the same description. >> Those are corrected too. > > Naoto Sato has updated the pull request incrementally

Re: RFR: 8310849: Pattern matching for instanceof and arrayType cleanup in j.l.invoke and j.l.reflect [v4]

2023-06-26 Thread Chen Liang
On Mon, 26 Jun 2023 22:02:28 GMT, Chen Liang wrote: >> This patch touches java.lang.reflect and java.lang.invoke packages. It >> replaces instanceof + cast with pattern matching and updates >> Array.newInstance().getClass() patterns with arrayType() for obtaining array >> types of a class. >

Re: RFR: 8310182: DateTimeFormatter date formats (ISO_LOCAL_DATE) separated with hyphen, not dash [v2]

2023-06-26 Thread Joe Darcy
On Tue, 27 Jun 2023 03:39:30 GMT, Naoto Sato wrote: >> Replacing the ambiguous `dash` with `hyphen-minus` for more clarity. There >> are other locations than `ISO_LOCAL_DATE` that have the same description. >> Those are corrected too. > > Naoto Sato has updated the pull request incrementally

Re: RFR: 8291065: Creating a VarHandle for a static field triggers class initialization [v12]

2023-06-26 Thread Chen Liang
> Also fixed the bug with NPE in `IndirectVarHandle::isAccessModeSupported`. > > A few implementation-detail methods in VarHandle are now documented with the > implied constraints to avoid subtle problems in the future. Changed > `IndirectVarHandle` to call `asDirect` lazily to accomodate the

Re: RFR: 8310182: DateTimeFormatter date formats (ISO_LOCAL_DATE) separated with hyphen, not dash [v2]

2023-06-26 Thread Naoto Sato
> Replacing the ambiguous `dash` with `hyphen-minus` for more clarity. There > are other locations than `ISO_LOCAL_DATE` that have the same description. > Those are corrected too. Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:

Re: RFR: JDK-8310502 : Optimization for j.l.Long.fastUUID() [v25]

2023-06-26 Thread 温绍锦
On Mon, 26 Jun 2023 09:57:31 GMT, 温绍锦 wrote: >> By optimizing the implementation of java.lang.Long#fastUUID, the performance >> of the java.util.UUID#toString method can be significantly improved. >> >> The following are the test results of JMH: >> >> Benchmark Mode Cnt

[jdk21] Integrated: 8310242: Clarify the name parameter to Class::forName

2023-06-26 Thread Mandy Chung
On Mon, 26 Jun 2023 20:25:40 GMT, Mandy Chung wrote: > Hi all, > > This pull request contains a backport of commit > [7db2f087](https://github.com/openjdk/jdk/commit/7db2f08756b0aa1d79cdd2356ed42aa5ab8bc58b) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. > > The commit

Re: [jdk21] RFR: 8310242: Clarify the name parameter to Class::forName [v2]

2023-06-26 Thread David Holmes
On Mon, 26 Jun 2023 23:02:29 GMT, Mandy Chung wrote: >> Hi all, >> >> This pull request contains a backport of commit >> [7db2f087](https://github.com/openjdk/jdk/commit/7db2f08756b0aa1d79cdd2356ed42aa5ab8bc58b) >> from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. >> >> The

Re: RFR: JDK-8310502 : Optimization for j.l.Long.fastUUID() [v25]

2023-06-26 Thread 温绍锦
On Mon, 26 Jun 2023 09:57:31 GMT, 温绍锦 wrote: >> By optimizing the implementation of java.lang.Long#fastUUID, the performance >> of the java.util.UUID#toString method can be significantly improved. >> >> The following are the test results of JMH: >> >> Benchmark Mode Cnt

Re: RFR: JDK-8310814: Clarify the targetName parameter of Lookup::findClass [v2]

2023-06-26 Thread Mandy Chung
> This PR updates the spec of `Lookup::findClass` to reflect the current > behavior that requires a binary name or a string representing an array class > in the form as returned by `Class::getName`. > > `test/jdk/java/lang/invoke/accessClassAndFindClass/TestFindClass.java` > already covers

Re: RFR: 8307575: Migrate the serialization constructor accessors to Method Handles [v3]

2023-06-26 Thread Chen Liang
> Apparently method handle linking doesn't impose extra checks on constructor > invocation, so the special logic for the serialization constructor to call > superclass constructor in MagicAccessorImpl can be removed altogether with > old core reflection implementation. > > Serialization and

Re: [jdk21] RFR: 8310242: Clarify the name parameter to Class::forName [v2]

2023-06-26 Thread Mandy Chung
> Hi all, > > This pull request contains a backport of commit > [7db2f087](https://github.com/openjdk/jdk/commit/7db2f08756b0aa1d79cdd2356ed42aa5ab8bc58b) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. > > The commit being backported was authored by Mandy Chung on 26 Jun

Re: RFR: JDK-8308398 Move SunEC crypto provider into java.base [v2]

2023-06-26 Thread Anthony Scarpino
> Hi, > > I need a code review for moving the contents of the jdk.crypto.ec module into > java.base. This moves the SunEC JCE Provider (Elliptic Curve) into > java.base. EC has always been separate from the base module/pkg because of > its dependence on a native library. That library was

Re: RFR: JDK-8310502 : Optimization for j.l.Long.fastUUID() [v25]

2023-06-26 Thread 温绍锦
On Mon, 26 Jun 2023 09:57:31 GMT, 温绍锦 wrote: >> By optimizing the implementation of java.lang.Long#fastUUID, the performance >> of the java.util.UUID#toString method can be significantly improved. >> >> The following are the test results of JMH: >> >> Benchmark Mode Cnt

Re: RFR: 8309819: Clarify API note in Class::getName and MethodType::toMethodDescriptorString [v6]

2023-06-26 Thread Chen Liang
On Mon, 26 Jun 2023 22:33:35 GMT, Mandy Chung wrote: >> "component descriptor" tried to refer to both parameter types and return >> type descriptors. How about "produce identical class descriptors in method >> descriptors?" > > `MethodType::descriptorString` refers to method descriptor and >

[jdk21] RFR: 8310838: Correct range notations in MethodTypeDesc specification

2023-06-26 Thread Chen Liang
Hi all, This pull request contains a backport of commit [a197ee79](https://github.com/openjdk/jdk/commit/a197ee797b3580d9f85636522587d3f6418dff6a) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. This is a doc-only typo fix. The commit being backported was authored by Chen

Re: RFR: 8309819: Clarify API note in Class::getName and MethodType::toMethodDescriptorString [v6]

2023-06-26 Thread Mandy Chung
On Mon, 26 Jun 2023 22:30:20 GMT, Chen Liang wrote: >> Why can't just say "identical descriptor strings"? It's unclear what >> "component descriptor" is. > > "component descriptor" tried to refer to both parameter types and return type > descriptors. How about "produce identical class

Re: RFR: 8309819: Clarify API note in Class::getName and MethodType::toMethodDescriptorString [v6]

2023-06-26 Thread Mandy Chung
On Mon, 26 Jun 2023 22:17:16 GMT, Chen Liang wrote: >> src/java.base/share/classes/java/lang/invoke/MethodType.java line 1229: >> >>> 1227: * >>> 1228: * @apiNote >>> 1229: * This is not a strict inverse of {@link >>> #fromMethodDescriptorString >> >> Re-reading this, I think

Re: RFR: 8309819: Clarify API note in Class::getName and MethodType::toMethodDescriptorString [v6]

2023-06-26 Thread Chen Liang
On Mon, 26 Jun 2023 22:27:57 GMT, Mandy Chung wrote: >> * Two distinct classes which share a common name but have different class >> loaders >> * produce identical component descriptors in descriptor strings. >> >> Does this sound good? This also addresses alan's wording concerns. > > Why

Integrated: JDK-8310909: java.io.InvalidObjectException has redundant `@since` tag

2023-06-26 Thread Jonathan Gibbons
On Mon, 26 Jun 2023 18:32:30 GMT, Jonathan Gibbons wrote: > Please review a trivial update to remove a redundant `@since` tag. This pull request has now been integrated. Changeset: 46add3f8 Author:Jonathan Gibbons URL:

Re: RFR: 8309819: Clarify API note in Class::getName and MethodType::toMethodDescriptorString [v6]

2023-06-26 Thread Chen Liang
On Mon, 26 Jun 2023 18:53:42 GMT, Mandy Chung wrote: >> Chen Liang has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains ten additional >> commits

Re: RFR: 8309819: Clarify API note in Class::getName and MethodType::toMethodDescriptorString [v8]

2023-06-26 Thread Chen Liang
> The API specification for descriptorString not being a strict inverse of > Class::forName and MethodType::fromDescriptorString are not entirely correct. > > 1. Class::descriptorString was never an inverse of Class::forName, which > takes a binary name instead. The note about different class

Re: [jdk21] RFR: 8310242: Clarify the name parameter to Class::forName

2023-06-26 Thread Mandy Chung
On Mon, 26 Jun 2023 21:58:41 GMT, Chen Liang wrote: >> Hi all, >> >> This pull request contains a backport of commit >> [7db2f087](https://github.com/openjdk/jdk/commit/7db2f08756b0aa1d79cdd2356ed42aa5ab8bc58b) >> from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. >> >> The

Integrated: 8310838: Correct range notations in MethodTypeDesc specification

2023-06-26 Thread Chen Liang
On Sat, 24 Jun 2023 01:07:48 GMT, Chen Liang wrote: > https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/lang/constant/MethodTypeDesc.html > > These 3 typos are discovered while browsing the online documentation. It > probably doesn't need a CSR for it doesn't change the

Re: RFR: 8310849: Pattern matching for instanceof and arrayType cleanup in j.l.invoke and j.l.reflect [v3]

2023-06-26 Thread Chen Liang
On Mon, 26 Jun 2023 18:28:06 GMT, Mandy Chung wrote: >> Chen Liang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> simplify equals by replacing if with and operators > > src/java.base/share/classes/java/lang/invoke/MethodType.java line

Re: RFR: 8310849: Pattern matching for instanceof and arrayType cleanup in j.l.invoke and j.l.reflect [v3]

2023-06-26 Thread Chen Liang
On Mon, 26 Jun 2023 20:54:42 GMT, Andrey Turbanov wrote: >> Chen Liang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> simplify equals by replacing if with and operators > > src/java.base/share/classes/java/lang/invoke/MemberName.java

Re: RFR: 8310849: Pattern matching for instanceof and arrayType cleanup in j.l.invoke and j.l.reflect [v4]

2023-06-26 Thread Chen Liang
> This patch touches java.lang.reflect and java.lang.invoke packages. It > replaces instanceof + cast with pattern matching and updates > Array.newInstance().getClass() patterns with arrayType() for obtaining array > types of a class. Chen Liang has updated the pull request incrementally with

Re: [jdk21] RFR: 8310242: Clarify the name parameter to Class::forName

2023-06-26 Thread Chen Liang
On Mon, 26 Jun 2023 20:25:40 GMT, Mandy Chung wrote: > Hi all, > > This pull request contains a backport of commit > [7db2f087](https://github.com/openjdk/jdk/commit/7db2f08756b0aa1d79cdd2356ed42aa5ab8bc58b) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. > > The commit

RFR: JDK-8310814: Clarify the targetName parameter of Lookup::findClass

2023-06-26 Thread Mandy Chung
This PR updates the spec of `Lookup::findClass` to reflect the current behavior that requires a binary name or a string representing an array class in the form as returned by `Class::getName`. `test/jdk/java/lang/invoke/accessClassAndFindClass/TestFindClass.java` already covers the test

Integrated: JDK-8310922: java/lang/Class/forName/ForNameNames.java fails after being added by JDK-8310242

2023-06-26 Thread Mandy Chung
On Mon, 26 Jun 2023 21:21:41 GMT, Mandy Chung wrote: > A trivial fix to correct the expected result to be `Inner[].class`. I > missed the rerun of the test to verify the last-minute edit to the test by > JDK-8310242. This pull request has now been integrated. Changeset: 7c6a28fd Author:

Re: Integrated: JDK-8310922: java/lang/Class/forName/ForNameNames.java fails after being added by JDK-8310242

2023-06-26 Thread Daniel D . Daugherty
On Mon, 26 Jun 2023 21:21:41 GMT, Mandy Chung wrote: > A trivial fix to correct the expected result to be `Inner[].class`. I > missed the rerun of the test to verify the last-minute edit to the test by > JDK-8310242. Thumbs up. This is a trivial fix. - PR Comment:

Re: Integrated: JDK-8310922: java/lang/Class/forName/ForNameNames.java fails after being added by JDK-8310242

2023-06-26 Thread David Holmes
On Mon, 26 Jun 2023 21:21:41 GMT, Mandy Chung wrote: > A trivial fix to correct the expected result to be `Inner[].class`. I > missed the rerun of the test to verify the last-minute edit to the test by > JDK-8310242. Looks good. - Marked as reviewed by dholmes (Reviewer). PR

Re: Integrated: JDK-8310922: java/lang/Class/forName/ForNameNames.java fails after being added by JDK-8310242

2023-06-26 Thread Mandy Chung
On Mon, 26 Jun 2023 21:21:41 GMT, Mandy Chung wrote: > A trivial fix to correct the expected result to be `Inner[].class`. I > missed the rerun of the test to verify the last-minute edit to the test by > JDK-8310242. thanks for the prompt review. - PR Comment:

Integrated: JDK-8310922: java/lang/Class/forName/ForNameNames.java fails after being added by JDK-8310242

2023-06-26 Thread Mandy Chung
A trivial fix to correct the expected result to be `Inner[].class`. I missed the rerun of the test to verify the last-minute edit to the test by JDK-8310242. - Commit messages: - JDK-8310922: java/lang/Class/forName/ForNameNames.java fails after being added by JDK-8310242

RFR: 8310914: Remove 2 malformed java/foreign ProblemList entries

2023-06-26 Thread Jorn Vernee
Remove 2 malformed problem list entries. These entries are considered malformed according to [1] since they are missing a bug number. The `java/foreign/callarranger/TestAarch64CallArranger.java` test was removed, and the `java/foreign/TestLargeSegmentCopy.java` disables x86 in the jtreg test

Re: RFR: 8310849: Pattern matching for instanceof and arrayType cleanup in j.l.invoke and j.l.reflect [v3]

2023-06-26 Thread Andrey Turbanov
On Mon, 26 Jun 2023 13:51:25 GMT, Chen Liang wrote: >> This patch touches java.lang.reflect and java.lang.invoke packages. It >> replaces instanceof + cast with pattern matching and updates >> Array.newInstance().getClass() patterns with arrayType() for obtaining array >> types of a class. >

[jdk21] Integrated: 8309670: java -help output for --module-path / -p is incomplete

2023-06-26 Thread Christian Stein
On Fri, 23 Jun 2023 11:32:04 GMT, Christian Stein wrote: > Hi all, > > This pull request contains a backport of commit > [4bf78162](https://github.com/openjdk/jdk/commit/4bf78162c52564645af79b8324b69d89102dc024) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. > > The commit

[jdk21] RFR: 8310242: Clarify the name parameter to Class::forName

2023-06-26 Thread Mandy Chung
Hi all, This pull request contains a backport of commit [7db2f087](https://github.com/openjdk/jdk/commit/7db2f08756b0aa1d79cdd2356ed42aa5ab8bc58b) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. The commit being backported was authored by Mandy Chung on 26 Jun 2023 and was

Re: RFR: 8310849: Pattern matching for instanceof and arrayType cleanup in j.l.invoke and j.l.reflect [v3]

2023-06-26 Thread Joe Darcy
On Mon, 26 Jun 2023 13:51:25 GMT, Chen Liang wrote: >> This patch touches java.lang.reflect and java.lang.invoke packages. It >> replaces instanceof + cast with pattern matching and updates >> Array.newInstance().getClass() patterns with arrayType() for obtaining array >> types of a class. >

Re: RFR: 8310241: OffsetDateTime compareTo redundant computation

2023-06-26 Thread Roger Riggs
On Mon, 26 Jun 2023 18:28:47 GMT, Naoto Sato wrote: >> Remove a redundant comparison in java.time `OffsetDateTime.compareTo()`. >> If the `compareInstant` utility method returns 0 (equal), it compares the >> `LocalDateTime`. >> However, `compareInstant` has already done that comparison; if it

Withdrawn: 8310241: OffsetDateTime compareTo redundant computation

2023-06-26 Thread Roger Riggs
On Thu, 22 Jun 2023 19:03:03 GMT, Roger Riggs wrote: > Remove a redundant comparison in java.time `OffsetDateTime.compareTo()`. > If the `compareInstant` utility method returns 0 (equal), it compares the > `LocalDateTime`. > However, `compareInstant` has already done that comparison; if it

Re: RFR: 8310241: OffsetDateTime compareTo redundant computation

2023-06-26 Thread Roger Riggs
On Thu, 22 Jun 2023 19:03:03 GMT, Roger Riggs wrote: > Remove a redundant comparison in java.time `OffsetDateTime.compareTo()`. > If the `compareInstant` utility method returns 0 (equal), it compares the > `LocalDateTime`. > However, `compareInstant` has already done that comparison; if it

Re: RFR: 8310838: Correct range notations in MethodTypeDesc specification

2023-06-26 Thread Mandy Chung
On Sat, 24 Jun 2023 01:07:48 GMT, Chen Liang wrote: > https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/lang/constant/MethodTypeDesc.html > > These 3 typos are discovered while browsing the online documentation. It > probably doesn't need a CSR for it doesn't change the

Re: RFR: 8310849: Pattern matching for instanceof and arrayType cleanup in j.l.invoke and j.l.reflect [v3]

2023-06-26 Thread Mandy Chung
On Mon, 26 Jun 2023 13:51:25 GMT, Chen Liang wrote: >> This patch touches java.lang.reflect and java.lang.invoke packages. It >> replaces instanceof + cast with pattern matching and updates >> Array.newInstance().getClass() patterns with arrayType() for obtaining array >> types of a class. >

Integrated: 8310242: Clarify the name parameter to Class::forName

2023-06-26 Thread Mandy Chung
On Fri, 16 Jun 2023 19:58:08 GMT, Mandy Chung wrote: > This PR clarifies the spec of the 3-arg Class::forName regarding the format > of the name for an array type which is of the form: one or more of "[" + > binary name of the element type + ";'. This pull request has now been integrated.

Integrated: 8301492: Modernize equals() method of ResourceBundle.CacheKey and Bundles.CacheKey

2023-06-26 Thread Sergey Tsypanov
On Tue, 31 Jan 2023 11:40:43 GMT, Sergey Tsypanov wrote: > `ResourceBundle.CacheKey.equals()` and `Bundles.CacheKey.equals()` are quire > outdated. This simple clean-up modernizes them. This pull request has now been integrated. Changeset: 297c7996 Author:Sergey Tsypanov Committer: Pavel

Re: RFR: 8296477: Foreign linker implementation update following JEP 434 [v2]

2023-06-26 Thread Jorn Vernee
On Wed, 7 Dec 2022 09:24:24 GMT, Jaikiran Pai wrote: >> I'm not sure what the conventional move here would be. Adding them to the >> problem list doesn't seem to make the failures go away in GHA at least. I >> can exclude them with `@requires` as well. > > Hello Jorn, > >> Adding them to the

Re: RFR: JDK-8310909: java.io.InvalidObjectException has redundant `@since` tag

2023-06-26 Thread Iris Clark
On Mon, 26 Jun 2023 18:32:30 GMT, Jonathan Gibbons wrote: > Please review a trivial update to remove a redundant `@since` tag. Marked as reviewed by iris (Reviewer). - PR Review: https://git.openjdk.org/jdk/pull/14662#pullrequestreview-1499227762

Re: RFR: JDK-8310909: java.io.InvalidObjectException has redundant `@since` tag

2023-06-26 Thread Joe Darcy
On Mon, 26 Jun 2023 18:32:30 GMT, Jonathan Gibbons wrote: > Please review a trivial update to remove a redundant `@since` tag. Marked as reviewed by darcy (Reviewer). - PR Review: https://git.openjdk.org/jdk/pull/14662#pullrequestreview-1499215438

Re: RFR: 8310828: java.sql java.sql.rowset packages have no `@since` info

2023-06-26 Thread Brian Burkhalter
On Mon, 26 Jun 2023 13:00:31 GMT, Lance Andersen wrote: > Hi all, > > Please review this trivial change which adds the `@since` javadoc tag to the > various ` java.sql `and `java.sql.rowset` packages. > > Best > Lance Marked as reviewed by bpb (Reviewer). - PR Review:

Re: RFR: 8310828: java.sql java.sql.rowset packages have no `@since` info

2023-06-26 Thread Joe Darcy
On Mon, 26 Jun 2023 13:00:31 GMT, Lance Andersen wrote: > Hi all, > > Please review this trivial change which adds the `@since` javadoc tag to the > various ` java.sql `and `java.sql.rowset` packages. > > Best > Lance Marked as reviewed by darcy (Reviewer). - PR Review:

Re: RFR: JDK-8310909: java.io.InvalidObjectException has redundant `@since` tag

2023-06-26 Thread Brian Burkhalter
On Mon, 26 Jun 2023 18:32:30 GMT, Jonathan Gibbons wrote: > Please review a trivial update to remove a redundant `@since` tag. Marked as reviewed by bpb (Reviewer). - PR Review: https://git.openjdk.org/jdk/pull/14662#pullrequestreview-1499208126

Re: RFR: 8310890: Normalize identifier names

2023-06-26 Thread Pavel Rappo
On Mon, 26 Jun 2023 18:44:42 GMT, Pavel Rappo wrote: >> make/data/charsetmapping/charsets line 149: >> >>> 147: package sun.nio.cs >>> 148: typesbcs >>> 149: histname ISO8859_2 >> >> Should this column be re-aligned with the longer name? > > I thought about it before publishing

Re: RFR: 8309819: Clarify API note in Class::getName and MethodType::toMethodDescriptorString [v7]

2023-06-26 Thread Mandy Chung
On Thu, 22 Jun 2023 01:38:05 GMT, Chen Liang wrote: >> The API specification for descriptorString not being a strict inverse of >> Class::forName and MethodType::fromDescriptorString are not entirely correct. >> >> 1. Class::descriptorString was never an inverse of Class::forName, which >>

Re: RFR: JDK-8310909: java.io.InvalidObjectException has redundant `@since` tag

2023-06-26 Thread Naoto Sato
On Mon, 26 Jun 2023 18:32:30 GMT, Jonathan Gibbons wrote: > Please review a trivial update to remove a redundant `@since` tag. Marked as reviewed by naoto (Reviewer). - PR Review: https://git.openjdk.org/jdk/pull/14662#pullrequestreview-1499185740

Re: RFR: 8310890: Normalize identifier names

2023-06-26 Thread Pavel Rappo
On Mon, 26 Jun 2023 18:31:06 GMT, Jens Lidestrom wrote: >> Please review this cleanup PR to normalize names of identifiers which are >> Java variables/fields or tokens in text files. Those names either contain a >> pronoun that is very rarely used in code, or seem like they contain such a >>

Re: RFR: 8310828: java.sql java.sql.rowset packages have no `@since` info

2023-06-26 Thread Naoto Sato
On Mon, 26 Jun 2023 13:00:31 GMT, Lance Andersen wrote: > Hi all, > > Please review this trivial change which adds the `@since` javadoc tag to the > various ` java.sql `and `java.sql.rowset` packages. > > Best > Lance LGTM - Marked as reviewed by naoto (Reviewer). PR Review:

Integrated: 8310459: [BACKOUT] 8304450: [vectorapi] Refactor VectorShuffle implementation

2023-06-26 Thread Jatin Bhateja
On Fri, 23 Jun 2023 16:43:32 GMT, Jatin Bhateja wrote: > Backing out shuffle related overhaul done with > [JDK-8304450](https://bugs.openjdk.org/browse/JDK-8304450), we saw > significant performance degradation in VectorAPI JMH micros and some of our > internal benchmarks. Following two

Re: RFR: JDK-8310909: java.io.InvalidObjectException has redundant `@since` tag

2023-06-26 Thread Lance Andersen
On Mon, 26 Jun 2023 18:32:30 GMT, Jonathan Gibbons wrote: > Please review a trivial update to remove a redundant `@since` tag. Marked as reviewed by lancea (Reviewer). - PR Review: https://git.openjdk.org/jdk/pull/14662#pullrequestreview-1499179572

Re: RFR: 8310890: Normalize identifier names

2023-06-26 Thread Pavel Rappo
On Mon, 26 Jun 2023 18:21:07 GMT, Roger Riggs wrote: >> Please review this cleanup PR to normalize names of identifiers which are >> Java variables/fields or tokens in text files. Those names either contain a >> pronoun that is very rarely used in code, or seem like they contain such a >>

Re: RFR: 8310828: java.sql java.sql.rowset packages have no `@since` info

2023-06-26 Thread Iris Clark
On Mon, 26 Jun 2023 13:00:31 GMT, Lance Andersen wrote: > Hi all, > > Please review this trivial change which adds the `@since` javadoc tag to the > various ` java.sql `and `java.sql.rowset` packages. > > Best > Lance Marked as reviewed by iris (Reviewer). - PR Review:

RFR: JDK-8310909: java.io.InvalidObjectException has redundant `@since` tag

2023-06-26 Thread Jonathan Gibbons
Please review a trivial update to remove a redundant `@since` tag. - Commit messages: - JDK-8310909: java.io.InvalidObjectException has redundant `@since` tag Changes: https://git.openjdk.org/jdk/pull/14662/files Webrev: https://webrevs.openjdk.org/?repo=jdk=14662=00 Issue:

Re: RFR: 8310890: Normalize identifier names

2023-06-26 Thread Jens Lidestrom
On Mon, 26 Jun 2023 14:07:03 GMT, Pavel Rappo wrote: > Please review this cleanup PR to normalize names of identifiers which are > Java variables/fields or tokens in text files. Those names either contain a > pronoun that is very rarely used in code, or seem like they contain such a >

RFR: 8310828: java.sql java.sql.rowset packages have no `@since` info

2023-06-26 Thread Lance Andersen
Hi all, Please review this trivial change which adds the `@since` javadoc tag to the various ` java.sql `and `java.sql.rowset` packages. Best Lance - Commit messages: - Remove empty line - Add @since to package-info.java Changes: https://git.openjdk.org/jdk/pull/14652/files

Re: RFR: 8310241: OffsetDateTime compareTo redundant computation

2023-06-26 Thread Naoto Sato
On Thu, 22 Jun 2023 19:03:03 GMT, Roger Riggs wrote: > Remove a redundant comparison in java.time `OffsetDateTime.compareTo()`. > If the `compareInstant` utility method returns 0 (equal), it compares the > `LocalDateTime`. > However, `compareInstant` has already done that comparison; if it

Re: RFR: 8310232: java.time.Clock$TickClock.millis() fails in runtime when tick is 1 microsecond

2023-06-26 Thread Roger Riggs
On Mon, 26 Jun 2023 17:31:29 GMT, Naoto Sato wrote: > Fixing the `/ by zero` exception with tick durations less than a millisecond. Marked as reviewed by rriggs (Reviewer). - PR Review: https://git.openjdk.org/jdk/pull/14657#pullrequestreview-1499140711

Re: RFR: 8310890: Normalize identifier names

2023-06-26 Thread Roger Riggs
On Mon, 26 Jun 2023 14:07:03 GMT, Pavel Rappo wrote: > Please review this cleanup PR to normalize names of identifiers which are > Java variables/fields or tokens in text files. Those names either contain a > pronoun that is very rarely used in code, or seem like they contain such a >

Re: RFR: 8310890: Normalize identifier names

2023-06-26 Thread Naoto Sato
On Mon, 26 Jun 2023 14:07:03 GMT, Pavel Rappo wrote: > Please review this cleanup PR to normalize names of identifiers which are > Java variables/fields or tokens in text files. Those names either contain a > pronoun that is very rarely used in code, or seem like they contain such a >

Re: RFR: 8310232: java.time.Clock$TickClock.millis() fails in runtime when tick is 1 microsecond

2023-06-26 Thread Iris Clark
On Mon, 26 Jun 2023 17:31:29 GMT, Naoto Sato wrote: > Fixing the `/ by zero` exception with tick durations less than a millisecond. Marked as reviewed by iris (Reviewer). - PR Review: https://git.openjdk.org/jdk/pull/14657#pullrequestreview-1499116940

RFR: 8310890: Normalize identifier names

2023-06-26 Thread Pavel Rappo
Please review this cleanup PR to normalize names of identifiers which are Java variables/fields or tokens in text files. Those names either contain a pronoun that is very rarely used in code, or seem like they contain such a pronoun, which, in fact, they don't. Either way, the goal is to

Re: RFR: 8308452: Extend internal Architecture enum with byte order and address size [v7]

2023-06-26 Thread Mandy Chung
On Mon, 26 Jun 2023 14:57:11 GMT, Roger Riggs wrote: >> The internal enum jdk.internal.util.Architecture does not provide >> information about the big or little endianness or the address size (64 or 32 >> bits). The endian-ness and address size are intrinsic to the architecture. >> >> The

RFR: 8310232: java.time.Clock$TickClock.millis() fails in runtime when tick is 1 microsecond

2023-06-26 Thread Naoto Sato
Fixing the `/ by zero` exception with tick durations less than a millisecond. - Commit messages: - refactor return statement - 8310232: java.time.Clock$TickClock.millis() fails in runtime when tick is 1 microsecond Changes: https://git.openjdk.org/jdk/pull/14657/files Webrev:

Re: RFR: 8310459: [BACKOUT] 8304450: [vectorapi] Refactor VectorShuffle implementation

2023-06-26 Thread Sandhya Viswanathan
On Fri, 23 Jun 2023 16:43:32 GMT, Jatin Bhateja wrote: > Backing out shuffle related overhaul done with > [JDK-8304450](https://bugs.openjdk.org/browse/JDK-8304450), we saw > significant performance degradation in VectorAPI JMH micros and some of our > internal benchmarks. Following two

Re: RFR: JDK-8310380: Handle problems in core-related tests on macOS when codesign tool does not work [v3]

2023-06-26 Thread Chris Plummer
On Thu, 22 Jun 2023 11:51:15 GMT, Matthias Baesken wrote: >> Currently, a number of tests fail on macOS because they miss the core file >> (e.g. serviceability/sa/TestJmapCore.java). >> The reason is that configure detects on some setups that codesign does not >> work ("checking if debug mode

Re: RFR: 8301569: list mode of jmod and jimage cannot be used normally in turkish locale [v2]

2023-06-26 Thread Glavo
> When the default Locale is `tr`, the jmod and jimage commands have the > following problems: > > * The jmod command does not correctly recognize the `list` mode typed in > lowercase; > * The jimage command cannot obtain the help information of the `list` mode. Glavo has updated the pull

Re: RFR: 8310901: Convert String::newStringNoRepl with Latin-1 to String::newStringLatin1NoRepl [v3]

2023-06-26 Thread Glavo
> Added a new method `newStringLatin1NoRepl` to the `JavaLangAccess`. > > Reasons: > > * Most use cases of `newStringNoRepl` use `ISO_8859_1` as the charset, > creating a new shortcut can make writing shorter; > * Since all possible values of `byte` are legal Latin-1 characters, >

Re: RFR: 8310837: Use ByteArrayLittleEndian in java.util.zip [v2]

2023-06-26 Thread Glavo
> Using `ByteArrayLittleEndian` is simpler and faster. > > `make test TEST="micro:java.util.zip.ZipFileOpen"`: > > > Benchmark (size) Mode Cnt Score Error Units > - ZipFileOpen.openCloseZipFile 512 avgt 15 39052.832 ± 107.496 ns/op > +

Re: RFR: 8310843: Reimplement ByteArray and ByteArrayLittleEndian with Unsafe [v7]

2023-06-26 Thread Glavo
> `ByteArray` and `ByteArrayLittleEndian` are very useful tool classes that can > be used in many places to performance tuning. > > Currently they are implemented by `VarHandle`, so using them may have some > impact on startup time. > > This PR reimplements them using `Unsafe`, which reduces

Re: [jdk21] RFR: 8309670: java -help output for --module-path / -p is incomplete

2023-06-26 Thread Jonathan Gibbons
On Fri, 23 Jun 2023 11:32:04 GMT, Christian Stein wrote: > Hi all, > > This pull request contains a backport of commit > [4bf78162](https://github.com/openjdk/jdk/commit/4bf78162c52564645af79b8324b69d89102dc024) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. > > The commit

Re: RFR: 8301492: Modernize equals() method of ResourceBundle.CacheKey and Bundles.CacheKey [v5]

2023-06-26 Thread Naoto Sato
On Mon, 26 Jun 2023 09:46:08 GMT, Sergey Tsypanov wrote: >> `ResourceBundle.CacheKey.equals()` and `Bundles.CacheKey.equals()` are quire >> outdated. This simple clean-up modernizes them. > > Sergey Tsypanov has updated the pull request incrementally with one > additional commit since the last

Re: RFR: 8308899: Introduce Classfile context and improve Classfile options [v25]

2023-06-26 Thread Adam Sotona
On Mon, 26 Jun 2023 14:56:34 GMT, Chen Liang wrote: > I ran `make docs-classfile-api-javadoc` Thanks for pointing this out. The makefile patches accidentally fell into this PR. > One thing of note is that the JDK itself has a `@sealedGraph` taglet to > render the sealed class hierarchy of

Re: RFR: 8308899: Introduce Classfile context and improve Classfile options [v26]

2023-06-26 Thread Adam Sotona
> Classfile context object and multi-state options have been discussed at > https://mail.openjdk.org/pipermail/classfile-api-dev/2023-May/000321.html > This patch implements the proposed changes in Classfile API and fixes all > affected code across JDK sources and tests. > > Please review. > >

Re: RFR: 8308899: Introduce Classfile context and improve Classfile options [v25]

2023-06-26 Thread Adam Sotona
On Mon, 26 Jun 2023 15:40:39 GMT, Maurizio Cimadamore wrote: >> The API changes look great. I like the instance usages of ClassFile, and how >> CF is now used in a centralized fashion to double down as a cache/option >> store (and entry point for transformation). Seems like a step in a good

Integrated: 8310682: No package-info (and @since) for package jdk.nio.mapmode

2023-06-26 Thread Brian Burkhalter
On Fri, 23 Jun 2023 16:30:15 GMT, Brian Burkhalter wrote: > Add `package-info.java` for package `jdk.nio.mapmode`. This pull request has now been integrated. Changeset: d32eb015 Author:Brian Burkhalter URL: https://git.openjdk.org/jdk/commit/d32eb015f056b09fa9ae99a2a84b7056cd3d9259

Re: RFR: 8310901: Convert String::newStringNoRepl with Latin-1 to String::newStringLatin1NoRepl [v2]

2023-06-26 Thread Glavo
On Mon, 26 Jun 2023 16:02:57 GMT, Chen Liang wrote: > This is just a copycat of the original newStringNoRepl, which should be > fixed; newStringUTF8NoRepl has no such issue. Unfortunately, the behavior of `newStringUTF8NoRepl` is not the same as that of `newStringNoRepl`, as it actually

Re: RFR: 8310901: Convert String::newStringNoRepl with Latin-1 to String::newStringLatin1NoRepl [v2]

2023-06-26 Thread Glavo
> Added a new method `newStringLatin1NoRepl` to the `JavaLangAccess`. > > Reasons: > > * Most use cases of `newStringNoRepl` use `ISO_8859_1` as the charset, > creating a new shortcut can make writing shorter; > * Since all possible values of `byte` are legal Latin-1 characters, >

Re: RFR: 8310901: Convert String::newStringNoRepl with Latin-1 to String::newStringLatin1NoRepl

2023-06-26 Thread Chen Liang
On Mon, 26 Jun 2023 15:25:08 GMT, Glavo wrote: > Added a new method `newStringLatin1NoRepl` to the `JavaLangAccess`. > > Reasons: > > * Most use cases of `newStringNoRepl` use `ISO_8859_1` as the charset, > creating a new shortcut can make writing shorter; > * Since all possible values of

Re: RFR: 8310901: Convert String::newStringNoRepl with Latin-1 to String::newStringLatin1NoRepl

2023-06-26 Thread Chen Liang
On Mon, 26 Jun 2023 15:25:08 GMT, Glavo wrote: > Added a new method `newStringLatin1NoRepl` to the `JavaLangAccess`. > > Reasons: > > * Most use cases of `newStringNoRepl` use `ISO_8859_1` as the charset, > creating a new shortcut can make writing shorter; > * Since all possible values of

RFR: 8310901: Convert String::newStringNoRepl with Latin-1 to String::newStringLatin1NoRepl

2023-06-26 Thread Glavo
Added a new method `newStringLatin1NoRepl` to the `JavaLangAccess`. Reasons: * Most use cases of `newStringNoRepl` use `ISO_8859_1` as the charset, creating a new shortcut can make writing shorter; * Since all possible values of `byte` are legal Latin-1 characters, `newStringLatin1NoRepl`

Re: RFR: 8308899: Introduce Classfile context and improve Classfile options [v25]

2023-06-26 Thread Chen Liang
On Mon, 26 Jun 2023 15:40:39 GMT, Maurizio Cimadamore wrote: > Also, another observation: the number of updates snippets in javadoc seems > rather low for something that touches the main entry point by which client > interacts with classfiles. This seems a sign of perhaps not having many end

Re: RFR: JDK-8310502 : Optimization for j.l.Long.fastUUID() [v25]

2023-06-26 Thread Roger Riggs
On Mon, 26 Jun 2023 09:57:31 GMT, 温绍锦 wrote: >> By optimizing the implementation of java.lang.Long#fastUUID, the performance >> of the java.util.UUID#toString method can be significantly improved. >> >> The following are the test results of JMH: >> >> Benchmark Mode Cnt

Re: RFR: 8308899: Introduce Classfile context and improve Classfile options [v25]

2023-06-26 Thread Maurizio Cimadamore
On Mon, 26 Jun 2023 13:33:38 GMT, Adam Sotona wrote: >> Classfile context object and multi-state options have been discussed at >> https://mail.openjdk.org/pipermail/classfile-api-dev/2023-May/000321.html >> This patch implements the proposed changes in Classfile API and fixes all >> affected

Re: RFR: 8308899: Introduce Classfile context and improve Classfile options [v25]

2023-06-26 Thread Maurizio Cimadamore
On Mon, 26 Jun 2023 15:39:15 GMT, Maurizio Cimadamore wrote: > The API changes look great. I like the instance usages of ClassFile, and how > CF is now used in a centralized fashion to double down as a cache/option > store (and entry point for transformation). Seems like a step in a good >

Re: RFR: JDK-8310502 : Optimization for j.l.Long.fastUUID() [v25]

2023-06-26 Thread Chen Liang
On Mon, 26 Jun 2023 09:57:31 GMT, 温绍锦 wrote: >> By optimizing the implementation of java.lang.Long#fastUUID, the performance >> of the java.util.UUID#toString method can be significantly improved. >> >> The following are the test results of JMH: >> >> Benchmark Mode Cnt

Re: RFR: JDK-8310502 : Optimization for j.l.Long.fastUUID() [v22]

2023-06-26 Thread Glavo
On Mon, 26 Jun 2023 14:40:08 GMT, Roger Riggs wrote: > The implementation should do its best whether or not CompactStrings is true > or false. (Until the time it is deprecated and remove). Throwing an internal > error is not an option. I understand that we must provide a working

Re: RFR: 8308899: Introduce Classfile.Context and improve Classfile.Option(s) [v25]

2023-06-26 Thread Chen Liang
On Mon, 26 Jun 2023 13:33:38 GMT, Adam Sotona wrote: >> Classfile context object and multi-state options have been discussed at >> https://mail.openjdk.org/pipermail/classfile-api-dev/2023-May/000321.html >> This patch implements the proposed changes in Classfile API and fixes all >> affected

Re: RFR: 8308452: Extend internal Architecture enum with byte order and address size [v6]

2023-06-26 Thread Roger Riggs
On Thu, 22 Jun 2023 19:24:37 GMT, Roger Riggs wrote: >> The internal enum jdk.internal.util.Architecture does not provide >> information about the big or little endianness or the address size (64 or 32 >> bits). The endian-ness and address size are intrinsic to the architecture. >> >> The

Re: RFR: 8308452: Extend internal Architecture enum with byte order and address size [v7]

2023-06-26 Thread Roger Riggs
> The internal enum jdk.internal.util.Architecture does not provide information > about the big or little endianness or the address size (64 or 32 bits). The > endian-ness and address size are intrinsic to the architecture. > > The values of the enum are extended to separately identify the big

  1   2   >