Integrated: Merge jdk17

2021-08-02 Thread Jesper Wilhelmsson
On Mon, 2 Aug 2021 23:30:55 GMT, Jesper Wilhelmsson wrote: > Forwardport JDK 17 -> JDK 18 This pull request has now been integrated. Changeset: c8add223 Author:Jesper Wilhelmsson URL: https://git.openjdk.java.net/jdk/commit/c8add223a10030e40ccef42e081fd0d8f00e0593 Stats: 534

Re: RFR: 8271225: Add floorDivExact() method to java.lang.[Strict]Math [v2]

2021-08-02 Thread Brian Burkhalter
> Add methods `floorDivExact(int,int)` and `floorDivExact(long,long)` to > `java.lang.Math` and `java.lang.StrictMath`. Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision: 8271225: Some verbiage updates - Changes: -

Re: RFR: Merge jdk17 [v2]

2021-08-02 Thread Mikael Vidstedt
On Mon, 2 Aug 2021 23:53:59 GMT, Jesper Wilhelmsson wrote: >> Forwardport JDK 17 -> JDK 18 > > Jesper Wilhelmsson has updated the pull request incrementally with one > additional commit since the last revision: > > Revert "8271150: Remove EA from JDK 17 version string starting with Initial

Re: RFR: Merge jdk17 [v2]

2021-08-02 Thread Jesper Wilhelmsson
> Forwardport JDK 17 -> JDK 18 Jesper Wilhelmsson has updated the pull request incrementally with one additional commit since the last revision: Revert "8271150: Remove EA from JDK 17 version string starting with Initial RC promotion on Aug 5, 2021(B34)" This reverts commit

RFR: Merge jdk17

2021-08-02 Thread Jesper Wilhelmsson
Forwardport JDK 17 -> JDK 18 - Commit messages: - Merge - 8067223: [TESTBUG] Rename Whitebox API package - 8271150: Remove EA from JDK 17 version string starting with Initial RC promotion on Aug 5, 2021(B34) The webrevs contain the adjustments done while merging with regards to

Re: RFR: JDK-8271344: Windows product version issue

