Re: RFR: 8190753: (zipfs): Accessing a large entry (> 2^31 bytes) leads to a negative initial size for ByteArrayOutputStream

2021-06-28 Thread Jaikiran Pai
Hello Alan, On 28/06/21 1:00 pm, Alan Bateman wrote: I didn't study the test too closely but just to mention that tests with zip entries > 2GB can be problematic to test. The test will probably need the @requires tag to limit it to 64-bit systems and maybe some minimum memory size. It may

[jdk17] RFR: JDK-8268236 The documentation of the String.regionMatches method contains error

2021-06-28 Thread Jim Laskey
The documentation of the String.regionMatches method contains this fragment: this.substring(toffset, len).codePoints(), but String.substring method takes index, not the length, as the second argument. - Commit messages: - Update javadoc Changes:

Re: RFR: 8190753: (zipfs): Accessing a large entry (> 2^31 bytes) leads to a negative initial size for ByteArrayOutputStream [v2]

2021-06-28 Thread Jaikiran Pai
> Can I please get a review for this proposed fix for the issue reported in > https://bugs.openjdk.java.net/browse/JDK-8190753? > > The commit here checks for the size of the zip entry before trying to create > a `ByteArrayOutputStream` for that entry's content. A new jtreg test has been >

Re: [jdk17] RFR: JDK-8268236 The documentation of the String.regionMatches method contains error

2021-06-28 Thread Roger Riggs
On Mon, 28 Jun 2021 12:28:06 GMT, Jim Laskey wrote: > The documentation of the String.regionMatches method contains this fragment: > this.substring(toffset, len).codePoints(), but String.substring method takes > index, not the length, as the second argument. Marked as reviewed by rriggs

[jdk17] RFR: 8269486: CallerAccessTest fails for non server variant

2021-06-28 Thread Christoph Göttschkes
Hi, please review this small fix. The test case uses a custom launcher and before launching the JVM, it adds the "lib" and "lib/server" directories to the environment variable which controls the native library search path. For non server variants, the second directory is not called

Re: RFR: 8269384: Determine native byte order for StringUTF16 via ByteOrder

2021-06-28 Thread Andrew Dinn
On Fri, 25 Jun 2021 13:40:54 GMT, Yi Yang wrote: > Prefer using ByteOrder to compute byte order for StringUTF16 to determining > byte order by native method StringUTF16.isBigEndian. Hi Yi Yang, This is more complex than it seems. The general policy is not to change boot order if at all

Re: [jdk17] RFR: 8269403: Fix jpackage tests to gracefully handle jpackage app launcher crashes

2021-06-28 Thread Andy Herrick
On Fri, 25 Jun 2021 22:41:10 GMT, Alexey Semenyuk wrote: > jpackage app launcher randomly crashes JVM at termination in EMS enabled JDK > builds. > Until the root cause of the issue is understood and fixed let's add a > workaround to jpackage tests to run test app few more times if the first

Re: [jdk17] RFR: 8269409: Post JEP 411 refactoring: core-libs with maximum covering > 10K [v2]

