Re: RFR: 8265173: [test] divert spurious log output away from stream under test in ProcessBuilder Basic test

2021-04-14 Thread David Holmes
On Wed, 14 Apr 2021 14:08:50 GMT, Roger Riggs wrote: > The most recent intermittent failure showed that the error occurred during VM > initialization. > Only the tty output was diverted, but not log output. > Add diversion of log output as well tty output. > > Add `-Xlog:all=warning:stderr`

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

2021-04-14 Thread Naoto Sato
On Thu, 15 Apr 2021 01:57:01 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

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

2021-04-14 Thread Jaikiran Pai
On Wed, 14 Apr 2021 18:01:10 GMT, Naoto Sato wrote: >> Jaikiran Pai has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - Update existing NarrowNamesTest to match expectations >> - Naoto's review suggestion > >

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

2021-04-14 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

RFR: 8263154: [macos] DMG builds have finder errors

2021-04-14 Thread Alexander Matveev
- Issue was reproducible when install-dir points to some invalid location. - Fixed by defaulting DMG drag and drop location to /Applications folder and --install-dir will be ignored with warning for DMG. - I do not see any way to support other valid, but uncommon locations for drag and drop.

Re: Garbage Free Check

2021-04-14 Thread Dalibor Topic
Hi Ralph, I've added an apache-log4j-interest label to the issue. cheers, dalibor topic On 14.04.2021 19:00, Ralph Goers wrote: I don’t have an account in the bug tracking system. Could someone possibly update the issue noted below to indicate that Apache Log4j 2 would also like that

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

2021-04-14 Thread Mandy Chung
On Wed, 14 Apr 2021 11:38:15 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. >> >>

Re: RFR: 8265135: Reduce work initializing VarForms [v5]

2021-04-14 Thread Mandy Chung
On Wed, 14 Apr 2021 21:26:52 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

Re: RFR: 8258794: Support for CLDR version 39

2021-04-14 Thread Erik Joelsson
On Wed, 14 Apr 2021 21:13:51 GMT, Naoto Sato wrote: > Please review the changes to support CLDR version 39. The vast majority of > the changes are purely data changes from Unicode. The only change affected in > logic was in `CLDRLocaleProviderAdapter.java`, where it needed to deal with >

Re: RFR: 8265237: String.join and StringJoiner can be improved further

2021-04-14 Thread Peter Levart
On Wed, 14 Apr 2021 19:54:26 GMT, Florent Guillaume wrote: >> While JDK-8148937 improved StringJoiner class by replacing internal use of >> getChars that copies out characters from String elements into a char[] array >> with StringBuilder which is somehow more optimal, the improvement was >>

Re: RFR: 8258794: Support for CLDR version 39

2021-04-14 Thread Naoto Sato
On Wed, 14 Apr 2021 21:13:51 GMT, Naoto Sato wrote: > Please review the changes to support CLDR version 39. The vast majority of > the changes are purely data changes from Unicode. The only change affected in > logic was in `CLDRLocaleProviderAdapter.java`, where it needed to deal with >

Re: RFR: 8258794: Support for CLDR version 39

2021-04-14 Thread Joe Wang
On Wed, 14 Apr 2021 21:13:51 GMT, Naoto Sato wrote: > Please review the changes to support CLDR version 39. The vast majority of > the changes are purely data changes from Unicode. The only change affected in > logic was in `CLDRLocaleProviderAdapter.java`, where it needed to deal with >

Re: RFR: 8265135: Reduce work initializing VarForms [v5]

2021-04-14 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

RFR: 8258794: Support for CLDR version 39

2021-04-14 Thread Naoto Sato
Please review the changes to support CLDR version 39. The vast majority of the changes are purely data changes from Unicode. The only change affected in logic was in `CLDRLocaleProviderAdapter.java`, where it needed to deal with CLDR's Norwegian language code switch

Re: RFR: 8265237: String.join and StringJoiner can be improved further