2021-08-02 Thread Alexander Matveev
On Mon, 2 Aug 2021 13:45:17 GMT, Andy Herrick wrote: > JDK-8271344: Windows product version issue Marked as reviewed by almatvee (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/4958

Integrated: 8271624: Avoid unnecessary ThreadGroup.checkAccess calls when creating Threads

2021-08-02 Thread Claes Redestad
On Mon, 2 Aug 2021 18:03:42 GMT, Claes Redestad wrote: > Trivially avoid some redundant calls when creating threads. > (ThreadGroup.checkAccess is final, and all it does is call > security.checkAccess(g) if there's a SM installed) This pull request has now been integrated. Changeset:

Re: RFR: 8271624: Avoid unnecessary ThreadGroup.checkAccess calls when creating Threads

2021-08-02 Thread Claes Redestad
On Mon, 2 Aug 2021 19:40:12 GMT, Roger Riggs wrote: >> Trivially avoid some redundant calls when creating threads. >> (ThreadGroup.checkAccess is final, and all it does is call >> security.checkAccess(g) if there's a SM installed) > > LGTM Thanks again @RogerRiggs! - PR:

Re: RFR: 8271601: Math.floorMod(int, int) and Math.floorMod(long, long) differ in their logic

2021-08-02 Thread Brian Burkhalter
On Mon, 2 Aug 2021 19:59:57 GMT, Raffaello Giulietti wrote: > Hello, > > please review this tiny change in the implementation of > j.l.Math.floorMod(int, int). > > While the results are unaffected, all of > floorDiv(int, int) > floorDiv(long, long) > floorMod(long, long) > use x

RFR: 8271599: Javadoc of floorDiv() and floorMod() families is inaccurate in some places

2021-08-02 Thread Raffaello Giulietti
Hello, please review the changes in documentation of floorDiv() and floorMod() in all their variants. Some are clarifications, some are corrections. Here's an example of a confusing formulation in the current doc > "the / operator returns the integer closest to zero" Literally, the integer

Integrated: 8271627: Use local field access in favor of Class.getClassLoader0

2021-08-02 Thread Claes Redestad
On Mon, 2 Aug 2021 18:27:00 GMT, Claes Redestad wrote: > Trivial startup hack/cleanup to use the `classLoader` field directly rather > than the `getClassLoader0` accessor. > > Before aa12c8fbf5b020d168cf29412643bf15514b0439 there was no `classLoader` > field and `getClassLoader0` was a

Re: [jdk17] RFR: 8067223: [TESTBUG] Rename Whitebox API package [v2]

2021-08-02 Thread David Holmes
On 3/08/2021 2:25 am, Igor Ignatyev wrote: On Sat, 31 Jul 2021 20:42:10 GMT, Igor Ignatyev wrote: Hi all, could you please review this big tedious and trivial(-ish) patch which moves `sun.hotspot.WhiteBox` and related classes to `jdk.test.whitebox` package? the majority of the patch is the

[jdk17] Integrated: 8067223: [TESTBUG] Rename Whitebox API package

2021-08-02 Thread Igor Ignatyev
On Wed, 28 Jul 2021 17:13:49 GMT, Igor Ignatyev wrote: > Hi all, > > could you please review this big tedious and trivial(-ish) patch which moves > `sun.hotspot.WhiteBox` and related classes to `jdk.test.whitebox` package? > > the majority of the patch is the following substitutions: > -

Re: RFR: 8271627: Use local field access in favor of Class.getClassLoader0

2021-08-02 Thread Claes Redestad
On Mon, 2 Aug 2021 19:44:22 GMT, Mandy Chung wrote: > Do you see any startup improvement by this change? Very tiny, ~90 calls on bootstrap. > This looks okay. Thanks! > I assume you concern about the early startup when this method is running in > interpreted mode. Do you see any startup

RFR: 8271601: Math.floorMod(int, int) and Math.floorMod(long, long) differ in their logic

2021-08-02 Thread Raffaello Giulietti
Hello, please review this tiny change in the implementation of j.l.Math.floorMod(int, int). While the results are unaffected, all of floorDiv(int, int) floorDiv(long, long) floorMod(long, long) use x ^ y in the tests to correct the result if needed. Not only is the proposed change

Re: RFR: 8271627: Use local field access in favor of Class.getClassLoader0

2021-08-02 Thread Mandy Chung
On Mon, 2 Aug 2021 18:27:00 GMT, Claes Redestad wrote: > Trivial startup hack/cleanup to use the `classLoader` field directly rather > than the `getClassLoader0` accessor. > > Before aa12c8fbf5b020d168cf29412643bf15514b0439 there was no `classLoader` > field and `getClassLoader0` was a

Re: RFR: 8271624: Avoid unnecessary ThreadGroup.checkAccess calls when creating Threads

2021-08-02 Thread Roger Riggs
On Mon, 2 Aug 2021 18:03:42 GMT, Claes Redestad wrote: > Trivially avoid some redundant calls when creating threads. > (ThreadGroup.checkAccess is final, and all it does is call > security.checkAccess(g) if there's a SM installed) LGTM - Marked as reviewed by rriggs (Reviewer).

Withdrawn: 8268250: Class.arrayType() for a 255-d array throws undocumented IllegalArgumentException

2021-08-02 Thread duke
On Mon, 7 Jun 2021 00:09:33 GMT, Joe Darcy wrote: > Make explicit illegal argument cases of Class.arrayType. > > Please also review the corresponding CSR: > https://bugs.openjdk.java.net/browse/JDK-8268300 This pull request has been closed without being integrated. - PR:

RFR: 8271627: Use local field access in favor of Class.getClassLoader0

2021-08-02 Thread Claes Redestad
Trivial startup hack/cleanup to use the `classLoader` field directly rather than the `getClassLoader0` accessor. Before aa12c8fbf5b020d168cf29412643bf15514b0439 there was no `classLoader` field and `getClassLoader0` was a native method that retrieved the `ClassLoader` by calling into the

RFR: 8271624: Avoid unnecessary ThreadGroup.checkAccess calls when creating Threads

2021-08-02 Thread Claes Redestad
Trivially avoid some redundant calls when creating threads. (ThreadGroup.checkAccess is final, and all it does is call security.checkAccess(g) if there's a SM installed) - Commit messages: - Merge branch 'master' into thread_access - Avoid calling ThreadGroup.checkAccess when no

Re: [jdk17] RFR: 8067223: [TESTBUG] Rename Whitebox API package [v2]

2021-08-02 Thread Igor Ignatyev
On Mon, 2 Aug 2021 15:56:39 GMT, Vladimir Kozlov wrote: > I agree with these revised changes for JDK 17. Thanks for your review, Vladimir. I'll rerun my testing before integrating (just for good luck). -- Igor - PR: https://git.openjdk.java.net/jdk17/pull/290

Re: [jdk17] RFR: 8067223: [TESTBUG] Rename Whitebox API package [v2]

2021-08-02 Thread Igor Ignatyev
On Sat, 31 Jul 2021 20:42:10 GMT, Igor Ignatyev wrote: >> Hi all, >> >> could you please review this big tedious and trivial(-ish) patch which moves >> `sun.hotspot.WhiteBox` and related classes to `jdk.test.whitebox` package? >> >> the majority of the patch is the following substitutions: >>

Re: [jdk17] RFR: 8067223: [TESTBUG] Rename Whitebox API package [v3]

2021-08-02 Thread Igor Ignatyev
> Hi all, > > could you please review this big tedious and trivial(-ish) patch which moves > `sun.hotspot.WhiteBox` and related classes to `jdk.test.whitebox` package? > > the majority of the patch is the following substitutions: > - `s~sun/hotspot/WhiteBox~jdk/test/whitebox/WhiteBox~g` > -

Re: RFR: 4890732: GZIPOutputStream doesn't support optional GZIP fields [v11]

2021-08-02 Thread Lin Zang
> 4890732: GZIPOutputStream doesn't support optional GZIP fields Lin Zang has updated the pull request incrementally with one additional commit since the last revision: delete trailing spaces - Changes: - all: https://git.openjdk.java.net/jdk/pull/3072/files - new:

Re: RFR: 4890732: GZIPOutputStream doesn't support optional GZIP fields [v10]

2021-08-02 Thread Lin Zang
> 4890732: GZIPOutputStream doesn't support optional GZIP fields Lin Zang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 15 commits: - refine code - Merge branch 'master' into gzip-field - change since version to 18 - Merge

Re: [jdk17] RFR: 8067223: [TESTBUG] Rename Whitebox API package [v2]

2021-08-02 Thread Vladimir Kozlov
On Sat, 31 Jul 2021 20:42:10 GMT, Igor Ignatyev wrote: >> Hi all, >> >> could you please review this big tedious and trivial(-ish) patch which moves >> `sun.hotspot.WhiteBox` and related classes to `jdk.test.whitebox` package? >> >> the majority of the patch is the following substitutions: >>

Re: [Internet]Re: RFR: 4890732: GZIPOutputStream doesn't support optional GZIP fields [v9]

2021-08-02 Thread 臧琳
Dear Lance, OK, Thanks for your reviewing and effort! BRs, Lin From: Lance Andersen Date: Monday, August 2, 2021 at 11:43 PM To: Lin Zang Cc: "core-libs-dev@openjdk.java.net" Subject: [Internet]Re: RFR: 4890732: GZIPOutputStream doesn't support optional GZIP fields [v9] On Aug 2, 2021, at

Re: RFR: JDK-8256844: Make NMT late-initializable [v2]

2021-08-02 Thread Thomas Stuefe
On Mon, 2 Aug 2021 14:38:23 GMT, Coleen Phillimore wrote: > This looks good. Thanks for fixing the mysterious (to me) cast. Thank you, Coleen! - PR: https://git.openjdk.java.net/jdk/pull/4874

Integrated: 8251329: (zipfs) Files.walkFileTree walks infinitely if zip has dir named "." inside

2021-08-02 Thread Lance Andersen
On Sun, 25 Jul 2021 21:56:10 GMT, Lance Andersen wrote: > Hi, > > As discussed in the > https://mail.openjdk.java.net/pipermail/core-libs-dev/2021-July/079621.html > thread, this is the revised patch to address the use of '.' and '..' within > Zip FS > > Zip FS needs to use "." and ".." as

Re: RFR: 4890732: GZIPOutputStream doesn't support optional GZIP fields [v9]

2021-08-02 Thread Lin Zang
On Mon, 26 Jul 2021 20:47:59 GMT, Lance Andersen wrote: >> Lin Zang has updated the pull request with a new target base due to a merge >> or a rebase. The pull request now contains 13 commits: >> >> - change since version to 18 >> - Merge branch 'master' into gzip-field >> - Merge branch

Re: RFR: 4890732: GZIPOutputStream doesn't support optional GZIP fields [v9]

2021-08-02 Thread Lance Andersen
On Aug 2, 2021, at 10:39 AM, Lin Zang mailto:lz...@openjdk.java.net>> wrote: On Tue, 27 Jul 2021 15:52:23 GMT, Alan Bateman mailto:al...@openjdk.org>> wrote: Thank you for reviving the discussion. I have not gone through the latest update in detail but there are some changes that are

Integrated: 8271611: Use SecurityConstants.ACCESS_PERMISSION in MethodHandles

2021-08-02 Thread Claes Redestad
On Mon, 2 Aug 2021 13:27:15 GMT, Claes Redestad wrote: > Reusing SecurityConstants.ACCESS_PERMISSION (which was moved from > AccessibleObject by JDK-8202419) avoids initialization of ReflectPermission > when no SecurityManager is installed This pull request has now been integrated.

Re: RFR: 8271611: Use SecurityConstants.ACCESS_PERMISSION in MethodHandles

2021-08-02 Thread Claes Redestad
On Mon, 2 Aug 2021 14:30:08 GMT, Roger Riggs wrote: >> Reusing SecurityConstants.ACCESS_PERMISSION (which was moved from >> AccessibleObject by JDK-8202419) avoids initialization of ReflectPermission >> when no SecurityManager is installed > > LGTM Thanks for the review @RogerRiggs!

Re: RFR: JDK-8271344: Windows product version issue

2021-08-02 Thread Alexey Semenyuk
On Mon, 2 Aug 2021 13:45:17 GMT, Andy Herrick wrote: > JDK-8271344: Windows product version issue Marked as reviewed by asemenyuk (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/4958

Re: RFR: 4890732: GZIPOutputStream doesn't support optional GZIP fields [v9]

2021-08-02 Thread Lin Zang
On Mon, 26 Jul 2021 20:55:00 GMT, Lance Andersen wrote: >> Lin Zang has updated the pull request with a new target base due to a merge >> or a rebase. The pull request now contains 13 commits: >> >> - change since version to 18 >> - Merge branch 'master' into gzip-field >> - Merge branch

Re: RFR: 4890732: GZIPOutputStream doesn't support optional GZIP fields [v9]

2021-08-02 Thread Lin Zang
On Tue, 27 Jul 2021 15:52:23 GMT, Alan Bateman wrote: >> Thank you for reviving the discussion. >> >> I have not gone through the latest update in detail but there are some >> changes that are needed. Before moving forward with the CSR, I would like to >> give time for additional feedback on

Re: RFR: JDK-8256844: Make NMT late-initializable [v2]

2021-08-02 Thread Coleen Phillimore
On Sun, 1 Aug 2021 08:17:08 GMT, Thomas Stuefe wrote: >> Short: this patch makes NMT available in custom-launcher scenarios and >> during gtests. It simplifies NMT initialization. It adds a lot of >> NMT-specific testing, cleans them up and makes them sideeffect-free. >> >> - >> >>

Re: RFR: 8271611: Use SecurityConstants.ACCESS_PERMISSION in MethodHandles

2021-08-02 Thread Roger Riggs
On Mon, 2 Aug 2021 13:27:15 GMT, Claes Redestad wrote: > Reusing SecurityConstants.ACCESS_PERMISSION (which was moved from > AccessibleObject by JDK-8202419) avoids initialization of ReflectPermission > when no SecurityManager is installed LGTM - Marked as reviewed by rriggs

Re: RFR: JDK-8256844: Make NMT late-initializable [v2]

2021-08-02 Thread Coleen Phillimore
On Fri, 30 Jul 2021 09:32:22 GMT, Thomas Stuefe wrote: >> [Not a review, just a drive-by comment.] This is a normal and idiomatic >> overload on the const-ness of `this`. > > To expand on Kim's answer. This is a way to solve const/nonconst problems > like

Re: RFR: JDK-8256844: Make NMT late-initializable [v2]

2021-08-02 Thread Coleen Phillimore
On Fri, 30 Jul 2021 09:44:57 GMT, Thomas Stuefe wrote: > Is that a real-life problem? Are there cases where the launcher would want to > live on if the JVM failed to load? There are a lot of other reasons why the launcher couldn't live on if the JVM fails to load. This was only one of them.

Re: [External] : Re: jpackage MacOS Notarization

2021-08-02 Thread Daniel Peintner
Hi Andy, > sorry - code looks for certificate key starting with: "Developer ID > Application: " + in order to not > have to put full user name in. I missed that that with null user name that > causes it to look for anything starting with "Developer ID Application: " > (same thing with

RFR: JDK-8271344: Windows product version issue

2021-08-02 Thread Andy Herrick
JDK-8271344: Windows product version issue - Commit messages: - JDK-8271344: Windows product version issue Changes: https://git.openjdk.java.net/jdk/pull/4958/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk=4958=00 Issue:

RFR: 8271611: Use SecurityConstants.ACCESS_PERMISSION in MethodHandles

2021-08-02 Thread Claes Redestad
Reusing SecurityConstants.ACCESS_PERMISSION (which was moved from AccessibleObject by JDK-8202419) avoids initialization of ReflectPermission when no SecurityManager is installed - Commit messages: - Use SecurityConstants.ACCESS_PERMISSION in MethodHandles Changes:

Integrated: 8263561: Re-examine uses of LinkedList

2021-08-02 Thread Сергей Цыпанов
On Wed, 2 Jun 2021 12:10:46 GMT, Сергей Цыпанов wrote: > After I've renamed remove branch GitHub for some reason has closed original > https://github.com/openjdk/jdk/pull/2744, so I've decided to recreate it. This pull request has now been integrated. Changeset: 249d6418 Author:Sergey

Integrated: 8268113: Re-use Long.hashCode() where possible

2021-08-02 Thread Сергей Цыпанов
On Wed, 2 Jun 2021 14:10:38 GMT, Сергей Цыпанов wrote: > There is a few JDK classes duplicating the contents of Long.hashCode() for > hash code calculation. They should explicitly delegate to Long.hashCode(). This pull request has now been integrated. Changeset: 6a3f8343 Author:Sergey

Integrated: 8270160: Remove redundant bounds check from AbstractStringBuilder.charAt()

2021-08-02 Thread Сергей Цыпанов
On Fri, 9 Jul 2021 11:50:38 GMT, Сергей Цыпанов wrote: > `AbstractStringBuilder.charAt(int)` does bounds check before calling > `charAt()` (for non-latin Strings): > > @Override > public char charAt(int index) { > checkIndex(index, count); > if (isLatin1()) { > return

Integrated: 8266972: Use String.concat() in j.l.Class where invokedynamic-based String concatenation is not available

2021-08-02 Thread Сергей Цыпанов
On Thu, 22 Apr 2021 14:07:20 GMT, Сергей Цыпанов wrote: > Hello, from discussion in https://github.com/openjdk/jdk/pull/3464 I've found > out, that in a few of JDK core classes, e.g. in `j.l.Class` expressions like > `baseName.replace('.', '/') + '/' + name` are not compiled into >

Integrated: 8269665: Clean-up toString() methods of some primitive wrappers

2021-08-02 Thread Сергей Цыпанов
On Wed, 30 Jun 2021 08:40:21 GMT, Сергей Цыпанов wrote: > As of JDK 17 some of primitive wrappers, e.g. `Long`, `Integer`, `Double` and > `Float` in their implementations of `Object.toString()` delegate to own > utility `toString(primitive)` methods. > > Unlike those, `Boolean`, `Byte`,

Re: RFR: 8263561: Re-examine uses of LinkedList [v6]

2021-08-02 Thread Сергей Цыпанов
> After I've renamed remove branch GitHub for some reason has closed original > https://github.com/openjdk/jdk/pull/2744, so I've decided to recreate it. Сергей Цыпанов has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 11 commits: -

Re: RFR: 8269665: Clean-up toString() methods of some primitive wrappers [v3]

2021-08-02 Thread Claes Redestad
On Mon, 2 Aug 2021 12:29:00 GMT, Сергей Цыпанов wrote: >> As of JDK 17 some of primitive wrappers, e.g. `Long`, `Integer`, `Double` >> and `Float` in their implementations of `Object.toString()` delegate to own >> utility `toString(primitive)` methods. >> >> Unlike those, `Boolean`, `Byte`,

Re: RFR: 8269665: Clean-up toString() methods of some primitive wrappers [v2]

2021-08-02 Thread Сергей Цыпанов
On Mon, 2 Aug 2021 11:09:30 GMT, Claes Redestad wrote: >> Сергей Цыпанов has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - 8269665: Update copy-right year >> - 8269665: Reuse String.valueOf(boolean) > >

Re: RFR: 8269665: Clean-up toString() methods of some primitive wrappers [v3]

2021-08-02 Thread Сергей Цыпанов
> As of JDK 17 some of primitive wrappers, e.g. `Long`, `Integer`, `Double` and > `Float` in their implementations of `Object.toString()` delegate to own > utility `toString(primitive)` methods. > > Unlike those, `Boolean`, `Byte`, `Character` and `Short` just duplicate the > contents of

Re: RFR: JDK-8266490: Extend the OSContainer API to support the pids controller of cgroups [v6]

2021-08-02 Thread Severin Gehwolf
On Tue, 27 Jul 2021 10:25:22 GMT, Matthias Baesken wrote: > What do you think about accepting, when setting -1/unlimited, a high limit > number like 20.000+ as well (and and a comment that on some setups unlimited > means just "high number" but not unlimited? This seems most reasonable. I'd

Re: RFR: 8270160: Remove redundant bounds check from AbstractStringBuilder.charAt() [v5]

2021-08-02 Thread Claes Redestad
On Mon, 2 Aug 2021 11:34:00 GMT, Сергей Цыпанов wrote: >> `AbstractStringBuilder.charAt(int)` does bounds check before calling >> `charAt()` (for non-latin Strings): >> >> @Override >> public char charAt(int index) { >> checkIndex(index, count); >> if (isLatin1()) { >> return

Re: RFR: 8263561: Re-examine uses of LinkedList [v5]

2021-08-02 Thread Claes Redestad
On Mon, 26 Jul 2021 08:27:20 GMT, Сергей Цыпанов wrote: >> After I've renamed remove branch GitHub for some reason has closed original >> https://github.com/openjdk/jdk/pull/2744, so I've decided to recreate it. > > Сергей Цыпанов has updated the pull request with a new target base due to a >

Re: RFR: 8270160: Remove redundant bounds check from AbstractStringBuilder.charAt() [v4]

2021-08-02 Thread Сергей Цыпанов
On Mon, 2 Aug 2021 10:52:26 GMT, Claes Redestad wrote: >> Сергей Цыпанов has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains three commits: >> >> - Merge branch 'master' into 8270160 >> - Merge branch 'master' into 8270160 >>

Re: RFR: 8270160: Remove redundant bounds check from AbstractStringBuilder.charAt() [v5]

2021-08-02 Thread Сергей Цыпанов
> `AbstractStringBuilder.charAt(int)` does bounds check before calling > `charAt()` (for non-latin Strings): > > @Override > public char charAt(int index) { > checkIndex(index, count); > if (isLatin1()) { > return (char)(value[index] & 0xff); > } > return

Re: RFR: 8268113: Re-use Long.hashCode() where possible [v11]

2021-08-02 Thread Claes Redestad
On Mon, 26 Jul 2021 08:27:14 GMT, Сергей Цыпанов wrote: >> There is a few JDK classes duplicating the contents of Long.hashCode() for >> hash code calculation. They should explicitly delegate to Long.hashCode(). > > Сергей Цыпанов has updated the pull request with a new target base due to a >

Re: RFR: 8269665: Clean-up toString() methods of some primitive wrappers [v2]

2021-08-02 Thread Claes Redestad
On Sun, 4 Jul 2021 21:35:31 GMT, Сергей Цыпанов wrote: >> As of JDK 17 some of primitive wrappers, e.g. `Long`, `Integer`, `Double` >> and `Float` in their implementations of `Object.toString()` delegate to own >> utility `toString(primitive)` methods. >> >> Unlike those, `Boolean`, `Byte`,

Re: RFR: 8270160: Remove redundant bounds check from AbstractStringBuilder.charAt() [v4]

2021-08-02 Thread Claes Redestad
On Mon, 26 Jul 2021 08:22:28 GMT, Сергей Цыпанов wrote: >> `AbstractStringBuilder.charAt(int)` does bounds check before calling >> `charAt()` (for non-latin Strings): >> >> @Override >> public char charAt(int index) { >> checkIndex(index, count); >> if (isLatin1()) { >> return

Re: RFR: 8270160: Remove redundant bounds check from AbstractStringBuilder.charAt() [v3]

2021-08-02 Thread Claes Redestad
On Thu, 15 Jul 2021 11:56:31 GMT, Сергей Цыпанов wrote: >> `AbstractStringBuilder.charAt(int)` does bounds check before calling >> `charAt()` (for non-latin Strings): >> >> @Override >> public char charAt(int index) { >> checkIndex(index, count); >> if (isLatin1()) { >> return

Re: RFR: 8266972: Use String.concat() in j.l.Class where invokedynamic-based String concatenation is not available [v7]

2021-08-02 Thread Claes Redestad
On Mon, 26 Jul 2021 08:31:23 GMT, Сергей Цыпанов wrote: >> Hello, from discussion in https://github.com/openjdk/jdk/pull/3464 I've >> found out, that in a few of JDK core classes, e.g. in `j.l.Class` >> expressions like `baseName.replace('.', '/') + '/' + name` are not compiled >> into

Re: RFR: 8269665: Clean-up toString() methods of some primitive wrappers [v2]

2021-08-02 Thread Сергей Цыпанов
On Sun, 4 Jul 2021 21:35:31 GMT, Сергей Цыпанов wrote: >> As of JDK 17 some of primitive wrappers, e.g. `Long`, `Integer`, `Double` >> and `Float` in their implementations of `Object.toString()` delegate to own >> utility `toString(primitive)` methods. >> >> Unlike those, `Boolean`, `Byte`,