Re: RFR: 8265019 : Update tests for additional TestNG test permissions [v2]

2021-04-13 Thread Alan Bateman
On Tue, 13 Apr 2021 18:56:22 GMT, Lance Andersen wrote: >> Hi all, >> >> Please review the following patch which adds additional permissions needed >> for when JTREG upgrades to a newer version of TestNG. >> >> Best, >> Lance > > Lance Andersen has updated the pull request incrementally with o

Re: RFR: 8264976: Minor numeric bug in AbstractSplittableWithBrineGenerator.makeSplitsSpliterator

2021-04-13 Thread Aleksey Shipilev
On Fri, 9 Apr 2021 09:41:19 GMT, Aleksey Shipilev wrote: > SonarCloud reports: > Cast one of the operands of this subtraction operation to a "long". > > Here: > > Spliterator makeSplitsSpliterator(long index, > long fence, SplittableGenerator source) { > ... >

Re: RFR: 8265135: Reduce work initializing VarForms

2021-04-13 Thread Mandy Chung
On Tue, 13 Apr 2021 18:11:37 GMT, Claes Redestad wrote: > This patch reduces work done initializing VarForms - mostly observed when > loading each VarHandle implementation class. > > - Lazily resolve MemberNames. > - Streamline MethodType creation. This reduces the number of MethodTypes > crea

Re: RFR: 8265174: Update Class.getDeclaredMethods to discuss synthetic and bridge methods [v2]

2021-04-13 Thread Joe Darcy
> The results from Class.getDeclaredMethods can include bridge and other > synthetic methods, which can be unexpected by users (JDK-6815786, > JDK-8142904) and appear to be inherited methods. The javadoc for > Class.getDeclaredMethods should be updated to explicitly mention the > possibility of

Re: RFR: 8262108: SimpleDateFormat formatting broken for sq_MK Locale [v2]

2021-04-13 Thread Jaikiran Pai
On Tue, 13 Apr 2021 17:56:12 GMT, Naoto Sato wrote: >Have you run regression tests in java.time? If I am not mistaken, your changes >simply seem to nullify the day period support. Hello @naotoj, my tier1 test run passed without issues locally with this change: == T

ObjectMethods seems generating wrong methods for array-type field

2021-04-13 Thread Kengo TODA
Hello there, I'm Kengo TODA, an engineer learning about the Record feature. Today I found a nonintentional behavior, and it seems that the bug database has no info about it. Let me ask here to confirm it's by-design or not. If it's a bug, I want to try to send a patch to OpenJDK. Here is the cod

Re: RFR: 8265135: Reduce work initializing VarForms

2021-04-13 Thread Paul Sandoz
On Wed, 14 Apr 2021 00:35:38 GMT, Claes Redestad wrote: >> src/java.base/share/classes/java/lang/invoke/VarForm.java line 130: >> >>> 128: } catch (NoSuchMethodException | IllegalAccessException e) { >>> 129: throw new UnsupportedOperationException(); >>> 130: } >> >

Re: RFR: 8265135: Reduce work initializing VarForms

2021-04-13 Thread Claes Redestad
On Tue, 13 Apr 2021 23:09:12 GMT, Paul Sandoz wrote: >> This patch reduces work done initializing VarForms - mostly observed when >> loading each VarHandle implementation class. >> >> - Lazily resolve MemberNames. >> - Streamline MethodType creation. This reduces the number of MethodTypes >> c

Re: RFR: JDK-8265078: jpackage tests on Windows leave large temp files [v3]

2021-04-13 Thread Kevin Rushforth
On Tue, 13 Apr 2021 22:50:12 GMT, Andy Herrick wrote: >> two changes: >> One to jpackage, when recursively removing directory, when IOException >> occurs, record it and continue (deleting as much as possible) before >> throwing the exception. >> The other to tests, when running jpackage via Pro

Re: RFR: 8265135: Reduce work initializing VarForms