2021-04-14 Thread Claes Redestad
On Wed, 14 Apr 2021 18:58:57 GMT, Peter Levart wrote: > While JDK-8148937 improved StringJoiner class by replacing internal use of > getChars that copies out characters from String elements into a char[] array > with StringBuilder which is somehow more optimal, the improvement was > marginal

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

2021-04-14 Thread Andy Herrick
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

Re: RFR: 8265237: String.join and StringJoiner can be improved further

2021-04-14 Thread Florent Guillaume
On Wed, 14 Apr 2021 18:58:57 GMT, Peter Levart wrote: > While JDK-8148937 improved StringJoiner class by replacing internal use of > getChars that copies out characters from String elements into a char[] array > with StringBuilder which is somehow more optimal, the improvement was > marginal

Re: RFR: 8265237: String.join and StringJoiner can be improved further

2021-04-14 Thread Peter Levart
On Wed, 14 Apr 2021 18:58:57 GMT, Peter Levart wrote: > While JDK-8148937 improved StringJoiner class by replacing internal use of > getChars that copies out characters from String elements into a char[] array > with StringBuilder which is somehow more optimal, the improvement was > marginal

RFR: 8265237: String.join and StringJoiner can be improved further

2021-04-14 Thread Peter Levart
While JDK-8148937 improved StringJoiner class by replacing internal use of getChars that copies out characters from String elements into a char[] array with StringBuilder which is somehow more optimal, the improvement was marginal in speed (0% ... 10%) and mainly for smaller strings, while GC

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

2021-04-14 Thread Naoto Sato
On Wed, 14 Apr 2021 17:14:55 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

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

2021-04-14 Thread Kevin Rushforth
On Wed, 14 Apr 2021 17:36:21 GMT, Alexey Semenyuk wrote: > postVisitDirectory() and visitFile() methods can be potentially called > concurrently by walkFileTree() I don't think they can. > Javadoc ... doesn't say anything about synchronization, so I think it is fair > to assume it is not

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

2021-04-14 Thread Jim Laskey
> Move makeXXXSpilterator from public (@hidden) to protected. No API ch Jim Laskey has updated the pull request incrementally with one additional commit since the last revision: change static final from 'proxy' to 'PROXY' - Changes: - all:

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

2021-04-14 Thread Alexey Semenyuk
On Tue, 13 Apr 2021 21:10:56 GMT, Kevin Rushforth wrote: > Are you sure you need an `AtomicReference` to set the exception? I don't see > any use of multiple threads, but I might be missing something. If you do need > it, you need to fix the order of arguments. `postVisitDirectory()` and

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

2021-04-14 Thread Alexey Semenyuk
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

RFR: 8265208: [JEP-356] : SplittableRandom and SplittableGenerators - splits() methods does not throw NullPointerException when source is null

2021-04-14 Thread Jim Laskey
Add check for null. - Commit messages: - Check for null source - Make makeXXXSpliterator final - Move makeXXXSpilterator from public (@hidden) to protected. No API change. Changes: https://git.openjdk.java.net/jdk/pull/3495/files Webrev:

Re: RFR: 8265135: Reduce work initializing VarForms [v4]

2021-04-14 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

Re: RFR: 8265135: Reduce work initializing VarForms [v3]

2021-04-14 Thread Mandy Chung
On Wed, 14 Apr 2021 11:35:14 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

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

2021-04-14 Thread Rémi Forax
On Wed, 14 Apr 2021 12:27:55 GMT, Jim Laskey wrote: >> Move makeXXXSpilterator from public (@hidden) to protected. No API ch > > Jim Laskey has updated the pull request incrementally with one additional > commit since the last revision: > > Make makeXXXSpliterator final I don't see the

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

2021-04-14 Thread Jaikiran Pai
On Wed, 14 Apr 2021 17:14:55 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

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

2021-04-14 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 >

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

2021-04-14 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

Re: Garbage Free Check

