Re: RFR: 8259707: LDAP channel binding does not work with StartTLS extension [v3]

2021-01-22 Thread Aleksei Efimov
On Thu, 21 Jan 2021 19:57:04 GMT, Alexey Bakhtin wrote: >> Please review a small patch to enable LDAP TLS Channel Binding with StartTLS >> Extension. >> Test from the bug report and jtreg javax/naming tests are passed. > > Alexey Bakhtin has updated the pull request incrementally with one additi

Re: RFR: 8259842: Remove Result cache from StringCoding [v11]

2021-01-22 Thread Claes Redestad
On Thu, 21 Jan 2021 22:43:50 GMT, Naoto Sato wrote: >> Claes Redestad has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Reduce code duplication in getBytes/getBytesNoRepl > > Marked as reviewed by naoto (Reviewer). Passed testing tiers 1-

Integrated: 8259842: Remove Result cache from StringCoding

2021-01-22 Thread Claes Redestad
On Fri, 15 Jan 2021 14:33:19 GMT, Claes Redestad wrote: > The `StringCoding.resultCached` mechanism is used to remove the allocation of > a `StringCoding.Result` object on potentially hot paths used in some `String` > constructors. Using a `ThreadLocal` has overheads though, and the overhead >

Re: RFR: 8259925: [Vector API] Unreasonable IndexOutOfBoundsException message when length < vlen