2021-06-28 Thread Daniel Fuchs
On Sat, 26 Jun 2021 23:55:46 GMT, Weijun Wang wrote: >> src/jdk.attach/share/classes/sun/tools/attach/HotSpotVirtualMachine.java >> line 53: >> >>> 51: private static final long CURRENT_PID = >>> AccessController.doPrivileged( >>> 52: (PrivilegedAction) >>>

Re: [jdk17] RFR: 8269409: Post JEP 411 refactoring: core-libs with maximum covering > 10K [v2]

2021-06-28 Thread Weijun Wang
On Mon, 28 Jun 2021 12:20:38 GMT, Daniel Fuchs wrote: >> This cast is only to tell the compiler which overloaded method to call, and >> I don't think there will be a real cast at runtime. It might look a little >> ugly but extracting it into a variable declaration/definition plus a new >>

Re: [jdk17] RFR: 8269409: Post JEP 411 refactoring: core-libs with maximum covering > 10K [v2]

2021-06-28 Thread Weijun Wang
On Fri, 25 Jun 2021 23:40:27 GMT, Weijun Wang wrote: >> More refactoring to limit the scope of `@SuppressWarnings` annotations. >> >> Sometimes I introduce new methods. Please feel free to suggest method names >> you like to use. > > Weijun Wang has updated the pull request incrementally with

[jdk17] RFR: 8269534: Remove java/util/concurrent/locks/Lock/TimedAcquireLeak.java from ProblemList.txt

2021-06-28 Thread Daniel D . Daugherty
A trivial fix to remove java/util/concurrent/locks/Lock/TimedAcquireLeak.java from ProblemList.txt - Commit messages: - 8269534: Remove java/util/concurrent/locks/Lock/TimedAcquireLeak.java from ProblemList.txt Changes: https://git.openjdk.java.net/jdk17/pull/164/files Webrev:

[jdk17] Integrated: 8269534: Remove java/util/concurrent/locks/Lock/TimedAcquireLeak.java from ProblemList.txt

2021-06-28 Thread Daniel D . Daugherty
On Mon, 28 Jun 2021 17:05:49 GMT, Daniel D. Daugherty wrote: > A trivial fix to remove java/util/concurrent/locks/Lock/TimedAcquireLeak.java > from ProblemList.txt This pull request has now been integrated. Changeset: 20640a57 Author:Daniel D. Daugherty URL:

[jdk17] Integrated: JDK-8268236 The documentation of the String.regionMatches method contains error

2021-06-28 Thread Jim Laskey
On Mon, 28 Jun 2021 12:28:06 GMT, Jim Laskey wrote: > The documentation of the String.regionMatches method contains this fragment: > this.substring(toffset, len).codePoints(), but String.substring method takes > index, not the length, as the second argument. This pull request has now been

[jdk17] RFR: JDK-8269426: Move tests from test/jdk/java/lang/invoke/t8150782 to its parent directory

2021-06-28 Thread Mandy Chung
`test/jdk/java/lang/invoke/t8150782` is the only one using that convention. There are several tests under `` directory. As the tests under `test/jdk/java/lang/invoke/t8150782` are mostly unit tests for `Lookup::accessClass` and `Lookup::findClass`, they can simply be moved to the parent

Re: [jdk17] RFR: 8269534: Remove java/util/concurrent/locks/Lock/TimedAcquireLeak.java from ProblemList.txt

2021-06-28 Thread Thomas Schatzl
On Mon, 28 Jun 2021 17:05:49 GMT, Daniel D. Daugherty wrote: > A trivial fix to remove java/util/concurrent/locks/Lock/TimedAcquireLeak.java > from ProblemList.txt Lgtm and trivial. - Marked as reviewed by tschatzl (Reviewer). PR: https://git.openjdk.java.net/jdk17/pull/164

Re: [jdk17] RFR: 8269534: Remove java/util/concurrent/locks/Lock/TimedAcquireLeak.java from ProblemList.txt

2021-06-28 Thread Igor Ignatyev
On Mon, 28 Jun 2021 17:05:49 GMT, Daniel D. Daugherty wrote: > A trivial fix to remove java/util/concurrent/locks/Lock/TimedAcquireLeak.java > from ProblemList.txt Marked as reviewed by iignatyev (Reviewer). - PR: https://git.openjdk.java.net/jdk17/pull/164

Re: [jdk17] RFR: 8269534: Remove java/util/concurrent/locks/Lock/TimedAcquireLeak.java from ProblemList.txt

2021-06-28 Thread Daniel D . Daugherty
On Mon, 28 Jun 2021 17:15:23 GMT, Igor Ignatyev wrote: >> A trivial fix to remove >> java/util/concurrent/locks/Lock/TimedAcquireLeak.java from ProblemList.txt > > Marked as reviewed by iignatyev (Reviewer). @iignatev and @tschatzl - Thanks for the fast reviews. - PR:

Re: [jdk17] RFR: 8269486: CallerAccessTest fails for non server variant

2021-06-28 Thread Thomas Stuefe
On Mon, 28 Jun 2021 13:14:51 GMT, Christoph Göttschkes wrote: > Hi, > > please review this small fix. The test case uses a custom launcher and before > launching the JVM, it adds the "lib" and "lib/server" directories to the > environment variable which controls the native library search

Re: [jdk17] RFR: 8269486: CallerAccessTest fails for non server variant [v2]

2021-06-28 Thread Christoph Göttschkes
On Mon, 28 Jun 2021 13:44:41 GMT, David Holmes wrote: >> Christoph Göttschkes has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Renames serverDir to vmDir. > > test/jdk/java/lang/reflect/exeCallerAccessTest/CallerAccessTest.java line 53:

Re: [jdk17] RFR: 8269486: CallerAccessTest fails for non server variant [v2]

2021-06-28 Thread Christoph Göttschkes
> Hi, > > please review this small fix. The test case uses a custom launcher and before > launching the JVM, it adds the "lib" and "lib/server" directories to the > environment variable which controls the native library search path. For non > server variants, the second directory is not called

[jdk17] Integrated: 8269403: Fix jpackage tests to gracefully handle jpackage app launcher crashes

2021-06-28 Thread Alexey Semenyuk
On Fri, 25 Jun 2021 22:41:10 GMT, Alexey Semenyuk wrote: > jpackage app launcher randomly crashes JVM at termination in EMS enabled JDK > builds. > Until the root cause of the issue is understood and fixed let's add a > workaround to jpackage tests to run test app few more times if the first

[jdk17] RFR: 8269513: Clarify the spec wrt `useOldISOCodes` system property

2021-06-28 Thread Naoto Sato
Please review this small doc change to the system property. Accompanying CSR has also been created. - Commit messages: - 8269513: Clarify the spec wrt `useOldISOCodes` system property Changes: https://git.openjdk.java.net/jdk17/pull/163/files Webrev:

Re: [jdk17] RFR: 8269486: CallerAccessTest fails for non server variant

2021-06-28 Thread Christoph Göttschkes
On Mon, 28 Jun 2021 13:14:51 GMT, Christoph Göttschkes wrote: > Hi, > > please review this small fix. The test case uses a custom launcher and before > launching the JVM, it adds the "lib" and "lib/server" directories to the > environment variable which controls the native library search

Re: [jdk17] RFR: JDK-8268236 The documentation of the String.regionMatches method contains error

2021-06-28 Thread Daniel Fuchs
On Mon, 28 Jun 2021 12:28:06 GMT, Jim Laskey wrote: > The documentation of the String.regionMatches method contains this fragment: > this.substring(toffset, len).codePoints(), but String.substring method takes > index, not the length, as the second argument. Marked as reviewed by dfuchs

Re: RFR: 8269384: Determine native byte order for StringUTF16 via ByteOrder

2021-06-28 Thread David Holmes
On Mon, 28 Jun 2021 03:25:09 GMT, Yi Yang wrote: >> Prefer using ByteOrder to compute byte order for StringUTF16 to determining >> byte order by native method StringUTF16.isBigEndian. > > Hi Aleksey, do you have a concrete issue/discussion about bootstrapping > problems? I don't see it because

Re: [jdk17] RFR: 8269486: CallerAccessTest fails for non server variant

2021-06-28 Thread David Holmes
On Mon, 28 Jun 2021 13:14:51 GMT, Christoph Göttschkes wrote: > Hi, > > please review this small fix. The test case uses a custom launcher and before > launching the JVM, it adds the "lib" and "lib/server" directories to the > environment variable which controls the native library search

Re: [jdk17] RFR: 8269409: Post JEP 411 refactoring: core-libs with maximum covering > 10K [v3]

2021-06-28 Thread Weijun Wang
> More refactoring to limit the scope of `@SuppressWarnings` annotations. > > Sometimes I introduce new methods. Please feel free to suggest method names > you like to use. Weijun Wang has updated the pull request incrementally with one additional commit since the last revision: one more

Re: [jdk17] RFR: JDK-8266313 (JEP-356) - RandomGenerator spec implementation requirements tightly coupled to JDK internal classes

2021-06-28 Thread Roger Riggs
On Fri, 25 Jun 2021 18:53:59 GMT, Jim Laskey wrote: > The wording of the @implSpec referred to internal methods in the description. > The patch rewords the @implSpec to be more descriptive of the algorithm than > the methods used.

Re: [jdk17] RFR: JDK-8266313 (JEP-356) - RandomGenerator spec implementation requirements tightly coupled to JDK internal classes

2021-06-28 Thread Jim Laskey
On Mon, 28 Jun 2021 15:26:45 GMT, Roger Riggs wrote: >> The wording of the @implSpec referred to internal methods in the >> description. The patch rewords the @implSpec to be more descriptive of the >> algorithm than the methods used. > >

Withdrawn: 8269384: Determine native byte order for StringUTF16 via ByteOrder

2021-06-28 Thread Yi Yang
On Fri, 25 Jun 2021 13:40:54 GMT, Yi Yang wrote: > Prefer using ByteOrder to compute byte order for StringUTF16 to determining > byte order by native method StringUTF16.isBigEndian. This pull request has been closed without being integrated. - PR:

Re: [jdk17] RFR: JDK-8249646: Runtime.exec(String, String[], File) documentation contains literal {@link ...}

2021-06-28 Thread Athijegannathan Sundararajan
On Tue, 29 Jun 2021 04:39:28 GMT, Jonathan Gibbons wrote: > Please review a trivial `noreg-doc` fix for some javadoc tags for > `java.lang.Runtime` for JDK17 LGTM - Marked as reviewed by sundar (Reviewer). PR: https://git.openjdk.java.net/jdk17/pull/167

Re: [jdk17] RFR: 8269486: CallerAccessTest fails for non server variant

2021-06-28 Thread David Holmes
On 29/06/2021 12:52 am, Christoph Göttschkes wrote: On Mon, 28 Jun 2021 13:14:51 GMT, Christoph Göttschkes wrote: Hi, please review this small fix. The test case uses a custom launcher and before launching the JVM, it adds the "lib" and "lib/server" directories to the environment variable

Re: [jdk17] RFR: JDK-8249646: Runtime.exec(String, String[], File) documentation contains literal {@link ...}

2021-06-28 Thread Iris Clark
On Tue, 29 Jun 2021 04:39:28 GMT, Jonathan Gibbons wrote: > Please review a trivial `noreg-doc` fix for some javadoc tags for > `java.lang.Runtime` for JDK17 Marked as reviewed by iris (Reviewer). - PR: https://git.openjdk.java.net/jdk17/pull/167

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v5]