2021-04-14 Thread Ralph Goers
I don’t have an account in the bug tracking system. Could someone possibly update the issue noted below to indicate that Apache Log4j 2 would also like that enhancement? Thanks, Ralph > On Apr 5, 2021, at 1:26 PM, Roger Riggs wrote: > > Hi, > > Java does not have a data type with enough

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

2021-04-14 Thread Uwe Schindler
On Wed, 14 Apr 2021 12:27:55 GMT, Jim Laskey wrote: >> Move makeXXXSpilterator from public (@hidden) to protected. No API ch > > Jim Laskey has updated the pull request incrementally with one additional > commit since the last revision: > > Make makeXXXSpliterator final To me this looks

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

2021-04-14 Thread Naoto Sato
On Wed, 14 Apr 2021 15:03:19 GMT, Alan Bateman wrote: >> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Added comment to System.out/err init. > > src/java.base/share/classes/java/lang/System.java line 166: > >> 164: *

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

2021-04-14 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 >

Re: RFR: 8262883: doccheck: Broken links in java.base

2021-04-14 Thread Michael McMahon
On Wed, 14 Apr 2021 15:27:36 GMT, Alan Bateman wrote: >> Hi, >> >> Could I get the following trivial doc changes reviewed please, caused by: >> >> - broken tags in MethodHandles referring to package.html instead of >> package-summary.html >> >> - references to a package level #unixdomain

Integrated: 8264976: Minor numeric bug in AbstractSplittableWithBrineGenerator.makeSplitsSpliterator