2021-04-13 Thread Paul Sandoz
On Tue, 13 Apr 2021 18:11:37 GMT, Claes Redestad wrote: > This patch reduces work done initializing VarForms - mostly observed when > loading each VarHandle implementation class. > > - Lazily resolve MemberNames. > - Streamline MethodType creation. This reduces the number of MethodTypes > crea

Re: RFR: JDK-8265078: jpackage tests on Windows leave large temp files [v3]

2021-04-13 Thread Andy Herrick
> two changes: > One to jpackage, when recursively removing directory, when IOException > occurs, record it and continue (deleting as much as possible) before throwing > the exception. > The other to tests, when running jpackage via ProcessBuilder.execute(), set > the "TMP" environment variable

Re: RFR: 8263087: Add a MethodHandle combinator that switches over a set of MethodHandles

2021-04-13 Thread Jorn Vernee
On Tue, 13 Apr 2021 22:00:57 GMT, Remi Forax wrote: > About your benchmark, did you test with some strings going into "default", > because it is usually in that case that you need a proper lookup switch, another way to say it is that, your results are too good when you use a cascade of guardWit

Re: RFR: 8263087: Add a MethodHandle combinator that switches over a set of MethodHandles

2021-04-13 Thread Jorn Vernee
On Tue, 13 Apr 2021 22:00:57 GMT, Remi Forax wrote: > About your benchmark, did you test with some strings going into "default", > because it is usually in that case that you need a proper lookup switch, another way to say it is that, your results are too good when you use a cascade of guardWit

RFR: 8265174: Update Class.getDeclaredMethods to discuss synethetic and bridge methods

2021-04-13 Thread Joe Darcy
The results from Class.getDeclaredMethods can include bridge and other synthetic methods, which can be unexpected by users (JDK-6815786, JDK-8142904) and appear to be inherited methods. The javadoc for Class.getDeclaredMethods should be updated to explicitly mention the possibility of synthetic

Re: RFR: 8263087: Add a MethodHandle combinator that switches over a set of MethodHandles

2021-04-13 Thread Remi Forax
- Mail original - > De: "Jorn Vernee" > À: "core-libs-dev" > Envoyé: Mardi 13 Avril 2021 16:59:58 > Objet: Re: RFR: 8263087: Add a MethodHandle combinator that switches over a > set of MethodHandles > On Thu, 8 Apr 2021 18:51:21 GMT, Jorn Vernee wrote: > >> This patch adds a `tableSwi

Re: [External] : Re: RFR: 8263087: Add a MethodHandle combinator that switches over a set of MethodHandles

2021-04-13 Thread Remi Forax
> De: "John Rose" > À: "Remi Forax" > Cc: "Jorn Vernee" , "core-libs-dev" > > Envoyé: Samedi 10 Avril 2021 01:43:49 > Objet: Re: [External] : Re: RFR: 8263087: Add a MethodHandle combinator that > switches over a set of MethodHandles > On Apr 9, 2021, at 4:00 PM, John Rose < [ mailto:john.r.r..

Re: RFR: 8265019 : Update tests for additional TestNG test permissions [v2]

2021-04-13 Thread Brian Burkhalter
On Tue, 13 Apr 2021 18:56:22 GMT, Lance Andersen wrote: >> Hi all, >> >> Please review the following patch which adds additional permissions needed >> for when JTREG upgrades to a newer version of TestNG. >> >> Best, >> Lance > > Lance Andersen has updated the pull request incrementally with o

Integrated: 8263157: [macos]: java.library.path is being set incorrectly

2021-04-13 Thread Alexander Matveev
On Mon, 12 Apr 2021 20:18:46 GMT, Alexander Matveev wrote: > This is regression from JDK-8242302. Fixed by setting java.library.path to > same values as it was before JDK-8242302. This pull request has now been integrated. Changeset: 55d56495 Author:Alexander Matveev URL: https://g

Re: RFR: 8264208: Console charset API [v6]

2021-04-13 Thread Joe Wang
On Tue, 13 Apr 2021 19:59:30 GMT, Naoto Sato wrote: >> Please review the changes for the subject issue. This has been suggested in >> a recent discussion thread for the JEP 400 >> [[1](https://mail.openjdk.java.net/pipermail/core-libs-dev/2021-March/075214.html)]. >> A CSR has also been draft

Re: RFR: 8265019 : Update tests for additional TestNG test permissions [v2]

2021-04-13 Thread Naoto Sato
On Tue, 13 Apr 2021 18:56:22 GMT, Lance Andersen wrote: >> Hi all, >> >> Please review the following patch which adds additional permissions needed >> for when JTREG upgrades to a newer version of TestNG. >> >> Best, >> Lance > > Lance Andersen has updated the pull request incrementally with o

Re: RFR: 8264806: Remove the experimental JIT compiler [v3]

2021-04-13 Thread Doug Simon
On Mon, 12 Apr 2021 22:10:06 GMT, Vladimir Kozlov wrote: >> As part of [JEP 410](http://openjdk.java.net/jeps/410) remove code related >> to Java-based JIT compiler (Graal) from JDK: >> >> - `jdk.internal.vm.compiler` — the Graal compiler >> - `jdk.internal.vm.compiler.management` — Graal's `M

