Re: RFR: 8315097: Rename createJavaProcessBuilder [v3]

2023-08-30 Thread David Holmes
On Wed, 30 Aug 2023 11:31:20 GMT, Mark Sheppard wrote: > So you could create a single createJavaProcessBuilder with add an additional > parameter boolean addTestOpts e.g. createJavaProcessBuilder(List command, boolean addTestOpts) { ... } @msheppar that is actually where we started, and it was

Re: RFR: 8311220: Optimization for StringLatin UpperLower [v3]

2023-08-30 Thread 温绍锦
On Thu, 6 Jul 2023 05:20:14 GMT, 温绍锦 wrote: >> # Benchmark Result >> >> >> sh make/devkit/createJMHBundle.sh >> bash configure --with-jmh=build/jmh/jars >> make test TEST="micro:java.lang.StringUpperLower.*" >> >> >> >> ## 1. >>

Re: RFR: 8310929: Optimization for Integer.toString [v13]

2023-08-30 Thread 温绍锦
On Tue, 18 Jul 2023 01:49:17 GMT, 温绍锦 wrote: >> Optimization for: >> Integer.toString >> Long.toString >> StringBuilder#append(int) >> >> # Benchmark Result >> >> >> sh make/devkit/createJMHBundle.sh >> bash configure --with-jmh=build/jmh/jars >> make test

Integrated: JDK-8314611: Provide more explicative error message parsing Currencies

2023-08-30 Thread Justin Lu
On Mon, 28 Aug 2023 21:14:53 GMT, Justin Lu wrote: > Please review this PR which updates some exceptions in j.util.Currency to > have an explicit error message (as opposed to nothing). > > The exceptions are thrown when the ISO 4217/3166 currency/country codes are > in an invalid form, or do

Re: RFR: 8315383: jlink SystemModulesPlugin incorrectly parses the options [v2]

2023-08-30 Thread Oliver Kopp
> Fixes https://bugs.openjdk.org/browse/JDK-8315383 Oliver Kopp has updated the pull request incrementally with one additional commit since the last revision: Remove obsolete imports - Changes: - all: https://git.openjdk.org/jdk/pull/15495/files - new:

Re: RFR: 8309622: Re-examine the cache mechanism in BaseLocale [v6]

2023-08-30 Thread Naoto Sato
> This is stemming from the PR: https://github.com/openjdk/jdk/pull/14211 where > aggressive GC can cause NPE in `BaseLocale$Key` class. I refactored the > in-house cache with WeakHashMap, and removed the Key class as it is no longer > needed (thus the original NPE will no longer be possible).

RFR: 8315413: Remove special filtering of Continuation.yield0 in StackWalker

2023-08-30 Thread Mandy Chung
Loom added a special filtering of Continuation.yield0 in stack walker. After the initial implementation, JDK-8304919 marks the yielding and entering methods with `@Hidden` and hidden frames are filtered by stack walker by default. With `@Hidden` the special filtering should not be needed.

Re: RFR: 8309622: Re-examine the cache mechanism in BaseLocale [v5]

2023-08-30 Thread Naoto Sato
On Wed, 30 Aug 2023 06:40:40 GMT, Chen Liang wrote: >> Naoto Sato has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 29 commits: >> >> - Merge branch 'master' of https://git.openjdk.org/jdk into >> JDK-8309622-Cache-BaseLocale >>

Re: RFR: 8314491: Linux: jexec launched via PATH fails to find java [v7]

2023-08-30 Thread Vladimir Petko
> 8314491: Linux: jexec launched via PATH fails to find java Vladimir Petko 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 ten additional commits

Re: RFR: 8315383: jlink SystemModulesPlugin incorrectly parses the options

2023-08-30 Thread Mandy Chung
On Wed, 30 Aug 2023 19:07:53 GMT, Oliver Kopp wrote: > Fixes https://bugs.openjdk.org/browse/JDK-8315383 Looks good. Thanks for catching this. There are a few unused imports in JLinkDedupTestBatchSizeOne.java. Can you remove them as you are in that file? - Marked as reviewed

RFR: 8315383: jlink SystemModulesPlugin incorrectly parses the options