2021-04-14 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) { > ... >

Integrated: 8265174: Update Class.getDeclaredMethods to discuss synthetic and bridge methods

2021-04-14 Thread Joe Darcy
On Tue, 13 Apr 2021 22:18:58 GMT, Joe Darcy wrote: > 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

Re: RFR: 8262883: doccheck: Broken links in java.base

2021-04-14 Thread Roger Riggs
On Wed, 14 Apr 2021 14:03:01 GMT, Michael McMahon wrote: > Hi, > > Could I get the following trivial doc changes reviewed please, caused by: > > - broken tags in MethodHandles referring to package.html instead of > package-summary.html > > - references to a package level #unixdomain anchor

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

2021-04-14 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

Integrated: 8265019 : Update tests for additional TestNG test permissions

2021-04-14 Thread Lance Andersen
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 This pull request has now been integrated. Changeset: ffb37718 Author:

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

2021-04-14 Thread Jim Laskey
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: 8262883: doccheck: Broken links in java.base

2021-04-14 Thread Alan Bateman
On Wed, 14 Apr 2021 14:03:01 GMT, Michael McMahon wrote: > Hi, > > Could I get the following trivial doc changes reviewed please, caused by: > > - broken tags in MethodHandles referring to package.html instead of > package-summary.html > > - references to a package level #unixdomain anchor

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

2021-04-14 Thread Paul Sandoz
On Wed, 14 Apr 2021 11:38:15 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. >> >>

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

2021-04-14 Thread Paul Sandoz
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 [v3]

2021-04-14 Thread Paul Sandoz
On Wed, 14 Apr 2021 11:31:55 GMT, Claes Redestad wrote: >> No, since VarHandles are not publicly extensible, the exception should not >> occur unless something has gone very wrong (the correspondence between >> access mode and implementing method is broken). > > Unfortunately the change to

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

2021-04-14 Thread Alan Bateman
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

Integrated: 8262883: doccheck: Broken links in java.base

2021-04-14 Thread Michael McMahon
On Wed, 14 Apr 2021 14:03:01 GMT, Michael McMahon wrote: > Hi, > > Could I get the following trivial doc changes reviewed please, caused by: > > - broken tags in MethodHandles referring to package.html instead of > package-summary.html > > - references to a package level #unixdomain anchor

Re: RFR: 8203359: Container level resources events [v8]

2021-04-14 Thread Severin Gehwolf
On Wed, 14 Apr 2021 12:03:12 GMT, Jaroslav Bachorik wrote: >> src/jdk.jfr/share/classes/jdk/jfr/events/ContainerMemoryUsageEvent.java line >> 46: >> >>> 44: public final class ContainerMemoryUsageEvent extends AbstractJDKEvent { >>> 45: @Label("Memory Pressure") >>> 46:

Re: RFR: 8262883: doccheck: Broken links in java.base

2021-04-14 Thread Lance Andersen
On Wed, 14 Apr 2021 14:03:01 GMT, Michael McMahon wrote: > Hi, > > Could I get the following trivial doc changes reviewed please, caused by: > > - broken tags in MethodHandles referring to package.html instead of > package-summary.html > > - references to a package level #unixdomain anchor

RFR: 8265173: [test] divert spurious log output away from stream under test in ProcessBuilder Basic test

2021-04-14 Thread Roger Riggs
The most recent intermittent failure showed that the error occurred during VM initialization. Only the tty output was diverted, but not log output. Add diversion of log output as well tty output. Add `-Xlog:all=warning:stderr` and `-Xlog:all=warning:stdout` to correspond to

RFR: 8262883: doccheck: Broken links in java.base

2021-04-14 Thread Michael McMahon
Hi, Could I get the following trivial doc changes reviewed please, caused by: - broken tags in MethodHandles referring to package.html instead of package-summary.html - references to a package level #unixdomain anchor that no longer exists. - a tag missing a "../" in SocketChannel Thanks,

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

2021-04-14 Thread Сергей Цыпанов
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) >

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

2021-04-14 Thread Сергей Цыпанов
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: 8265075: Improve and simplify Class.resolveName()

2021-04-14 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: JDK-8265078: jpackage tests on Windows leave large temp files [v3]

2021-04-14 Thread Andy Herrick
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

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

2021-04-14 Thread Jim Laskey
> Move makeXXXSpilterator from public (@hidden) to protected. No API ch Jim Laskey has updated the pull request incrementally with one additional commit since the last revision: Make makeXXXSpliterator final - Changes: - all: https://git.openjdk.java.net/jdk/pull/3469/files

Re: RFR: 8203359: Container level resources events [v8]

2021-04-14 Thread Jaroslav Bachorik
On Wed, 14 Apr 2021 10:25:09 GMT, Erik Gahlin wrote: >> Jaroslav Bachorik 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 11 additional >>

Re: RFR: 8203359: Container level resources events [v8]

2021-04-14 Thread Jaroslav Bachorik
On Wed, 14 Apr 2021 11:17:14 GMT, Erik Gahlin wrote: >> Jaroslav Bachorik 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 11 additional >>

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

2021-04-14 Thread Claes Redestad
On Wed, 14 Apr 2021 11:38:15 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. >> >>

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

2021-04-14 Thread Сергей Цыпанов
On Wed, 14 Apr 2021 11:41:09 GMT, Alan Bateman 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: 8265075: Improve and simplify Class.resolveName()

2021-04-14 Thread Сергей Цыпанов
On Tue, 13 Apr 2021 14:36:39 GMT, Alan Bateman 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: 8265075: Improve and simplify Class.resolveName()

2021-04-14 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: 8265079: Implement VarHandle invoker caching [v2]

2021-04-14 Thread Jorn Vernee
On Tue, 13 Apr 2021 15:24:13 GMT, Paul Sandoz wrote: >> Jorn Vernee has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Review comments: >> - Use boolean instead of index for var handle cache > >

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

2021-04-14 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 > >

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

2021-04-14 Thread Сергей Цыпанов
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: 8265135: Reduce work initializing VarForms [v3]

2021-04-14 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

Re: RFR: 8265135: Reduce work initializing VarForms [v3]

2021-04-14 Thread Claes Redestad
On Wed, 14 Apr 2021 00:46:36 GMT, Paul Sandoz wrote: >> Thanks for reviewing! >> >> Is there's a way to provoke this exception through the public API? If not >> then the suggested behavior change seems reasonable. > > No, since VarHandles are not publicly extensible, the exception should not

Re: RFR: 8203359: Container level resources events [v8]

2021-04-14 Thread Erik Gahlin
On Wed, 14 Apr 2021 08:31:55 GMT, Jaroslav Bachorik wrote: >> With this change it becomes possible to surface various cgroup level metrics >> (available via `jdk.internal.platform.Metrics`) as JFR events. >> >> Only a subset of the metrics exposed by `jdk.internal.platform.Metrics` is >>

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

2021-04-14 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: Add back

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

2021-04-14 Thread Lance Andersen
On Apr 14, 2021, at 2:13 AM, Alan Bateman mailto:al...@openjdk.java.net>> wrote: On Tue, 13 Apr 2021 18:56:22 GMT, Lance Andersen mailto:lan...@openjdk.org>> wrote: Hi all, Please review the following patch which adds additional permissions needed for when JTREG upgrades to a newer

Re: RFR: 8265135: Reduce work initializing VarForms [v2]

2021-04-14 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

Re: ObjectMethods seems generating wrong methods for array-type field

2021-04-14 Thread Remi Forax
- Mail original - > De: "Kengo TODA" > À: "core-libs-dev" > Envoyé: Mercredi 14 Avril 2021 11:03:14 > Objet: Re: ObjectMethods seems generating wrong methods for array-type field Hello, > I found that the JLS 16 does not cover the array type record component: >

Re: ObjectMethods seems generating wrong methods for array-type field

2021-04-14 Thread Kengo TODA
I found that the JLS 16 does not cover the array type record component: https://docs.oracle.com/javase/specs/jls/se16/html/jls-8.html#jls-8.10.3 So it could be not a core-lib issue but a JLS issue. Do I need to forward this thread to another mailing list? If so, please let me know which is the

Re: ObjectMethods seems generating wrong methods for array-type field

2021-04-14 Thread Raffaello Giulietti
Hi Kengo, I don't think this is a bug, as records are designed to "act as transparent carriers for immutable data". A record having an array-typed component is far from being immutable because everyone can change the array contents. So you probably shouldn't opt for records for such use

Re: RFR: 8203359: Container level resources events [v7]

2021-04-14 Thread Erik Gahlin
On Wed, 14 Apr 2021 08:28:37 GMT, Jaroslav Bachorik wrote: >> src/jdk.jfr/share/classes/jdk/jfr/internal/instrument/JDKEvents.java line >> 163: >> >>> 161: private static void initializeContainerEvents() { >>> 162: containerMetrics = Container.metrics(); >>> 163: if

Re: RFR: 8203359: Container level resources events [v8]

2021-04-14 Thread Jaroslav Bachorik
> With this change it becomes possible to surface various cgroup level metrics > (available via `jdk.internal.platform.Metrics`) as JFR events. > > Only a subset of the metrics exposed by `jdk.internal.platform.Metrics` is > turned into JFR events to start with. > * CPU related metrics > *

Re: RFR: 8203359: Container level resources events [v7]

2021-04-14 Thread Jaroslav Bachorik
On Mon, 12 Apr 2021 18:53:07 GMT, Erik Gahlin wrote: >> Jaroslav Bachorik has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Remove trailing spaces > > src/jdk.jfr/share/classes/jdk/jfr/internal/instrument/JDKEvents.java line 163: > >>

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

2021-04-14 Thread Joel Borggrén-Franck
On Wed, 14 Apr 2021 02:56:11 GMT, Joe Darcy wrote: >> 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

RFR: 8265136: ZGC: Expose GarbageCollectorMXBeans for both pauses and cycles

2021-04-14 Thread Per Liden
JDK-8240679 introduced a change where the information exposed via the GarbageCollectorMXBean went from being related to the GC pauses to instead be related to the GC cycles. This helped provide more accurate heap usage information. However, some users have noticed that that you no longer get

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

2021-04-14 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

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

2021-04-14 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) { > ... >