2021-06-28 Thread Tagir F . Valeev
On Mon, 28 Jun 2021 19:45:34 GMT, Roger Riggs wrote: >> Add java.util.Objects.newIdentity to supply a unique object with identity. >> This is a replacement code can be used today for the traditional new >> Object() idiom, which will be deprecated under Project Valhalla. >> Refer to [JEP 401:

Re: RFR: 8269384: Determine native byte order for StringUTF16 via ByteOrder

2021-06-28 Thread Yi Yang
On Fri, 25 Jun 2021 13:40:54 GMT, Yi Yang wrote: > Prefer using ByteOrder to compute byte order for StringUTF16 to determining > byte order by native method StringUTF16.isBigEndian. Thanks for the detailed clarification! The purpose of this PR is to skip the native call and use ByteOrder. Now

[jdk17] RFR: JDK-8249646: Runtime.exec(String, String[], File) documentation contains literal {@link ...}

2021-06-28 Thread Jonathan Gibbons
Please review a trivial `noreg-doc` fix for some javadoc tags for `java.lang.Runtime` for JDK17 - Commit messages: - JDK-8249646: Runtime.exec(String, String[], File) documentation contains literal {@link ...} Changes: https://git.openjdk.java.net/jdk17/pull/167/files Webrev:

Re: RFR: 8265891: (ch) InputStream returned by Channels.newInputStream should override transferTo

2021-06-28 Thread Alan Bateman
On Sun, 30 May 2021 17:30:56 GMT, Markus KARG wrote: > This PR-*draft* is **work in progress** and an invitation to discuss a > possible solution for issue > [JDK-8265891](https://bugs.openjdk.java.net/browse/JDK-8265891). It is *not > yet* intended for a final review. > > As proposed in

RFR: Merge jdk17

2021-06-28 Thread Jesper Wilhelmsson
Forwardport JDK 17 -> JDK 18 - Commit messages: - Merge - 8269426: Rename test/jdk/java/lang/invoke/t8150782 to accessClassAndFindClass - 8267952: async logging supports to dynamically change tags and decorators - 8269534: Remove

Integrated: Merge jdk17

2021-06-28 Thread Jesper Wilhelmsson
On Mon, 28 Jun 2021 21:58:36 GMT, Jesper Wilhelmsson wrote: > Forwardport JDK 17 -> JDK 18 This pull request has now been integrated. Changeset: 03d54e6e Author:Jesper Wilhelmsson URL: https://git.openjdk.java.net/jdk/commit/03d54e6ef1a40ee78b0cc65ca0aea276fbdbc7b7 Stats: 224

Re: RFR: Merge jdk17 [v2]

2021-06-28 Thread Jesper Wilhelmsson
> Forwardport JDK 17 -> JDK 18 Jesper Wilhelmsson has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 103 commits: - Merge - 8269409: Post JEP 411 refactoring: core-libs with maximum covering > 10K Reviewed-by: lancea, naoto -

Re: [jdk17] RFR: 8269034: AccessControlException for SunPKCS11 daemon threads [v3]

2021-06-28 Thread Sean Coffey
> Sufficient permissions missing if this code was ever to run with > SecurityManager. > > Cleanest approach appears to be use of InnocuousThread to create the > cleaner/poller threads. > Test case coverage extended to cover the SecurityManager scenario. > > Reviewer request: @valeriepeng

Re: RFR: 8190753: (zipfs): Accessing a large entry (> 2^31 bytes) leads to a negative initial size for ByteArrayOutputStream

2021-06-28 Thread Jaikiran Pai
Hello Lance, Please take your time. -Jaikiran On 29/06/21 4:17 am, Lance Andersen wrote: Hi Jaikiran, This is on my list to look at but did not get to today. Best Lance On Jun 27, 2021, at 11:52 PM, Jaikiran Pai mailto:j...@openjdk.java.net>> wrote: Can I please get a review for this

Re: RFR: 8190753: (zipfs): Accessing a large entry (> 2^31 bytes) leads to a negative initial size for ByteArrayOutputStream

2021-06-28 Thread Lance Andersen
Hi Jaikiran, This is on my list to look at but did not get to today. Best Lance On Jun 27, 2021, at 11:52 PM, Jaikiran Pai mailto:j...@openjdk.java.net>> wrote: Can I please get a review for this proposed fix for the issue reported in https://bugs.openjdk.java.net/browse/JDK-8190753? The

Re: [jdk17] RFR: 8269034: AccessControlException for SunPKCS11 daemon threads [v2]

2021-06-28 Thread Seán Coffey
Hi Valerie, many thanks for the thorough review. I've taken all your feedback on board with the latest push. Some of the test anomalies were a result of previous iterations of test edits I had been making. Regarding the extra edits in "src/java.base/share/lib/security/default.policy", I had

Re: [jdk17] RFR: 8269513: Clarify the spec wrt `useOldISOCodes` system property [v4]

2021-06-28 Thread Joe Wang
On Mon, 28 Jun 2021 20:33:29 GMT, Naoto Sato wrote: >> Please review this small doc change to the system property. Accompanying CSR >> has also been created. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > Missed one.

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v5]

2021-06-28 Thread Roger Riggs
> Add java.util.Objects.newIdentity to supply a unique object with identity. > This is a replacement code can be used today for the traditional new Object() > idiom, which will be deprecated under Project Valhalla. > Refer to [JEP 401: Primitive Objects >

[jdk17] RFR: 8269240: java/foreign/stackwalk/TestAsyncStackWalk.java test failed with concurrent GC

2021-06-28 Thread Jorn Vernee
This patch rewrites the prologue and epilogue of panama upcalls, in order to fix the test failure from the title. Previously, we did a call to potentially attach the current thread to the VM, and then afterwards did the same suspend and stack reguard checks that we do on the back-edge of a

RFR: 8269409: Post JEP 411 refactoring: core-libs with maximum covering > 10K

2021-06-28 Thread Weijun Wang
More refactoring to limit the scope of `@SuppressWarnings` annotations. Sometimes I introduce new methods. Please feel free to suggest method names you like to use. Note: this is copied from https://github.com/openjdk/jdk17/pull/152. - Commit messages: - copy all code change from

Re: [jdk17] RFR: 8268566: java/foreign/TestResourceScope.java timed out

2021-06-28 Thread Jorn Vernee
On Mon, 14 Jun 2021 15:42:03 GMT, Maurizio Cimadamore wrote: > This patch contains another minor tweak to TestResourceScope as we have seen > this test timing out at least once (on arm64). > > I realized that some of the logic recently introduced in the test could lead > to the test waiting

Re: [jdk17] RFR: 8269513: Clarify the spec wrt `useOldISOCodes` system property [v2]

2021-06-28 Thread Naoto Sato
> Please review this small doc change to the system property. Accompanying CSR > has also been created. Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: Refined wording. - Changes: - all:

Re: RFR: 8269409: Post JEP 411 refactoring: core-libs with maximum covering > 10K

2021-06-28 Thread Lance Andersen
On Mon, 28 Jun 2021 18:03:56 GMT, Weijun Wang wrote: > More refactoring to limit the scope of `@SuppressWarnings` annotations. > > Sometimes I introduce new methods. Please feel free to suggest method names > you like to use. > > Note: this is copied from

Re: [jdk17] RFR: JDK-8269426: Rename test/jdk/java/lang/invoke/t8150782 to accessClassAndFindClass [v2]

2021-06-28 Thread Jorn Vernee
On Mon, 28 Jun 2021 19:13:45 GMT, Mandy Chung wrote: >> `test/jdk/java/lang/invoke/t8150782` is the only one using that convention. >> There are several tests under `` directory. As the tests under >> `test/jdk/java/lang/invoke/t8150782` are mostly unit tests for >> `Lookup::accessClass` and

Re: [jdk17] RFR: 8269513: Clarify the spec wrt `useOldISOCodes` system property [v2]

2021-06-28 Thread Iris Clark
On Mon, 28 Jun 2021 18:37:34 GMT, Naoto Sato wrote: >> Please review this small doc change to the system property. Accompanying CSR >> has also been created. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > Refined wording.

[jdk17] Integrated: JDK-8269426: Rename test/jdk/java/lang/invoke/t8150782 to accessClassAndFindClass

2021-06-28 Thread Mandy Chung
On Mon, 28 Jun 2021 16:09:36 GMT, Mandy Chung wrote: > `test/jdk/java/lang/invoke/t8150782` is the only one using that convention. > There are several tests under `` directory. As the tests under > `test/jdk/java/lang/invoke/t8150782` are mostly unit tests for > `Lookup::accessClass` and

Re: [jdk17] RFR: 8269513: Clarify the spec wrt `useOldISOCodes` system property [v4]

2021-06-28 Thread Iris Clark
On Mon, 28 Jun 2021 20:33:29 GMT, Naoto Sato wrote: >> Please review this small doc change to the system property. Accompanying CSR >> has also been created. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > Missed one.

RFR: 8199594: Add doc describing how (?x) ignores spaces in character classes

2021-06-28 Thread Ian Graves
8199594: Add doc describing how (?x) ignores spaces in character classes - Commit messages: - Updating documentation on comments mode and character class whitespace Changes: https://git.openjdk.java.net/jdk/pull/4618/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk=4618=00

Re: [jdk17] RFR: 8269486: CallerAccessTest fails for non server variant [v2]

2021-06-28 Thread Jorn Vernee
On Mon, 28 Jun 2021 14:52:41 GMT, Christoph Göttschkes wrote: >> Hi, >> >> please review this small fix. The test case uses a custom launcher and >> before launching the JVM, it adds the "lib" and "lib/server" directories to >> the environment variable which controls the native library search

Re: [jdk17] RFR: JDK-8269426: Move tests from test/jdk/java/lang/invoke/t8150782 to its parent directory

2021-06-28 Thread Jorn Vernee
On Mon, 28 Jun 2021 18:56:24 GMT, Mandy Chung wrote: > That's a fair point. I personally prefer using a descriptive directory name > rather than bug ID since that can give the reader what the tests are intended > for. What about renaming t8150782 to accessClassAndFindClass? Me too! That

Re: [jdk17] RFR: 8269513: Clarify the spec wrt `useOldISOCodes` system property [v2]

2021-06-28 Thread Joe Wang
On Mon, 28 Jun 2021 18:37:34 GMT, Naoto Sato wrote: >> Please review this small doc change to the system property. Accompanying CSR >> has also been created. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > Refined wording.

Re: [jdk17] RFR: 8269513: Clarify the spec wrt `useOldISOCodes` system property [v3]

2021-06-28 Thread Naoto Sato
> Please review this small doc change to the system property. Accompanying CSR > has also been created. Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: Refined wording #2. - Changes: - all:

Re: [jdk17] RFR: 8269513: Clarify the spec wrt `useOldISOCodes` system property [v4]

2021-06-28 Thread Lance Andersen
On Mon, 28 Jun 2021 20:33:29 GMT, Naoto Sato wrote: >> Please review this small doc change to the system property. Accompanying CSR >> has also been created. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > Missed one.

[jdk17] Withdrawn: 8269409: Post JEP 411 refactoring: core-libs with maximum covering > 10K

2021-06-28 Thread Weijun Wang
On Fri, 25 Jun 2021 20:04:37 GMT, Weijun Wang wrote: > More refactoring to limit the scope of `@SuppressWarnings` annotations. > > Sometimes I introduce new methods. Please feel free to suggest method names > you like to use. This pull request has been closed without being integrated.

Re: [jdk17] RFR: JDK-8269426: Move tests from test/jdk/java/lang/invoke/t8150782 to its parent directory

2021-06-28 Thread Jorn Vernee
On Mon, 28 Jun 2021 16:09:36 GMT, Mandy Chung wrote: > `test/jdk/java/lang/invoke/t8150782` is the only one using that convention. > There are several tests under `` directory. As the tests under > `test/jdk/java/lang/invoke/t8150782` are mostly unit tests for > `Lookup::accessClass` and

Re: [jdk17] RFR: 8269513: Clarify the spec wrt `useOldISOCodes` system property [v2]

2021-06-28 Thread Lance Andersen
On Mon, 28 Jun 2021 18:37:34 GMT, Naoto Sato wrote: >> Please review this small doc change to the system property. Accompanying CSR >> has also been created. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > Refined wording.

Re: [jdk17] RFR: JDK-8269426: Rename test/jdk/java/lang/invoke/t8150782 to accessClassAndFindClass [v2]

2021-06-28 Thread Mandy Chung
> `test/jdk/java/lang/invoke/t8150782` is the only one using that convention. > There are several tests under `` directory. As the tests under > `test/jdk/java/lang/invoke/t8150782` are mostly unit tests for > `Lookup::accessClass` and `Lookup::findClass`, they can simply be moved to > the

Re: [jdk17] RFR: JDK-8269426: Rename test/jdk/java/lang/invoke/t8150782 to accessClassAndFindClass

2021-06-28 Thread Mandy Chung
On Mon, 28 Jun 2021 16:09:36 GMT, Mandy Chung wrote: > `test/jdk/java/lang/invoke/t8150782` is the only one using that convention. > There are several tests under `` directory. As the tests under > `test/jdk/java/lang/invoke/t8150782` are mostly unit tests for > `Lookup::accessClass` and

Re: RFR: 6766844: ByteArrayInputStream#read with a byte array of length 0 not consistent with InputStream when at EOF [v5]

2021-06-28 Thread Brian Burkhalter
> Modify `java.io.ByteArrayInputStream` methods `read(byte[])` and > `read(byte[],int,int)` to return zero per the `InputStream` specification > when the byte array actual or specified length is zero. Brian Burkhalter has updated the pull request incrementally with two additional commits since

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v4]

2021-06-28 Thread Jorn Vernee
On Wed, 23 Jun 2021 19:21:02 GMT, Roger Riggs wrote: >> Add java.util.Objects.newIdentity to supply a unique object with identity. >> This is a replacement code can be used today for the traditional new >> Object() idiom, which will be deprecated under Project Valhalla. >> Refer to [JEP 401:

Re: [jdk17] RFR: JDK-8269426: Move tests from test/jdk/java/lang/invoke/t8150782 to its parent directory

2021-06-28 Thread Mandy Chung
On Mon, 28 Jun 2021 16:09:36 GMT, Mandy Chung wrote: > `test/jdk/java/lang/invoke/t8150782` is the only one using that convention. > There are several tests under `` directory. As the tests under > `test/jdk/java/lang/invoke/t8150782` are mostly unit tests for > `Lookup::accessClass` and

Re: [jdk17] RFR: 8266313: (JEP-356) - RandomGenerator spec implementation requirements tightly coupled to JDK internal classes [v2]

2021-06-28 Thread Roger Riggs
On Mon, 28 Jun 2021 18:12:34 GMT, Jim Laskey wrote: >> The wording of the @implSpec referred to internal methods in the >> description. The patch rewords the @implSpec to be more descriptive of the >> algorithm than the methods used. > > Jim Laskey has updated the pull request incrementally

Re: [jdk17] RFR: 8269513: Clarify the spec wrt `useOldISOCodes` system property [v4]

2021-06-28 Thread Naoto Sato
> Please review this small doc change to the system property. Accompanying CSR > has also been created. Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: Missed one. - Changes: - all:

Re: [jdk17] RFR: 8269240: java/foreign/stackwalk/TestAsyncStackWalk.java test failed with concurrent GC

2021-06-28 Thread Jorn Vernee
On Fri, 25 Jun 2021 17:38:32 GMT, Jorn Vernee wrote: > This patch rewrites the prologue and epilogue of panama upcalls, in order to > fix the test failure from the title. > > Previously, we did a call to potentially attach the current thread to the VM, > and then afterwards did the same

Re: [jdk17] RFR: 8269513: Clarify the spec wrt `useOldISOCodes` system property

2021-06-28 Thread Lance Andersen
On Mon, 28 Jun 2021 16:57:15 GMT, Naoto Sato wrote: > Please review this small doc change to the system property. Accompanying CSR > has also been created. Looks good Naoto - Marked as reviewed by lancea (Reviewer). PR: https://git.openjdk.java.net/jdk17/pull/163

Re: [jdk17] RFR: 8266313: (JEP-356) - RandomGenerator spec implementation requirements tightly coupled to JDK internal classes [v2]

2021-06-28 Thread Jim Laskey
> The wording of the @implSpec referred to internal methods in the description. > The patch rewords the @implSpec to be more descriptive of the algorithm than > the methods used. Jim Laskey has updated the pull request incrementally with one additional commit since the last revision: Not

Re: [jdk17] RFR: 8266313: (JEP-356) - RandomGenerator spec implementation requirements tightly coupled to JDK internal classes [v2]

2021-06-28 Thread Jim Laskey
On Mon, 28 Jun 2021 15:57:21 GMT, Jim Laskey wrote: >> src/java.base/share/classes/java/util/random/RandomGenerator.java line 648: >> >>> 646: * power of two then limiting is a simple masking operation. >>> Otherwise, a >>> 647: * new result is re-calculated by averaging the previous

Re: [jdk17] RFR: 8269486: CallerAccessTest fails for non server variant [v2]

2021-06-28 Thread Mandy Chung
On Mon, 28 Jun 2021 14:52:41 GMT, Christoph Göttschkes wrote: >> Hi, >> >> please review this small fix. The test case uses a custom launcher and >> before launching the JVM, it adds the "lib" and "lib/server" directories to >> the environment variable which controls the native library search

Re: [jdk17] RFR: 8269513: Clarify the spec wrt `useOldISOCodes` system property [v2]

2021-06-28 Thread Brian Burkhalter
On Mon, 28 Jun 2021 18:37:34 GMT, Naoto Sato wrote: >> Please review this small doc change to the system property. Accompanying CSR >> has also been created. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > Refined wording.

Integrated: 8269409: Post JEP 411 refactoring: core-libs with maximum covering > 10K

2021-06-28 Thread Weijun Wang
On Mon, 28 Jun 2021 18:03:56 GMT, Weijun Wang wrote: > More refactoring to limit the scope of `@SuppressWarnings` annotations. > > Sometimes I introduce new methods. Please feel free to suggest method names > you like to use. > > Note: this is copied from

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v5]

2021-06-28 Thread Jorn Vernee
On Mon, 28 Jun 2021 19:45:34 GMT, Roger Riggs wrote: >> Add java.util.Objects.newIdentity to supply a unique object with identity. >> This is a replacement code can be used today for the traditional new >> Object() idiom, which will be deprecated under Project Valhalla. >> Refer to [JEP 401:

Re: [jdk17] RFR: 8269513: Clarify the spec wrt `useOldISOCodes` system property [v2]

2021-06-28 Thread Joe Wang
On Mon, 28 Jun 2021 18:45:31 GMT, Lance Andersen wrote: >> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Refined wording. > > src/java.base/share/classes/java/util/Locale.java line 460: > >> 458: * back to that of before

Re: [jdk17] RFR: 8269513: Clarify the spec wrt `useOldISOCodes` system property [v2]

2021-06-28 Thread Naoto Sato
On Mon, 28 Jun 2021 18:37:34 GMT, Naoto Sato wrote: >> Please review this small doc change to the system property. Accompanying CSR >> has also been created. > > Naoto Sato has updated the pull request incrementally with one additional > commit since the last revision: > > Refined wording.

Withdrawn: 8260621: Avoid memory leak in ImageBufferCache

2021-06-28 Thread Bo Zhang
On Fri, 29 Jan 2021 05:53:57 GMT, Bo Zhang wrote: > Previously, `ImageBufferCache` contains a ThreadLocal field which holds > strong reference to `ImageBufferCache$BufferReference.class`. When loaded > from `jrt-fs.jar`, this will keep `JrtFileSystemProvider$JrtFsLoader` > in memory forever and

Re: RFR: 8260621: Avoid memory leak in ImageBufferCache [v2]

2021-06-28 Thread Alan Bateman
On Wed, 3 Feb 2021 01:29:02 GMT, Bo Zhang wrote: >> Previously, `ImageBufferCache` contains a ThreadLocal field which holds >> strong reference to `ImageBufferCache$BufferReference.class`. When loaded >> from `jrt-fs.jar`, this will keep `JrtFileSystemProvider$JrtFsLoader` >> in memory forever

Re: RFR: 8190753: (zipfs): Accessing a large entry (> 2^31 bytes) leads to a negative initial size for ByteArrayOutputStream

2021-06-28 Thread Alan Bateman
On Mon, 28 Jun 2021 03:41:20 GMT, Jaikiran Pai wrote: > Can I please get a review for this proposed fix for the issue reported in > https://bugs.openjdk.java.net/browse/JDK-8190753? > > The commit here checks for the size of the zip entry before trying to create > a `ByteArrayOutputStream`