Re: RFR: JDK-8265078: jpackage tests on Windows leave large temp files [v2]

2021-04-13 Thread Kevin Rushforth
On Tue, 13 Apr 2021 21:05:26 GMT, Andy Herrick wrote: >> two changes: >> One to jpackage, when recursively removing directory, when IOException >> occurs, record it and continue (deleting as much as possible) before >> throwing the exception. >> The other to tests, when running jpackage via Pro

Re: RFR: JDK-8265078: jpackage tests on Windows leave large temp files [v2]

2021-04-13 Thread Andy Herrick
> two changes: > One to jpackage, when recursively removing directory, when IOException > occurs, record it and continue (deleting as much as possible) before throwing > the exception. > The other to tests, when running jpackage via ProcessBuilder.execute(), set > the "TMP" environment variable

Re: RFR: JDK-8265078: jpackage tests on Windows leave large temp files

2021-04-13 Thread Andy Herrick
On Tue, 13 Apr 2021 20:31:38 GMT, Andy Herrick wrote: >> That seems like overkill. walkFileTree must call visitFile, >> preVisitDirectory, and postVisitDirectory synchronously, because their >> return value tells walkFileTree where to go next. > > I can use AtomicReference instead of Array to

Re: RFR: JDK-8265078: jpackage tests on Windows leave large temp files