2021-01-22 Thread Jie Fu
On Thu, 21 Jan 2021 16:54:36 GMT, Paul Sandoz wrote: >>> Unfortunately it is still problematic because you have replaced the >>> intrinsic check (that performed by `Object.checksIndex`, or more >>> specifically >>> [here](https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/j

Re: RFR: 8259707: LDAP channel binding does not work with StartTLS extension [v4]

2021-01-22 Thread Alexey Bakhtin
> Please review a small patch to enable LDAP TLS Channel Binding with StartTLS > Extension. > Test from the bug report and jtreg javax/naming tests are passed. Alexey Bakhtin has updated the pull request incrementally with one additional commit since the last revision: Update copyright year

Re: RFR: 8246788: ZoneRules invariants can be broken

2021-01-22 Thread Roger Riggs
On Fri, 22 Jan 2021 05:39:55 GMT, Stuart Marks wrote: > Tighten up argument checking in constructor. Marked as reviewed by rriggs (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/2191

Re: RFR: 8246788: ZoneRules invariants can be broken

2021-01-22 Thread Daniel Fuchs
On Fri, 22 Jan 2021 05:39:55 GMT, Stuart Marks wrote: > Tighten up argument checking in constructor. src/java.base/share/classes/java/time/zone/ZoneRules.java line 263: > 261: // last rules > 262: Object[] temp = lastRules.toArray(); > 263: ZoneOffsetTransitionRule[] rul

Re: RFR: JDK-8260273: DataOutputStream writeChars optimization

2021-01-22 Thread Roger Riggs
On Fri, 22 Jan 2021 02:57:36 GMT, Hamlin Li wrote: > this is minor optimization following JDK-8254078. > based on my tests with jmh, it has better performance when apply following > patch: > > diff --git a/src/java.base/share/classes/java/io/DataOutputStream.java > b/src/java.base/share/classe

Re: RFR: 8259707: LDAP channel binding does not work with StartTLS extension [v4]

2021-01-22 Thread Aleksei Efimov
On Fri, 22 Jan 2021 14:42:10 GMT, Alexey Bakhtin wrote: >> Please review a small patch to enable LDAP TLS Channel Binding with StartTLS >> Extension. >> Test from the bug report and jtreg javax/naming tests are passed. > > Alexey Bakhtin has updated the pull request incrementally with one additi

Re: RFR: JDK-8260273: DataOutputStream writeChars optimization

2021-01-22 Thread Brian Burkhalter
On Fri, 22 Jan 2021 02:57:36 GMT, Hamlin Li wrote: > this is minor optimization following JDK-8254078. > based on my tests with jmh, it has better performance when apply following > patch: > > diff --git a/src/java.base/share/classes/java/io/DataOutputStream.java > b/src/java.base/share/classe

Re: RFR: JDK-8183372 : Refactor java/lang/Class shell tests to java [v2]

2021-01-22 Thread Mahendra Chhipa
> https://bugs.openjdk.java.net/browse/JDK-8183372 Mahendra Chhipa has updated the pull request incrementally with one additional commit since the last revision: NonJavaName Tests updated Used newInstance() method to create the different EnclosingClasses at runtime - Changes:

Re: RFR: 8246788: ZoneRules invariants can be broken

2021-01-22 Thread Naoto Sato
On Fri, 22 Jan 2021 05:39:55 GMT, Stuart Marks wrote: > Tighten up argument checking in constructor. Marked as reviewed by naoto (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/2191

Re: RFR: JDK-8183372 : Refactor java/lang/Class shell tests to java

2021-01-22 Thread Mahendra Chhipa
On Thu, 21 Jan 2021 05:19:00 GMT, Brent Christian wrote: >> https://bugs.openjdk.java.net/browse/JDK-8183372 > > Can this be done all in `EnclosingClassTest.java`, without a new > `RunEnclosingClassTest.java`? > > Adding the `@BeforeClass` and `@AfterClass` methods to what's there, you may > j

Re: RFR: 8246788: ZoneRules invariants can be broken

2021-01-22 Thread Florent Guillaume
On Fri, 22 Jan 2021 14:48:00 GMT, Daniel Fuchs wrote: >> Tighten up argument checking in constructor. > > src/java.base/share/classes/java/time/zone/ZoneRules.java line 263: > >> 261: // last rules >> 262: Object[] temp = lastRules.toArray(); >> 263: ZoneOffsetTransitionR

Re: RFR: 8246788: ZoneRules invariants can be broken

2021-01-22 Thread Daniel Fuchs
On Fri, 22 Jan 2021 15:00:17 GMT, Florent Guillaume wrote: >> src/java.base/share/classes/java/time/zone/ZoneRules.java line 263: >> >>> 261: // last rules >>> 262: Object[] temp = lastRules.toArray(); >>> 263: ZoneOffsetTransitionRule[] rulesArray = Arrays.copyOf(temp,

Integrated: 8259922 MethodHandles.collectArguments does not throw IAE if pos is outside the arity range

2021-01-22 Thread Johannes Kuhn
On Wed, 20 Jan 2021 18:29:00 GMT, Johannes Kuhn wrote: > Add explicit range check to `MethodHandles.collectArgumentsCheck`. > Added test case that exercises all cases. > > This is a behavioral change, from throwing an unspecified exception to > throwing an IllegalArgumentException, as specif

Re: RFR: 8259707: LDAP channel binding does not work with StartTLS extension [v4]

2021-01-22 Thread Daniel Fuchs
On Fri, 22 Jan 2021 14:42:10 GMT, Alexey Bakhtin wrote: >> Please review a small patch to enable LDAP TLS Channel Binding with StartTLS >> Extension. >> Test from the bug report and jtreg javax/naming tests are passed. > > Alexey Bakhtin has updated the pull request incrementally with one additi

Re: RFR: 8259707: LDAP channel binding does not work with StartTLS extension [v4]

2021-01-22 Thread Daniel Fuchs
On Fri, 22 Jan 2021 18:16:52 GMT, Daniel Fuchs wrote: >> Alexey Bakhtin has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Update copyright year > > LGTM. Thanks for taking this on! I will sponsor this! - PR: https://git.open

Integrated: 8259707: LDAP channel binding does not work with StartTLS extension

2021-01-22 Thread Alexey Bakhtin
On Thu, 14 Jan 2021 19:28:27 GMT, Alexey Bakhtin wrote: > Please review a small patch to enable LDAP TLS Channel Binding with StartTLS > Extension. > Test from the bug report and jtreg javax/naming tests are passed. This pull request has now been integrated. Changeset: 874aef4a Author:Alex

Re: RFR: JDK-8183372 : Refactor java/lang/Class shell tests to java [v2]

2021-01-22 Thread Mandy Chung
On Fri, 22 Jan 2021 16:52:02 GMT, Mahendra Chhipa wrote: >> https://bugs.openjdk.java.net/browse/JDK-8183372 > > Mahendra Chhipa has updated the pull request incrementally with one > additional commit since the last revision: > > NonJavaName Tests updated > Used newInstance() method to cre

Re: RFR: 8246788: ZoneRules invariants can be broken

2021-01-22 Thread Stuart Marks
On Fri, 22 Jan 2021 17:12:34 GMT, Daniel Fuchs wrote: >> Or even maybe `rulesArray = >> lastRules.toArray(ZoneOffsetTransitionRule[]::new);`? > > Good point - but that would be: > > ZoneOffsetTransitionRule[] rulesArray = > lastRules.toArray(ZoneOffsetTransitionRule[]::new).clone(); Interesti

Integrated: 8246788: ZoneRules invariants can be broken

2021-01-22 Thread Stuart Marks
On Fri, 22 Jan 2021 05:39:55 GMT, Stuart Marks wrote: > Tighten up argument checking in constructor. This pull request has now been integrated. Changeset: a8871776 Author:Stuart Marks URL: https://git.openjdk.java.net/jdk/commit/a8871776 Stats: 90 lines in 2 files changed: 87 ins

Re: RFR: 8252412: [macos11] system dynamic libraries removed from filesystem [v2]

2021-01-22 Thread Jiangli Zhou
On Mon, 18 Jan 2021 11:03:06 GMT, Martin Buchholz wrote: >> 8252412: [macos11] system dynamic libraries removed from filesystem > > Martin Buchholz has refreshed the contents of this pull request, and previous > commits have been removed. The incremental views will show differences > compared t

RFR: 8253795: Implementation of JEP 391: macOS/AArch64 Port

2021-01-22 Thread Anton Kozlov
Please review the implementation of JEP 391: macOS/AArch64 Port. It's heavily based on existing ports to linux/aarch64, macos/x86_64, and windows/aarch64. Major changes are in: * src/hotspot/cpu/aarch64: support of the new calling convention (subtasks JDK-8253817, JDK-8253818) * src/hotspot/os

Re: RFR: 8252412: [macos11] system dynamic libraries removed from filesystem [v2]

2021-01-22 Thread Martin Buchholz
On Fri, 22 Jan 2021 19:46:13 GMT, Jiangli Zhou wrote: >> Martin Buchholz has refreshed the contents of this pull request, and >> previous commits have been removed. The incremental views will show >> differences compared to the previous content of the PR. > > src/java.smartcardio/unix/classes/s

Re: RFR: 8252412: [macos11] system dynamic libraries removed from filesystem [v2]

2021-01-22 Thread Martin Buchholz
My github comment was mangled forwarding to core-libs. I suspect the skara bidirectional mailing list forwarding bot discards lines with leading "/" . Instead the bot should pass on unrecognized github comment commands unmodified. On Fri, Jan 22, 2021 at 12:12 PM Martin Buchholz wrote: > On Fr

Re: RFR: JDK-8183372 : Refactor java/lang/Class shell tests to java

2021-01-22 Thread Brent Christian
On Fri, 22 Jan 2021 16:57:41 GMT, Mahendra Chhipa wrote: >> Can this be done all in `EnclosingClassTest.java`, without a new >> `RunEnclosingClassTest.java`? >> >> Adding the `@BeforeClass` and `@AfterClass` methods to what's there, you may >> just need to >> change the `test()` calls to use

Re: RFR: 8253795: Implementation of JEP 391: macOS/AArch64 Port

2021-01-22 Thread Erik Joelsson
On Fri, 22 Jan 2021 18:49:42 GMT, Anton Kozlov wrote: > Please review the implementation of JEP 391: macOS/AArch64 Port. > > It's heavily based on existing ports to linux/aarch64, macos/x86_64, and > windows/aarch64. > > Major changes are in: > * src/hotspot/cpu/aarch64: support of the new ca

Integrated: 8258917: NativeMemoryTracking is handled by launcher inconsistenly

2021-01-22 Thread Alex Menkov
On Fri, 15 Jan 2021 23:50:16 GMT, Alex Menkov wrote: > The fix adds NMT handling for non-java launchers This pull request has now been integrated. Changeset: bdc305e1 Author:Alex Menkov URL: https://git.openjdk.java.net/jdk/commit/bdc305e1 Stats: 30 lines in 2 files changed: 16 i

Re: RFR: 8252412: [macos11] system dynamic libraries removed from filesystem [v2]

2021-01-22 Thread Jiangli Zhou
On Fri, 22 Jan 2021 20:08:48 GMT, Martin Buchholz wrote: >> src/java.smartcardio/unix/classes/sun/security/smartcardio/PlatformPCSC.java >> line 132: >> >>> 130: // existence of the containing directory instead of the file. >>> 131: lib = PCSC_FRAMEWORK; >>> 132: if (new

Re: RFR: 8252412: [macos11] system dynamic libraries removed from filesystem [v2]

2021-01-22 Thread Jiangli Zhou
On Mon, 18 Jan 2021 11:03:06 GMT, Martin Buchholz wrote: >> 8252412: [macos11] system dynamic libraries removed from filesystem > > Martin Buchholz has refreshed the contents of this pull request, and previous > commits have been removed. The incremental views will show differences > compared t

Re: RFR: 8252412: [macos11] system dynamic libraries removed from filesystem [v2]

2021-01-22 Thread Jiangli Zhou
On Fri, 22 Jan 2021 22:16:28 GMT, Jiangli Zhou wrote: >> The directory structure is intact - only the file is removed from the >> filesystem. >> More generally, for many frameworks, where there used to be >> >> >> the file is gone, but >> >> >> remains. >> >> I don't think we need a jtreg

Re: RFR: 8252412: [macos11] system dynamic libraries removed from filesystem [v2]

2021-01-22 Thread Martin Buchholz
On Fri, 22 Jan 2021 22:56:08 GMT, Jiangli Zhou wrote: >> Martin Buchholz has refreshed the contents of this pull request, and >> previous commits have been removed. The incremental views will show >> differences compared to the previous content of the PR. > > Marked as reviewed by jiangli (Revi

Re: RFR: 8252412: [macos11] system dynamic libraries removed from filesystem [v2]

2021-01-22 Thread Valerie Peng
On Fri, 22 Jan 2021 22:55:22 GMT, Jiangli Zhou wrote: >> Ok, I see Java_sun_security_smartcardio_PlatformPCSC_initialize does dlopen >> using the 'jLibName' (string) obtained from getLibraryName() and throws >> IOException if dlopen fails. The change seems safe enough. >> >> I'm wondering if y

Re: RFR: 8252412: [macos11] system dynamic libraries removed from filesystem [v2]

2021-01-22 Thread Valerie Peng
On Mon, 18 Jan 2021 11:03:06 GMT, Martin Buchholz wrote: >> 8252412: [macos11] system dynamic libraries removed from filesystem > > Martin Buchholz has refreshed the contents of this pull request, and previous > commits have been removed. The incremental views will show differences > compared t

Re: RFR: JDK-8260273: DataOutputStream writeChars optimization

2021-01-22 Thread Hamlin Li
On Fri, 22 Jan 2021 16:21:05 GMT, Brian Burkhalter wrote: >> this is minor optimization following JDK-8254078. >> based on my tests with jmh, it has better performance when apply following >> patch: >> >> diff --git a/src/java.base/share/classes/java/io/DataOutputStream.java >> b/src/java.base

Re: RFR: JDK-8260273: DataOutputStream writeChars optimization

2021-01-22 Thread Alan Bateman
On Fri, 22 Jan 2021 02:57:36 GMT, Hamlin Li wrote: > this is minor optimization following JDK-8254078. > based on my tests with jmh, it has better performance when apply following > patch: > > diff --git a/src/java.base/share/classes/java/io/DataOutputStream.java > b/src/java.base/share/classe