2023-08-30 Thread Oliver Kopp
Fixes https://bugs.openjdk.org/browse/JDK-8315383 - Commit messages: - 8315383: jlink SystemModulesPlugin incorrectly parses the options Changes: https://git.openjdk.org/jdk/pull/15495/files Webrev: https://webrevs.openjdk.org/?repo=jdk=15495=00 Issue:

Re: RFR: 8314604: j.text.DecimalFormat behavior regarding patterns is not clear [v2]

2023-08-30 Thread Naoto Sato
On Tue, 29 Aug 2023 21:42:28 GMT, Justin Lu wrote: >> Please review this PR and [CSR](https://bugs.openjdk.org/browse/JDK-8314607) >> which clarifies the behavior of patterns in regards to the max integer >> digits in j.text.DecimalFormat. >> >> The current specification (of `applyPattern`)

Re: RFR: 8268829: Provide an optimized way to walk the stack with Class object only [v8]

2023-08-30 Thread Mandy Chung
On Wed, 30 Aug 2023 15:31:27 GMT, Alan Bateman wrote: >> src/java.base/share/classes/java/lang/StackStreamFactory.java line 694: >> >>> 692: // no method information is available; should just filter >>> 693: // "Continuation::yield0". >>> 694: return

Re: RFR: 8315097: Rename createJavaProcessBuilder [v3]

2023-08-30 Thread Stefan Karlsson
On Wed, 30 Aug 2023 09:23:55 GMT, Leo Korinth wrote: >> Rename createJavaProcessBuilder so that it is not used by mistake instead of >> createTestJvm. >> >> I have used the following sed script: `find -name "*.java" | xargs -n 1 sed >> -i -e >>

Re: RFR: 6333341: [BI] Doc: java.text.BreakIterator class specification is unclear [v2]

2023-08-30 Thread Naoto Sato
On Tue, 29 Aug 2023 20:09:37 GMT, Justin Lu wrote: >> Please review this PR and [CSR >> ](https://bugs.openjdk.org/browse/JDK-8314974)which clarifies behavior for >> BreakIterator instances when text has not been set. >> >> For example, calling `BreakIterator.getWordInstance().next();` has

Re: RFR: 8315097: Rename createJavaProcessBuilder [v3]

2023-08-30 Thread Leo Korinth
On Wed, 30 Aug 2023 09:23:55 GMT, Leo Korinth wrote: >> Rename createJavaProcessBuilder so that it is not used by mistake instead of >> createTestJvm. >> >> I have used the following sed script: `find -name "*.java" | xargs -n 1 sed >> -i -e >>

Re: RFR: 8268829: Provide an optimized way to walk the stack with Class object only [v8]

2023-08-30 Thread Mandy Chung
On Wed, 30 Aug 2023 07:09:34 GMT, Alan Bateman wrote: > The updated proposal/javadoc looks good, just in two minds on whether the > overload with the varargs should be added. The Set.of factory methods make is > really easy to use the existing getInstance(Set) method. Indeed, Set.of factory

Re: RFR: 8309130: x86_64 AVX512 intrinsics for Arrays.sort methods (int, long, float and double arrays) [v29]

2023-08-30 Thread Srinivas Vamsi Parasa
On Tue, 29 Aug 2023 20:23:24 GMT, Vladimir Kozlov wrote: >> The shared library approach is being followed currently as an initial >> implementation to demonstrate the value of AVX512 sorting. This will be >> followed up in future with support for Windows as well. >> If it is ok with you, the

Re: RFR: 8314094: java/lang/ProcessHandle/InfoTest.java fails on Windows when run as user with Administrator privileges

2023-08-30 Thread Roger Riggs
On Tue, 29 Aug 2023 08:30:10 GMT, Christoph Langer wrote: >> It seems that ProcessHandle.info() returns **DOMAIN/USERNAME** on Windows >> but System.getProperty("user.name") only the **USERNAME**. >> You can get **DOMAIN** and **USERNAME** on **Windows** by calling: >>

Re: RFR: 8268829: Provide an optimized way to walk the stack with Class object only [v8]

2023-08-30 Thread Alan Bateman
On Wed, 30 Aug 2023 15:03:27 GMT, Daniel Fuchs wrote: >> Mandy Chung has updated the pull request incrementally with three additional >> commits since the last revision: >> >> - update mode to be int rather than long >> - update tests >> - Review feedback on javadoc > >

Re: RFR: 8268829: Provide an optimized way to walk the stack with Class object only [v8]

2023-08-30 Thread Daniel Fuchs
On Tue, 29 Aug 2023 20:51:56 GMT, Mandy Chung wrote: >> 8268829: Provide an optimized way to walk the stack with Class object only >> >> `StackWalker::walk` creates one `StackFrame` per frame and the current >> implementation >> allocates one `StackFrameInfo` and one `MemberName` objects per

Re: RFR: 8309130: x86_64 AVX512 intrinsics for Arrays.sort methods (int, long, float and double arrays) [v30]

2023-08-30 Thread Srinivas Vamsi Parasa
On Wed, 30 Aug 2023 08:48:09 GMT, Alan Bateman wrote: >>> > > Hi, We already have correctness tests. See >>> > > test/jdk/java/util/Arrays/Sorting.java >>> > > The latest version you can find in PR >>> > > https://github.com/openjdk/jdk/pull/13568/files >>> > >>> > >>> > Does

Re: RFR: 8315097: Rename createJavaProcessBuilder [v3]

2023-08-30 Thread Roger Riggs
On Wed, 30 Aug 2023 09:23:55 GMT, Leo Korinth wrote: >> Rename createJavaProcessBuilder so that it is not used by mistake instead of >> createTestJvm. >> >> I have used the following sed script: `find -name "*.java" | xargs -n 1 sed >> -i -e >>

Re: RFR: 8309130: x86_64 AVX512 intrinsics for Arrays.sort methods (int, long, float and double arrays) [v30]

2023-08-30 Thread Srinivas Vamsi Parasa
On Wed, 30 Aug 2023 08:48:09 GMT, Alan Bateman wrote: > > Hi Vladimir, Just verified that the test/jdk/java/util/Arrays/Sorting.java > > is triggering the intrinsic without additional flags > > Just to add that Sorting.java has short and long run modes. The default when > running with jtreg

Re: RFR: JDK-8314194: Reusing CyclicBarrier, it should be possible to change the barrierCommand

2023-08-30 Thread chenggwang
On Wed, 30 Aug 2023 13:20:15 GMT, Alan Bateman wrote: > > Hi Can anyone help me to review this PR @sormuras @asotona or any other > > reviewer? > > I think you first need to make a case for changing the CyclicBarrier API as > opposed to dealing with the phases in your BarrierAction or using

Re: RFR: JDK-8314194: Reusing CyclicBarrier, it should be possible to change the barrierCommand

2023-08-30 Thread Alan Bateman
On Wed, 30 Aug 2023 12:02:12 GMT, chenggwang wrote: > Hi Can anyone help me to review this PR @sormuras @asotona or any other > reviewer? I think you first need to make a case for changing the CyclicBarrier API as opposed to dealing with the phases in your BarrierAction or using the Phaser

Integrated: 8314263: Signed jars triggering Logger finder recursion and StackOverflowError

2023-08-30 Thread Sean Coffey
On Wed, 23 Aug 2023 15:41:16 GMT, Sean Coffey wrote: > Recursive initialization calls possible during loading of LoggerFinder > service. > > This fix detects the recursive call and returns a temporary LoggerFinder that > is backed by a lazy logger. Automated test case developed to simulate

Re: RFR: 8312491: Update Classfile API snippets and examples [v10]

2023-08-30 Thread Adam Sotona
> This pull request updates Classfile API snippets and examples and adds > missing javadoc. > > Please review. > > Thanks, > Adam Adam Sotona has updated the pull request incrementally with one additional commit since the last revision: fixing javadoc - Changes: - all:

Re: RFR: 8312491: Update Classfile API snippets and examples [v9]

2023-08-30 Thread Adam Sotona
> This pull request updates Classfile API snippets and examples and adds > missing javadoc. > > Please review. > > Thanks, > Adam Adam Sotona has updated the pull request incrementally with one additional commit since the last revision: fixing javadoc - Changes: - all:

Re: RFR: JDK-8314194: Reusing CyclicBarrier, it should be possible to change the barrierCommand

2023-08-30 Thread chenggwang
On Fri, 11 Aug 2023 02:33:05 GMT, chenggwang wrote: > Sorry, my description in Issue JDK-8314194(which I submitted) is ambiguous > and makes you think of Phaser. My intention is that each generation of > CyclicBarrier barrierCommand can change. Let me give you a scenario > For example, the

Integrated: 8315117: Update Zlib Data Compression Library to Version 1.3

2023-08-30 Thread Lance Andersen
On Mon, 28 Aug 2023 16:31:06 GMT, Lance Andersen wrote: > Hi all, > > Please review this PR which updates zlib from 1.2.13 to 1.3 in openJDK > > The [Zlib Data Compression Library](https://github.com/madler/zlib ) has > released Zlib 1.3 on August 18, 2023. > > There are a [small number of

Re: RFR: 8315097: Rename createJavaProcessBuilder [v3]

2023-08-30 Thread Mark Sheppard
On Wed, 30 Aug 2023 09:23:55 GMT, Leo Korinth wrote: >> Rename createJavaProcessBuilder so that it is not used by mistake instead of >> createTestJvm. >> >> I have used the following sed script: `find -name "*.java" | xargs -n 1 sed >> -i -e >>

Integrated: 8297777: Convert jdk.jlink StringSharingPlugin to use Class File API

2023-08-30 Thread Qing Xiao
On Wed, 23 Aug 2023 23:50:29 GMT, Qing Xiao wrote: > Migrate jdk.jlink StringSharingPlugin to use new classfile library This pull request has now been integrated. Changeset: e29f0c2d Author:Qing Xiao Committer: Adam Sotona URL:

Re: RFR: 8312491: Update Classfile API snippets and examples [v8]

2023-08-30 Thread Adam Sotona
> This pull request updates Classfile API snippets and examples and adds > missing javadoc. > > Please review. > > Thanks, > Adam Adam Sotona has updated the pull request incrementally with two additional commits since the last revision: - fixing javadoc - fixing javadoc -

Re: RFR: 8315351: Rid synchronization in PipedInputStream.close() in favour of benign race

2023-08-30 Thread Vyom Tewari
On Wed, 30 Aug 2023 09:49:39 GMT, Sergey Tsypanov wrote: > Assuming that the value written into `in` is always `-1` we can rid > synchronized block in favour of guarding `in = - 1` with writing into > volatile `closedByReader `: > > public void close() throws IOException { >

Re: RFR: JDK-8314194: Reusing CyclicBarrier, it should be possible to change the barrierCommand

2023-08-30 Thread chenggwang
On Fri, 11 Aug 2023 02:33:05 GMT, chenggwang wrote: > Sorry, my description in Issue JDK-8314194(which I submitted) is ambiguous > and makes you think of Phaser. My intention is that each generation of > CyclicBarrier barrierCommand can change. Let me give you a scenario > For example, the

Re: RFR: JDK-8266431: Dual-Pivot Quicksort improvements (Radix sort) [v9]

2023-08-30 Thread Laurent Bourgès
> * improved mixed insertion sort (makes whole sorting faster) > * introduced Radix which sort shows several times boost of performance and > has linear complexity instead of n*ln(n) > * improved merging sort for almost sorted data > * optimized parallel sorting > * improved step for pivot

RFR: 8315351: Rid synchronization in PipedInputStream.close() in favour of benign race

2023-08-30 Thread Sergey Tsypanov
Assuming that the value written into `in` is always `-1` we can rid synchronized block in favour of guarding `in = - 1` with writing into volatile `closedByReader `: public void close() throws IOException { closedByReader = true; synchronized (this) { in = -1; } } -->

Re: RFR: JDK-8266431: Dual-Pivot Quicksort improvements (Radix sort) [v8]

2023-08-30 Thread Laurent Bourgès
> * improved mixed insertion sort (makes whole sorting faster) > * introduced Radix which sort shows several times boost of performance and > has linear complexity instead of n*ln(n) > * improved merging sort for almost sorted data > * optimized parallel sorting > * improved step for pivot

Re: RFR: 8315097: Rename createJavaProcessBuilder [v3]

2023-08-30 Thread Leo Korinth
> Rename createJavaProcessBuilder so that it is not used by mistake instead of > createTestJvm. > > I have used the following sed script: `find -name "*.java" | xargs -n 1 sed > -i -e > "s/createJavaProcessBuilder(/createJavaProcessBuilderIgnoreTestJavaOpts(/g"` > > Then I have manually

Re: RFR: 8314263: Signed jars triggering Logger finder recursion and StackOverflowError [v7]

2023-08-30 Thread Andrey Turbanov
On Tue, 29 Aug 2023 15:31:03 GMT, Sean Coffey wrote: >> Recursive initialization calls possible during loading of LoggerFinder >> service. >> >> This fix detects the recursive call and returns a temporary LoggerFinder >> that is backed by a lazy logger. Automated test case developed to

Re: RFR: 8309130: x86_64 AVX512 intrinsics for Arrays.sort methods (int, long, float and double arrays) [v30]

2023-08-30 Thread Alan Bateman
On Wed, 30 Aug 2023 00:37:26 GMT, Srinivas Vamsi Parasa wrote: > Hi Vladimir, Just verified that the test/jdk/java/util/Arrays/Sorting.java is > triggering the intrinsic without additional flags Just to add that Sorting.java has short and long run modes. The default when running with jtreg

Re: RFR: 8311302: Allow for jlinking a custom runtime without packaged modules being present [v3]

2023-08-30 Thread Severin Gehwolf
On Tue, 29 Aug 2023 17:31:00 GMT, Alan Bateman wrote: > > @AlanBateman Gentle ping. > > On my list, it's a lot to get through and a number of aspects to this that I > think will require refinement and discussion. Thanks for the heads-up! Your input is much appreciated. - PR

Re: RFR: 8314236: Overflow in Collections.rotate

2023-08-30 Thread Nikita Sakharin
On Mon, 14 Aug 2023 20:23:13 GMT, Aleksey Shipilev wrote: >> `Collections.rotate` method contains a bug. This method throws >> IndexOutOfBoundsException on arrays larger than $2^{30}$ elements. The way >> to reproduce: >> >> final int size = (1 << 30) + 1; >> final List list = new

Re: RFR: 8313718: make container at requires command configurable

2023-08-30 Thread David Holmes
On Wed, 30 Aug 2023 03:15:18 GMT, Mikhailo Seledtsov wrote: >> Container ecosystem is growing. It would be beneficial to define custom >> command to figure out whether a specific test host or environment allows for >> container testing. This enhancement seeks to make the command used by jtreg

Re: RFR: 8315097: Rename createJavaProcessBuilder [v2]

2023-08-30 Thread David Holmes
On Tue, 29 Aug 2023 16:45:12 GMT, Roger Riggs wrote: >> I don't think this is the best change across so many files. >> It gives a very ugly name to a common test function and affects a very large >> number of tests. > >> @RogerRiggs If it is only the name you want changed, maybe you can offer a

Re: RFR: 8268829: Provide an optimized way to walk the stack with Class object only [v8]

2023-08-30 Thread Alan Bateman
On Tue, 29 Aug 2023 20:51:56 GMT, Mandy Chung wrote: >> 8268829: Provide an optimized way to walk the stack with Class object only >> >> `StackWalker::walk` creates one `StackFrame` per frame and the current >> implementation >> allocates one `StackFrameInfo` and one `MemberName` objects per

Re: RFR: JDK-8315213: java/lang/ProcessHandle/TreeTest.java test enhance output of children [v2]

2023-08-30 Thread Matthias Baesken
On Tue, 29 Aug 2023 12:10:34 GMT, Matthias Baesken wrote: >> We have some failures in TreeTest.java where the expected number of child >> processes is differing from what we really get. It would be good to have >> more output to analyze these cases. > > Matthias Baesken has updated the pull

Integrated: JDK-8315213: java/lang/ProcessHandle/TreeTest.java test enhance output of children

2023-08-30 Thread Matthias Baesken
On Tue, 29 Aug 2023 07:51:59 GMT, Matthias Baesken wrote: > We have some failures in TreeTest.java where the expected number of child > processes is differing from what we really get. It would be good to have more > output to analyze these cases. This pull request has now been integrated.

Re: RFR: 8309622: Re-examine the cache mechanism in BaseLocale [v5]

2023-08-30 Thread Chen Liang
On Tue, 1 Aug 2023 20:21:11 GMT, Naoto Sato wrote: >> This is stemming from the PR: https://github.com/openjdk/jdk/pull/14211 >> where aggressive GC can cause NPE in `BaseLocale$Key` class. I refactored >> the in-house cache with WeakHashMap, and removed the Key class as it is no >> longer