2021-04-13 Thread Andy Herrick
On Tue, 13 Apr 2021 20:26:56 GMT, Andy Herrick wrote: >> src/jdk.jpackage/share/classes/jdk/jpackage/internal/IOUtils.java line 59: >> >>> 57: >>> 58: public static void deleteRecursive(Path directory) throws >>> IOException { >>> 59: final IOException [] exception = { (IOException

Re: RFR: JDK-8265078: jpackage tests on Windows leave large temp files

2021-04-13 Thread Andy Herrick
On Tue, 13 Apr 2021 19:48:24 GMT, Alexey Semenyuk wrote: >> two changes: >> One to jpackage, when recursively removing directory, when IOException >> occurs, record it and continue (deleting as much as possible) before >> throwing the exception. >> The other to tests, when running jpackage via

Re: RFR: 8264208: Console charset API [v6]

2021-04-13 Thread Naoto Sato
> Please review the changes for the subject issue. This has been suggested in > a recent discussion thread for the JEP 400 > [[1](https://mail.openjdk.java.net/pipermail/core-libs-dev/2021-March/075214.html)]. > A CSR has also been drafted, and comments are welcome > [[2](https://bugs.openjdk.

Re: RFR: 8264208: Console charset API [v4]

2021-04-13 Thread Naoto Sato
On Tue, 13 Apr 2021 19:30:53 GMT, Joe Wang wrote: >> Although the code path is different, the logic to determine the encoding is >> not changed, as `sun.stdout/err.encoding` are only set if the VM is invoked >> from a terminal (in fact, there's a bug where they aren't set even in a >> terminal

Re: RFR: JDK-8265078: jpackage tests on Windows leave large temp files

2021-04-13 Thread Alexey Semenyuk
On Tue, 13 Apr 2021 18:57:20 GMT, Andy Herrick wrote: > two changes: > One to jpackage, when recursively removing directory, when IOException > occurs, record it and continue (deleting as much as possible) before throwing > the exception. > The other to tests, when running jpackage via ProcessB

Re: RFR: 8264208: Console charset API [v4]

2021-04-13 Thread Joe Wang
On Tue, 13 Apr 2021 18:24:55 GMT, Naoto Sato wrote: >> src/java.base/share/classes/java/lang/System.java line 2020: >> >>> 2018: setIn0(new BufferedInputStream(fdIn)); >>> 2019: setOut0(newPrintStream(fdOut, cs)); >>> 2020: setErr0(newPrintStream(fdErr, cs)); >> >> It wa

RFR: JDK-8265078: jpackage tests on Windows leave large temp files

2021-04-13 Thread Andy Herrick
two changes: One to jpackage, when recursively removing directory, when IOException occurs, record it and continue (deleting as much as possible) before throwing the exception. The other to tests, when running jpackage via ProcessBuilder.execute(), set the "TMP" environment variable to the curre

Re: RFR: 8265019 : Update tests for additional TestNG test permissions [v2]

2021-04-13 Thread Lance Andersen
> Hi all, > > Please review the following patch which adds additional permissions needed > for when JTREG upgrades to a newer version of TestNG. > > Best, > Lance Lance Andersen has updated the pull request incrementally with one additional commit since the last revision: TestNG updates Per

Re: RFR: 8265019 : Update tests for additional TestNG test permissions

2021-04-13 Thread Alan Bateman
On Tue, 13 Apr 2021 18:01:49 GMT, Lance Andersen wrote: > Hi all, > > Please review the following patch which adds additional permissions needed > for when JTREG upgrades to a newer version of TestNG. > > Best, > Lance test/jdk/java/lang/ProcessHandle/PermissionTest.java line 215: > 213:

Re: RFR: 8264208: Console charset API [v4]

2021-04-13 Thread Naoto Sato
On Tue, 13 Apr 2021 13:04:17 GMT, Alan Bateman wrote: > 1. I think method name "charset()" is too short. It's not called frequently. > This method name should explain functionality. As for this one, I am open for suggestions. I thought `consoel()` was concise, and analogous to `Charset.default

Re: RFR: 8264208: Console charset API [v4]

2021-04-13 Thread Naoto Sato
On Tue, 13 Apr 2021 02:34:15 GMT, Joe Wang wrote: >> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Reverted PrintStream changes > > src/java.base/share/classes/java/lang/System.java line 2020: > >> 2018: setIn0(new

RFR: 8265135: Reduce work initializing VarForms

2021-04-13 Thread Claes Redestad
This patch reduces work done initializing VarForms - mostly observed when loading each VarHandle implementation class. - Lazily resolve MemberNames. - Streamline MethodType creation. This reduces the number of MethodTypes created. Net effect is a reduction in bytecode executed per VH class by

RFR: 8265019 : Update tests for additional TestNG test permissions

2021-04-13 Thread Lance Andersen
Hi all, Please review the following patch which adds additional permissions needed for when JTREG upgrades to a newer version of TestNG. Best, Lance - Commit messages: - TestNG updates Changes: https://git.openjdk.java.net/jdk/pull/3471/files Webrev: https://webrevs.openjdk.java

Re: RFR: 8264208: Console charset API [v5]

2021-04-13 Thread Naoto Sato
> Please review the changes for the subject issue. This has been suggested in > a recent discussion thread for the JEP 400 > [[1](https://mail.openjdk.java.net/pipermail/core-libs-dev/2021-March/075214.html)]. > A CSR has also been drafted, and comments are welcome > [[2](https://bugs.openjdk.

Re: RFR: 8262108: SimpleDateFormat formatting broken for sq_MK Locale [v2]

2021-04-13 Thread Naoto Sato
On Tue, 13 Apr 2021 15:03:28 GMT, Jaikiran Pai wrote: >> Can I please get a review for this proposed fix for >> https://bugs.openjdk.java.net/browse/JDK-8262108? >> >> As noted in a comment in that issue, the bug relates to the return value of >> `Calendar.getDisplayNames` for the `Calendar.AM

Re: RFR: 8264806: Remove the experimental JIT compiler [v2]

2021-04-13 Thread Vladimir Kozlov
On Tue, 13 Apr 2021 09:30:23 GMT, Doug Simon wrote: >> We would definitely like to be able to continue testing of GraalVM with the >> JDK set of jtreg tests. So keeping `Compiler::isGraalEnabled()` working like >> it does today is important. > >> @dougxc I restored Compiler::isGraalEnabled(). >

Re: RFR: 8265137: java.util.Random suddenly has new public methods nowhere documented

2021-04-13 Thread Uwe Schindler
On Tue, 13 Apr 2021 16:33:21 GMT, Jim Laskey wrote: > Move makeXXXSpilterator from public (@hidden) to protected. No API ch This looks exactly like my proposed solution! +1 Thanks! Just my question: Is `@hidden` not needed to remove the documentation from protected method? Or is this automati

RFR: 8265137: java.util.Random suddenly has new public methods nowhere documented

2021-04-13 Thread Jim Laskey
Move makeXXXSpilterator from public (@hidden) to protected. No API ch - Commit messages: - Move makeXXXSpilterator from public (@hidden) to protected. No API change. Changes: https://git.openjdk.java.net/jdk/pull/3469/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3469

Re: RFR: 8265079: Implement VarHandle invoker caching [v2]

2021-04-13 Thread Paul Sandoz
On Tue, 13 Apr 2021 12:25:20 GMT, Jorn Vernee wrote: >> This patch implements 2 leftover TODOs for implementing var handle invoker >> MH caching (lambda forms for those were already shared/cached). >> >> This piggybacks on the existing mechanism for method handle invoker caching. >> >> Testing

Re: RFR: 8265075: Improve and simplify Class.resolveName()

2021-04-13 Thread Peter Levart
Hi, Sergey! Have you measured the code change in the java.lang.Class itself or just equivalent code in the JMH test as you show us? The JMH test may show better results as it is compiled to bytecode that uses special invokedynamic-based string concatenation with optimal MH based underlying

Integrated: 8265111: ProblemList java/util/concurrent/locks/Lock/TimedAcquireLeak.java on macosx-aarch64

2021-04-13 Thread Mikael Vidstedt
On Tue, 13 Apr 2021 06:55:33 GMT, Mikael Vidstedt wrote: > Let's problem list java/util/concurrent/locks/Lock/TimedAcquireLeak.java (a > tier1 test) until JDK-8262897 is fixed. This pull request has now been integrated. Changeset: 2aae29c9 Author:Mikael Vidstedt URL: https://git.ope

Re: RFR: 8262108: SimpleDateFormat formatting broken for sq_MK Locale [v2]

2021-04-13 Thread Jaikiran Pai
> Can I please get a review for this proposed fix for > https://bugs.openjdk.java.net/browse/JDK-8262108? > > As noted in a comment in that issue, the bug relates to the return value of > `Calendar.getDisplayNames` for the `Calendar.AM_PM` field. The implementation > has started returning inval

Re: RFR: 8263087: Add a MethodHandle combinator that switches over a set of MethodHandles

2021-04-13 Thread Jorn Vernee
On Thu, 8 Apr 2021 18:51:21 GMT, Jorn Vernee wrote: > This patch adds a `tableSwitch` combinator that can be used to switch over a > set of method handles given an index, with a fallback in case the index is > out of bounds, much like the `tableswitch` bytecode. Here is a description of > how

Re: RFR: 8265075: Improve and simplify Class.resolveName()

2021-04-13 Thread Alan Bateman
On Tue, 13 Apr 2021 12:47:50 GMT, Сергей Цыпанов wrote: > In mentioned method this code snippet > > int len = baseName.length() + 1 + name.length(); > StringBuilder sb = new StringBuilder(len); > name = sb.append(baseName.replace('.', '/')) > .append('/') > .append(name) >

Re: RFR: 8264208: Console charset API [v4]

2021-04-13 Thread Alan Bateman
On Tue, 13 Apr 2021 12:54:51 GMT, Ichiroh Takiguchi wrote: > 1. I think method name "charset()" is too short. It's not called frequently. > This method name should explain functionality. > 2. Sometimes stderr may be redirected to stdout by shell. Why do we need to > set different encodings for

Re: RFR: 8264208: Console charset API [v4]

2021-04-13 Thread Ichiroh Takiguchi
On Mon, 12 Apr 2021 23:01:24 GMT, Naoto Sato wrote: >> Please review the changes for the subject issue. This has been suggested in >> a recent discussion thread for the JEP 400 >> [[1](https://mail.openjdk.java.net/pipermail/core-libs-dev/2021-March/075214.html)]. >> A CSR has also been draft

Re: RFR: 8265111: ProblemList java/util/concurrent/locks/Lock/TimedAcquireLeak.java on macosx-aarch64

2021-04-13 Thread Harold Seigel
On Tue, 13 Apr 2021 06:55:33 GMT, Mikael Vidstedt wrote: > Let's problem list java/util/concurrent/locks/Lock/TimedAcquireLeak.java (a > tier1 test) until JDK-8262897 is fixed. Looks good and trivial. Harold - Marked as reviewed by hseigel (Reviewer). PR: https://git.openjdk.java

RFR: 8265075: Improve and simplify Class.resolveName()

2021-04-13 Thread Сергей Цыпанов
In mentioned method this code snippet int len = baseName.length() + 1 + name.length(); StringBuilder sb = new StringBuilder(len); name = sb.append(baseName.replace('.', '/')) .append('/') .append(name) .toString(); can be simplified with performance improvement as name =

Re: RFR: 8263157: [macos]: java.library.path is being set incorrectly

2021-04-13 Thread Andy Herrick
On Mon, 12 Apr 2021 20:18:46 GMT, Alexander Matveev wrote: > This is regression from JDK-8242302. Fixed by setting java.library.path to > same values as it was before JDK-8242302. Marked as reviewed by herrick (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/3443

Re: RFR: 8265079: Implement VarHandle invoker caching [v2]

2021-04-13 Thread Jorn Vernee
> This patch implements 2 leftover TODOs for implementing var handle invoker MH > caching (lambda forms for those were already shared/cached). > > This piggybacks on the existing mechanism for method handle invoker caching. > > Testing: Local testing `java/lang/invoke` tests. Tier 1-3 > > Thank

Re: RFR: 8265079: Implement VarHandle invoker caching

2021-04-13 Thread Jorn Vernee
On Mon, 12 Apr 2021 16:24:37 GMT, Jorn Vernee wrote: > This patch implements 2 leftover TODOs for implementing var handle invoker MH > caching (lambda forms for those were already shared/cached). > > This piggybacks on the existing mechanism for method handle invoker caching. > > Testing: Loca

Re: RFR: 8262108: SimpleDateFormat formatting broken for sq_MK Locale

2021-04-13 Thread Jaikiran Pai
On Tue, 13 Apr 2021 11:42:41 GMT, Jaikiran Pai wrote: > Can I please get a review for this proposed fix for > https://bugs.openjdk.java.net/browse/JDK-8262108? > > As noted in a comment in that issue, the bug relates to the return value of > `Calendar.getDisplayNames` for the `Calendar.AM_PM`

RFR: 8262108: SimpleDateFormat formatting broken for sq_MK Locale

2021-04-13 Thread Jaikiran Pai
Can I please get a review for this proposed fix for https://bugs.openjdk.java.net/browse/JDK-8262108? As noted in a comment in that issue, the bug relates to the return value of `Calendar.getDisplayNames` for the `Calendar.AM_PM` field. The implementation has started returning invalid values fo

Re: RFR: 8262108: SimpleDateFormat formatting broken for sq_MK Locale

2021-04-13 Thread Jaikiran Pai
On Tue, 13 Apr 2021 11:42:41 GMT, Jaikiran Pai wrote: > Can I please get a review for this proposed fix for > https://bugs.openjdk.java.net/browse/JDK-8262108? > > As noted in a comment in that issue, the bug relates to the return value of > `Calendar.getDisplayNames` for the `Calendar.AM_PM`

Re: RFR: 8265079: Implement VarHandle invoker caching

2021-04-13 Thread Vladimir Ivanov
On Mon, 12 Apr 2021 16:24:37 GMT, Jorn Vernee wrote: > This patch implements 2 leftover TODOs for implementing var handle invoker MH > caching (lambda forms for those were already shared/cached). > > This piggybacks on the existing mechanism for method handle invoker caching. > > Testing: Loca

Re: RFR: 8048199: Replace anonymous inner classes with lambdas, where applicable, in JNDI [v3]

2021-04-13 Thread Daniel Fuchs
On Tue, 13 Apr 2021 10:04:19 GMT, Conor Cleary wrote: >> ### Description >> This fix is part of a previous effort to both cleanup/modernise JNDI code, >> the details of which can be seen in >> [JDK-8048091](https://bugs.openjdk.java.net/browse/JDK-8048091). A number >> JNDI methods under `java

Re: RFR: 8265111: ProblemList java/util/concurrent/locks/Lock/TimedAcquireLeak.java on macosx-aarch64

2021-04-13 Thread Anton Kozlov
On Tue, 13 Apr 2021 06:55:33 GMT, Mikael Vidstedt wrote: > Let's problem list java/util/concurrent/locks/Lock/TimedAcquireLeak.java (a > tier1 test) until JDK-8262897 is fixed. Marked as reviewed by akozlov (no project role). - PR: https://git.openjdk.java.net/jdk/pull/3452

Re: RFR: 8265061: Simplify MethodHandleNatives::canBeCalledVirtual

2021-04-13 Thread Claes Redestad
On Mon, 12 Apr 2021 11:47:43 GMT, Jorn Vernee wrote: >> Desugaring the single-case switch in MethodHandleNatives::canBeCalledVirtual >> is a cleanup and minimal startup improvement on apps spinning up >> MethodHandles. > > Marked as reviewed by jvernee (Committer). @JornVernee @mlchung - thank

Integrated: 8265061: Simplify MethodHandleNatives::canBeCalledVirtual

2021-04-13 Thread Claes Redestad
On Mon, 12 Apr 2021 10:45:20 GMT, Claes Redestad wrote: > Desugaring the single-case switch in MethodHandleNatives::canBeCalledVirtual > is a cleanup and minimal startup improvement on apps spinning up > MethodHandles. This pull request has now been integrated. Changeset: 7006070f Author:

Re: RFR: 8048199: Replace anonymous inner classes with lambdas, where applicable, in JNDI [v3]

2021-04-13 Thread Aleksei Efimov
On Tue, 13 Apr 2021 10:04:19 GMT, Conor Cleary wrote: >> ### Description >> This fix is part of a previous effort to both cleanup/modernise JNDI code, >> the details of which can be seen in >> [JDK-8048091](https://bugs.openjdk.java.net/browse/JDK-8048091). A number >> JNDI methods under `java

Re: RFR: 8265079: Implement VarHandle invoker caching

2021-04-13 Thread Claes Redestad
On Mon, 12 Apr 2021 16:24:37 GMT, Jorn Vernee wrote: > This patch implements 2 leftover TODOs for implementing var handle invoker MH > caching (lambda forms for those were already shared/cached). > > This piggybacks on the existing mechanism for method handle invoker caching. > > Testing: Loca

RFR: 8265079: Implement VarHandle invoker caching

2021-04-13 Thread Jorn Vernee
This patch implements 2 leftover TODOs for implementing var handle invoker MH caching (lambda forms for those were already shared/cached). This piggybacks on the existing mechanism for method handle invoker caching. Testing: Local testing `java/lang/invoke` tests. Tier 1-3 Thanks, Jorn ---

Re: RFR: 8048199: Replace anonymous inner classes with lambdas, where applicable, in JNDI [v2]

2021-04-13 Thread Daniel Fuchs
On Tue, 13 Apr 2021 10:00:51 GMT, Conor Cleary wrote: >> Good idea, also would fit in with the style of the method just after, >> `priviligedHasNext()` as that also uses a functional interface. > > Changes included as described in commit > [5d6ecd3](https://github.com/openjdk/jdk/pull/3416/comm

Re: RFR: 8048199: Replace anonymous inner classes with lambdas, where applicable, in JNDI [v3]

2021-04-13 Thread Conor Cleary
> ### Description > This fix is part of a previous effort to both cleanup/modernise JNDI code, > the details of which can be seen in > [JDK-8048091](https://bugs.openjdk.java.net/browse/JDK-8048091). A number > JNDI methods under `java.naming` use Anonymous Inner Classes in cases where > only a

Re: RFR: 8048199: Replace anonymous inner classes with lambdas, where applicable, in JNDI [v2]

2021-04-13 Thread Conor Cleary
On Tue, 13 Apr 2021 09:34:15 GMT, Conor Cleary wrote: >> src/java.naming/share/classes/javax/naming/ldap/StartTlsRequest.java line >> 223: >> >>> 221: */ >>> 222: private final ClassLoader getContextClassLoader() { >>> 223: PrivilegedAction pa = () -> >>> Thread.currentThread(

Re: RFR: 8048199: Replace anonymous inner classes with lambdas, where applicable, in JNDI [v2]

2021-04-13 Thread Conor Cleary
On Mon, 12 Apr 2021 16:44:16 GMT, Aleksei Efimov wrote: >> Conor Cleary has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - Update copyright headers >> - Tidied up lambdas > > src/java.naming/share/classes/javax/naming/ldap/StartTlsReques

Re: RFR: 8264806: Remove the experimental JIT compiler [v2]

2021-04-13 Thread Doug Simon
On Sun, 11 Apr 2021 10:25:47 GMT, Doug Simon wrote: >> Vladimir Kozlov 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 three additional >> commi

RFR: 8265111: ProblemList java/util/concurrent/locks/Lock/TimedAcquireLeak.java on macosx-aarch64

2021-04-13 Thread Mikael Vidstedt
Let's problem list java/util/concurrent/locks/Lock/TimedAcquireLeak.java (a tier1 test) until JDK-8262897 is fixed. - Commit messages: - 8265111: ProblemList java/util/concurrent/locks/Lock/TimedAcquireLeak.java on macosx-aarch64 Changes: https://git.openjdk.java.net/jdk/pull/3452