Re: RFR: JDK-8317959: Check return values of malloc in native java.base coding [v2]

2023-10-12 Thread Matthias Baesken
On Thu, 12 Oct 2023 14:16:55 GMT, Matthias Baesken wrote: >> There are a few remaining places in java.base where the return value >> NULL-check of malloc is missing. This should better be adjusted. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sinc

Integrated: JDK-8317959: Check return values of malloc in native java.base coding

2023-10-12 Thread Matthias Baesken
On Thu, 12 Oct 2023 08:00:30 GMT, Matthias Baesken wrote: > There are a few remaining places in java.base where the return value > NULL-check of malloc is missing. This should better be adjusted. This pull request has now been integrated. Changeset: ff0b397e Author:Matthias Baesken URL:

Re: RFR: 8318058: Notify the jvm when the direct memory is oom

2023-10-12 Thread Alan Bateman
On Fri, 13 Oct 2023 03:23:04 GMT, xpbob wrote: > Big data processes often experience situations where the direct memory oom > process is alive but not serving properly. If the direct memory is oom, code > can notify the jvm. Can bring the following benefits: > 1. Analysis of direct memory Java.

Re: RFR: 8318058: Notify the jvm when the direct memory is oom

2023-10-12 Thread Thomas Stuefe
On Fri, 13 Oct 2023 03:23:04 GMT, xpbob wrote: > Big data processes often experience situations where the direct memory oom > process is alive but not serving properly. If the direct memory is oom, code > can notify the jvm. Can bring the following benefits: > 1. Analysis of direct memory Java.

Re: RFR: 8303374: Compiler Implementation for Primitive types in patterns, instanceof, and switch (Preview) [v19]

2023-10-12 Thread Vicente Romero
On Wed, 11 Oct 2023 15:43:19 GMT, Aggelos Biboudis wrote: >> This is the first draft of a patch for Primitive types in patterns, >> instanceof, and switch (Preview). >> >> Draft spec here: >> https://cr.openjdk.org/~abimpoudis/instanceof/jep443-20231010/specs/instanceof-jls.html > > Aggelos B

RFR: 8318058: Notify the jvm when the direct memory is oom

2023-10-12 Thread xpbob
Big data processes often experience situations where the direct memory oom process is alive but not serving properly. If the direct memory is oom, code can notify the jvm. Can bring the following benefits: 1. Analysis of direct memory Java. Nio. DirectByteBuffer need heapdumps reference relation

Re: RFR: 8316641: VarHandle template classes can share code in the base class [v6]

2023-10-12 Thread Chen Liang
On Sun, 24 Sep 2023 13:16:02 GMT, Chen Liang wrote: >> VarHandle implementations have many static fields and methods that can be >> pulled to the common superclass to avoid repeated initialization and code >> duplication. >> >> In addition, the Unsafe-based Buffer field access are replaced by

Re: RFR: 8303374: Compiler Implementation for Primitive types in patterns, instanceof, and switch (Preview) [v19]

2023-10-12 Thread Vicente Romero
On Wed, 11 Oct 2023 15:43:19 GMT, Aggelos Biboudis wrote: >> This is the first draft of a patch for Primitive types in patterns, >> instanceof, and switch (Preview). >> >> Draft spec here: >> https://cr.openjdk.org/~abimpoudis/instanceof/jep443-20231010/specs/instanceof-jls.html > > Aggelos B

Re: RFR: JDK-8317372: Refactor some NumberFormat tests to use JUnit [v3]

2023-10-12 Thread Naoto Sato
On Thu, 12 Oct 2023 20:58:21 GMT, Justin Lu wrote: >> Please review this PR which refactors a number of tests under >> `test/text/NumberFormat` to use JUnit. >> >> During the switch to JUnit, the tests had the following updates (to improve >> readability) >> - separate the test data generation

Re: RFR: 8315585: Optimization for decimal to string [v5]

2023-10-12 Thread Shaojin Wen
> I submitted PR #1 before, and there were too many changes. I split it > into multiple PRs with small changes. This one is one of them. > > this PR removed the duplicate code for getChars in > BigDecimal#StringBuilderHelper, i also make performance faster. > Please review and don't hesitate

RFR: 8317837: Leftover FFM implementation-only changes

2023-10-12 Thread Jorn Vernee
Port of miscellaneous leftover implementation-only changes from the panama-foreign repo: These four related to improving the performance of the internal `strlen` implementation: - https://github.com/openjdk/panama-foreign/pull/862 - https://github.com/openjdk/panama-foreign/pull/860 - htt

Re: RFR: JDK-8317372: Refactor some NumberFormat tests to use JUnit [v3]

2023-10-12 Thread Justin Lu
> Please review this PR which refactors a number of tests under > `test/text/NumberFormat` to use JUnit. > > During the switch to JUnit, the tests had the following updates (to improve > readability) > - separate the test data generation from the actual execution of the test > - create distinct

Re: RFR: 8317824: Beef up javadoc for base offset in var handles derived from layouts (mainline)

2023-10-12 Thread Maurizio Cimadamore
On Tue, 10 Oct 2023 17:58:12 GMT, Jorn Vernee wrote: > Port of: https://github.com/openjdk/panama-foreign/pull/901 > > Original PR body: > >> This PR adds more javadoc to explain how base offsets in var handles >> obtained from layouts can be used. >> >> First, a number of examples in the mai

Re: RFR: 8317819: Scope should reflect lifetime of underying resource (mainline) [v2]

2023-10-12 Thread Jorn Vernee
> Port of: https://github.com/openjdk/panama-foreign/pull/898 > > Original PR body: > >> >> This patch addresses some issues with `MemorySegment.Scope::equals`. More >> specifically, when two segments are created from the same array/buffer, >> their underlying scope should be equal, but curren

Re: RFR: 8303374: Compiler Implementation for Primitive types in patterns, instanceof, and switch (Preview) [v19]

2023-10-12 Thread Vicente Romero
On Wed, 11 Oct 2023 15:43:19 GMT, Aggelos Biboudis wrote: >> This is the first draft of a patch for Primitive types in patterns, >> instanceof, and switch (Preview). >> >> Draft spec here: >> https://cr.openjdk.org/~abimpoudis/instanceof/jep443-20231010/specs/instanceof-jls.html > > Aggelos B

RFR: 8317824: Beef up javadoc for base offset in var handles derived from layouts (mainline)

2023-10-12 Thread Jorn Vernee
Port of: https://github.com/openjdk/panama-foreign/pull/901 Original PR body: > This PR adds more javadoc to explain how base offsets in var handles obtained > from layouts can be used. > > First, a number of examples in the main `MemoryLayout` javadoc is rectified, > as such examples did not

RFR: 8317819: Scope should reflect lifetime of underying resource (mainline)

2023-10-12 Thread Jorn Vernee
Port of: https://github.com/openjdk/panama-foreign/pull/898 Original PR body: > > This patch addresses some issues with `MemorySegment.Scope::equals`. More > specifically, when two segments are created from the same array/buffer, their > underlying scope should be equal, but currently it is no

Re: RFR: 8317819: Scope should reflect lifetime of underying resource (mainline)

2023-10-12 Thread Jorn Vernee
On Tue, 10 Oct 2023 17:17:00 GMT, Jorn Vernee wrote: > Port of: https://github.com/openjdk/panama-foreign/pull/898 > > Original PR body: > >> >> This patch addresses some issues with `MemorySegment.Scope::equals`. More >> specifically, when two segments are created from the same array/buffer,

Integrated: 8318038: ProblemList runtime/CompressedOops/CompressedClassPointers.java on two platforms

2023-10-12 Thread Daniel D . Daugherty
On Thu, 12 Oct 2023 19:26:10 GMT, Daniel D. Daugherty wrote: > Trivial ProblemListing for some tests: > > [JDK-8318038](https://bugs.openjdk.org/browse/JDK-8318038) ProblemList > runtime/CompressedOops/CompressedClassPointers.java on two platforms > [JDK-8318040](https://bugs.openjdk.org/brows

Re: RFR: 8318038: ProblemList runtime/CompressedOops/CompressedClassPointers.java on two platforms

2023-10-12 Thread Daniel D . Daugherty
On Thu, 12 Oct 2023 19:54:17 GMT, Roger Riggs wrote: >> Trivial ProblemListing for some tests: >> >> [JDK-8318038](https://bugs.openjdk.org/browse/JDK-8318038) ProblemList >> runtime/CompressedOops/CompressedClassPointers.java on two platforms >> [JDK-8318040](https://bugs.openjdk.org/browse/JD

Re: RFR: 8318038: ProblemList runtime/CompressedOops/CompressedClassPointers.java on two platforms

2023-10-12 Thread Alexander Zvegintsev
On Thu, 12 Oct 2023 19:26:10 GMT, Daniel D. Daugherty wrote: > Trivial ProblemListing for some tests: > > [JDK-8318038](https://bugs.openjdk.org/browse/JDK-8318038) ProblemList > runtime/CompressedOops/CompressedClassPointers.java on two platforms > [JDK-8318040](https://bugs.openjdk.org/brows

Re: RFR: 8318038: ProblemList runtime/CompressedOops/CompressedClassPointers.java on two platforms

2023-10-12 Thread Roger Riggs
On Thu, 12 Oct 2023 19:26:10 GMT, Daniel D. Daugherty wrote: > Trivial ProblemListing for some tests: > > [JDK-8318038](https://bugs.openjdk.org/browse/JDK-8318038) ProblemList > runtime/CompressedOops/CompressedClassPointers.java on two platforms > [JDK-8318040](https://bugs.openjdk.org/brows

Integrated: 8312522: Implementation of Foreign Function & Memory API

2023-10-12 Thread Jorn Vernee
On Tue, 1 Aug 2023 10:29:06 GMT, Jorn Vernee wrote: > This patch contains the implementation of the foreign linker & memory API JEP > for Java 22. The initial patch is composed of commits brought over directly > from the [panama-foreign repo](https://github.com/openjdk/panama-foreign). > The m

Re: RFR: 8315585: Optimization for decimal to string [v4]

2023-10-12 Thread Claes Redestad
On Wed, 11 Oct 2023 21:46:04 GMT, Shaojin Wen wrote: >> I submitted PR #1 before, and there were too many changes. I split it >> into multiple PRs with small changes. This one is one of them. >> >> this PR removed the duplicate code for getChars in >> BigDecimal#StringBuilderHelper, i also

RFR: 8318038: ProblemList runtime/CompressedOops/CompressedClassPointers.java on two platforms

2023-10-12 Thread Daniel D . Daugherty
Trivial ProblemListing for some tests: [JDK-8318038](https://bugs.openjdk.org/browse/JDK-8318038) ProblemList runtime/CompressedOops/CompressedClassPointers.java on two platforms [JDK-8318040](https://bugs.openjdk.org/browse/JDK-8318040) ProblemList vmTestbase/nsk/monitoring/ThreadMXBean/findMon

Re: RFR: 8315585: Optimization for decimal to string [v2]

2023-10-12 Thread Claes Redestad
On Wed, 11 Oct 2023 22:19:29 GMT, Shaojin Wen wrote: > Keep the duplicate code of StringConcatHelper, or use JLA, or move the code > of getCharsLatin1 & stringSize to DecimalDigits (PR #15699). Of the three > options, using JLA is the smallest change. Adding methods to JLA also adds a maintena

Re: RFR: 8303374: Compiler Implementation for Primitive types in patterns, instanceof, and switch (Preview) [v19]

2023-10-12 Thread Vicente Romero
On Wed, 11 Oct 2023 15:43:19 GMT, Aggelos Biboudis wrote: >> This is the first draft of a patch for Primitive types in patterns, >> instanceof, and switch (Preview). >> >> Draft spec here: >> https://cr.openjdk.org/~abimpoudis/instanceof/jep443-20231010/specs/instanceof-jls.html > > Aggelos B

Re: RFR: 8288899: java/util/concurrent/ExecutorService/CloseTest.java failed with "InterruptedException: sleep interrupted" [v49]

2023-10-12 Thread Viktor Klang
On Thu, 12 Oct 2023 16:53:12 GMT, Doug Lea wrote: >> src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 3153: >> >>> 3151: public ForkJoinTask submit(Callable task) { >>> 3152: ForkJoinTask t = >>> 3153: (Thread.currentThread() instanceof ForkJoinWor

Re: RFR: JDK-8077371: Binary files in JAXP test should be removed [v8]

2023-10-12 Thread Lance Andersen
On Wed, 11 Oct 2023 19:27:46 GMT, Joe Wang wrote: > Thanks for the update. > > I'm not sure it's necessary to repeat tests with Base64 input. I think > Daniel's comment was that the data can be optionally base64-encoded into a > string, not that the tests needed to be duplicated. > > The gene

Re: RFR: 8288899: java/util/concurrent/ExecutorService/CloseTest.java failed with "InterruptedException: sleep interrupted" [v49]

2023-10-12 Thread Doug Lea
On Thu, 12 Oct 2023 13:48:23 GMT, Viktor Klang wrote: >> Doug Lea has updated the pull request incrementally with one additional >> commit since the last revision: >> >> More cleanup > > src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 3324: > >> 3322:

Re: RFR: 8288899: java/util/concurrent/ExecutorService/CloseTest.java failed with "InterruptedException: sleep interrupted" [v49]

2023-10-12 Thread Doug Lea
On Thu, 12 Oct 2023 13:46:01 GMT, Viktor Klang wrote: >> Doug Lea has updated the pull request incrementally with one additional >> commit since the last revision: >> >> More cleanup > > src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 3153: > >> 3151: public Fork

Re: RFR: 8317763: Follow-up to AVX512 intrinsics for Arrays.sort() PR [v5]

2023-10-12 Thread Paul Sandoz
On Thu, 12 Oct 2023 03:44:28 GMT, Danny Thomas wrote: > At least on Saphire Rapids the [emulation suggested > here](https://github.com/natmaurice/x86-simd-sort/commit/41d03b2d8f3b62a2ee6a3a97a8da7f193a407026) > only imposes a 6% penalty for `intSort`, while also mitigating the > performance is

Re: RFR: JDK-8317959: Check return values of malloc in native java.base coding [v2]

2023-10-12 Thread Brian Burkhalter
On Thu, 12 Oct 2023 14:16:55 GMT, Matthias Baesken wrote: >> There are a few remaining places in java.base where the return value >> NULL-check of malloc is missing. This should better be adjusted. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sinc

Re: RFR: JDK-8317959: Check return values of malloc in native java.base coding [v2]

2023-10-12 Thread Alan Bateman
On Thu, 12 Oct 2023 14:16:55 GMT, Matthias Baesken wrote: >> There are a few remaining places in java.base where the return value >> NULL-check of malloc is missing. This should better be adjusted. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sinc

Re: RFR: JDK-8315026: ProcessHandle implementation listing processes on AIX should use getprocs64 [v5]

2023-10-12 Thread Thomas Stuefe
On Thu, 12 Oct 2023 09:30:09 GMT, Joachim Kern wrote: >> We see rather often failures in java/lang/ProcessHandle/TreeTest.java on AIX >> in TreeTest.test5. >> The reason is: Previously the implementation based on the /proc file system >> lead to double pids in the child list; at least intermitt

Re: RFR: 8308753: Class-File API transition to Preview [v20]

2023-10-12 Thread Adam Sotona
> Classfile API is an internal library under package `jdk.internal.classfile`  > in JDK 21. > This pull request turns the Classfile API into a preview feature and moves it > into `java.lang.classfile`. > It repackages all uses across JDK and tests and adds lots of missing Javadoc. > > This PR goe

Re: RFR: 8308753: Class-File API transition to Preview [v19]

2023-10-12 Thread Adam Sotona
On Thu, 12 Oct 2023 11:11:10 GMT, Maurizio Cimadamore wrote: >> Adam Sotona has updated the pull request incrementally with one additional >> commit since the last revision: >> >> removed obsolete exports from BuildMicrobenchmark.gmk > > src/java.base/share/classes/java/lang/classfile/packag

Integrated: 8316426: Optimization for HexFormat.formatHex

2023-10-12 Thread Shaojin Wen
On Fri, 15 Sep 2023 18:04:29 GMT, Shaojin Wen wrote: > In the improvement of @cl4es PR #15591, the advantages of non-lookup-table > were discussed. > > But if the input is byte[], using lookup table can improve performance. > > For HexFormat#formatHex(Appendable, byte[]) and HexFormat#formatHe

Re: RFR: 8288899: java/util/concurrent/ExecutorService/CloseTest.java failed with "InterruptedException: sleep interrupted" [v49]

2023-10-12 Thread Viktor Klang
On Wed, 11 Oct 2023 13:07:08 GMT, Doug Lea wrote: >> Addresses Jdk 8288899 : java/util/concurrent/ExecutorService/CloseTest.java >> failed with "InterruptedException: sleep interrupted" and related issues. >> >> This is a major ForkJoin update (and hard to review -- sorry) that finally >> addr

Integrated: 8317956: Make jdk.internal.util.Architecture current architecture final

2023-10-12 Thread Roger Riggs
On Wed, 11 Oct 2023 13:25:14 GMT, Roger Riggs wrote: > The static for the current architecture should be final to allow some > optimizations. This pull request has now been integrated. Changeset: c1f698d3 Author:Roger Riggs URL: https://git.openjdk.org/jdk/commit/c1f698d38bb2519415

Re: RFR: JDK-8315026: ProcessHandle implementation listing processes on AIX should use getprocs64 [v5]

2023-10-12 Thread Roger Riggs
On Thu, 12 Oct 2023 09:30:09 GMT, Joachim Kern wrote: >> We see rather often failures in java/lang/ProcessHandle/TreeTest.java on AIX >> in TreeTest.test5. >> The reason is: Previously the implementation based on the /proc file system >> lead to double pids in the child list; at least intermitt

Re: RFR: 8317763: Follow-up to AVX512 intrinsics for Arrays.sort() PR [v4]

2023-10-12 Thread Erik Joelsson
On Wed, 11 Oct 2023 22:40:20 GMT, Sandhya Viswanathan wrote: >> I see now that this is an unrelated change. In that case please avoid >> changing whitespace in unrelated files for this PR. > > @erikj79 This space was inadvertently added as part of > (https://github.com/openjdk/jdk/pull/14227)

Re: RFR: JDK-8249832: java/util/zip/DataDescriptorSignatureMissing.java uses @ignore w/o bug-id [v2]

2023-10-12 Thread Agnibho Hom Chowdhury
On Thu, 12 Oct 2023 10:29:31 GMT, Mahendra Chhipa wrote: >> Agnibho Hom Chowdhury has updated the pull request incrementally with one >> additional commit since the last revision: >> >> upadted copyright year > > test/jdk/java/util/zip/DataDescriptorSignatureMissing.java line 1: > >> 1: /* >

Re: RFR: JDK-8249832: java/util/zip/DataDescriptorSignatureMissing.java uses @ignore w/o bug-id [v2]

2023-10-12 Thread Agnibho Hom Chowdhury
> Please review this PR as a fix of > [JDK-8249832](https://bugs.openjdk.org/browse/JDK-8249832). I have added the > bug with after @ignore annotation. Agnibho Hom Chowdhury has updated the pull request incrementally with one additional commit since the last revision: upadted copyright year

Re: RFR: JDK-8317959: Check return values of malloc in native java.base coding [v2]

2023-10-12 Thread Alan Bateman
On Thu, 12 Oct 2023 12:17:27 GMT, Matthias Baesken wrote: >> There are a few remaining places in java.base where the return value >> NULL-check of malloc is missing. This should better be adjusted. > > Matthias Baesken has updated the pull request incrementally with one > additional commit sinc

Re: RFR: JDK-8317959: Check return values of malloc in native java.base coding [v2]

2023-10-12 Thread Matthias Baesken
On Thu, 12 Oct 2023 12:00:19 GMT, Alan Bateman wrote: >> Matthias Baesken has updated the pull request incrementally with one >> additional commit since the last revision: >> >> doabort in check method in case no memory can be allocated > > src/java.base/windows/native/libjli/cmdtoargs.c line

Re: RFR: JDK-8317959: Check return values of malloc in native java.base coding [v2]

2023-10-12 Thread Matthias Baesken
> There are a few remaining places in java.base where the return value > NULL-check of malloc is missing. This should better be adjusted. Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision: doabort in check method in case no memory c

Re: RFR: 8288899: java/util/concurrent/ExecutorService/CloseTest.java failed with "InterruptedException: sleep interrupted" [v49]

2023-10-12 Thread Viktor Klang
On Wed, 11 Oct 2023 13:07:08 GMT, Doug Lea wrote: >> Addresses Jdk 8288899 : java/util/concurrent/ExecutorService/CloseTest.java >> failed with "InterruptedException: sleep interrupted" and related issues. >> >> This is a major ForkJoin update (and hard to review -- sorry) that finally >> addr

Re: RFR: 8316426: Optimization for HexFormat.formatHex [v10]

2023-10-12 Thread Claes Redestad
On Fri, 6 Oct 2023 17:06:08 GMT, Shaojin Wen wrote: >> In the improvement of @cl4es PR #15591, the advantages of non-lookup-table >> were discussed. >> >> But if the input is byte[], using lookup table can improve performance. >> >> For HexFormat#formatHex(Appendable, byte[]) and HexFormat#for

Re: RFR: JDK-8315026: java/lang/ProcessHandle/TreeTest.java fails intermittent on AIX in TreeTest.test5 [v5]

2023-10-12 Thread Roger Riggs
On Thu, 12 Oct 2023 09:30:09 GMT, Joachim Kern wrote: >> We see rather often failures in java/lang/ProcessHandle/TreeTest.java on AIX >> in TreeTest.test5. >> The reason is: Previously the implementation based on the /proc file system >> lead to double pids in the child list; at least intermitt

Re: RFR: 8308753: Class-File API transition to Preview [v19]

2023-10-12 Thread Maurizio Cimadamore
On Wed, 11 Oct 2023 07:17:04 GMT, Adam Sotona wrote: >> Classfile API is an internal library under package `jdk.internal.classfile`  >> in JDK 21. >> This pull request turns the Classfile API into a preview feature and moves >> it into `java.lang.classfile`. >> It repackages all uses across JDK

Re: RFR: 8308753: Class-File API transition to Preview [v19]

2023-10-12 Thread Magnus Ihse Bursie
On Thu, 12 Oct 2023 10:40:03 GMT, Adam Sotona wrote: >> make/test/BuildMicrobenchmark.gmk line 99: >> >>> 97: JAVAC_FLAGS := --add-exports >>> java.base/sun.security.util=ALL-UNNAMED \ >>> 98: --add-exports java.base/sun.invoke.util=ALL-UNNAMED \ >>> 99: --add-exports java.b

Re: RFR: 8308753: Class-File API transition to Preview [v19]

2023-10-12 Thread Adam Sotona
On Thu, 12 Oct 2023 10:23:56 GMT, Magnus Ihse Bursie wrote: >> Adam Sotona has updated the pull request incrementally with one additional >> commit since the last revision: >> >> removed obsolete exports from BuildMicrobenchmark.gmk > > make/test/BuildMicrobenchmark.gmk line 99: > >> 97:

Re: RFR: JDK-8249832: java/util/zip/DataDescriptorSignatureMissing.java uses @ignore w/o bug-id

2023-10-12 Thread Mahendra Chhipa
On Fri, 6 Oct 2023 12:43:02 GMT, Agnibho Hom Chowdhury wrote: > Please review this PR as a fix of > [JDK-8249832](https://bugs.openjdk.org/browse/JDK-8249832). I have added the > bug with after @ignore annotation. test/jdk/java/util/zip/DataDescriptorSignatureMissing.java line 1: > 1: /* Cou

Re: RFR: JDK-8315026: java/lang/ProcessHandle/TreeTest.java fails intermittent on AIX in TreeTest.test5 [v4]

2023-10-12 Thread Thomas Stuefe
On Thu, 12 Oct 2023 09:33:24 GMT, Joachim Kern wrote: >> src/java.base/aix/native/libjava/ProcessHandleImpl_aix.c line 89: >> >>> 87: >>> 88: do { // Block to break out of on Exception >>> 89: pids = (*env)->GetLongArrayElements(env, jarray, NULL); >> >> Nit, I'd move these invocat

Re: RFR: 8308753: Class-File API transition to Preview [v19]

2023-10-12 Thread Magnus Ihse Bursie
On Wed, 11 Oct 2023 07:17:04 GMT, Adam Sotona wrote: >> Classfile API is an internal library under package `jdk.internal.classfile`  >> in JDK 21. >> This pull request turns the Classfile API into a preview feature and moves >> it into `java.lang.classfile`. >> It repackages all uses across JDK

Re: RFR: 8317980: Optimization for Integer.parseInt and Long.parseLong

2023-10-12 Thread Chen Liang
On Thu, 12 Oct 2023 09:55:15 GMT, Shaojin Wen wrote: >> CharacterDataLatin1.digit is for multi-radix, and the performance when radix >> = 10 is not good enough. > > If we reuse CharacterDataLatin1#DIGITS, the performance will be slower, the > performance numbers are as follows > > > class Cha

Re: RFR: 8317980: Optimization for Integer.parseInt and Long.parseLong

2023-10-12 Thread Shaojin Wen
On Thu, 12 Oct 2023 09:19:35 GMT, Shaojin Wen wrote: >> Let's not forget that `Character.digit()` has a pretty decent fast path for >> Latin1, including a 256 bytes lookup-table. > > CharacterDataLatin1.digit is for multi-radix, and the performance when radix > = 10 is not good enough. If we r

Re: RFR: JDK-8315026: java/lang/ProcessHandle/TreeTest.java fails intermittent on AIX in TreeTest.test5 [v4]

2023-10-12 Thread Joachim Kern
On Thu, 12 Oct 2023 06:30:33 GMT, Thomas Stuefe wrote: >> Joachim Kern has updated the pull request incrementally with one additional >> commit since the last revision: >> >> cosmetic changes 2 > > src/java.base/aix/native/libjava/ProcessHandleImpl_aix.c line 89: > >> 87: >> 88: do { //

Re: RFR: JDK-8315026: java/lang/ProcessHandle/TreeTest.java fails intermittent on AIX in TreeTest.test5 [v5]

2023-10-12 Thread Joachim Kern
On Thu, 12 Oct 2023 09:30:09 GMT, Joachim Kern wrote: >> We see rather often failures in java/lang/ProcessHandle/TreeTest.java on AIX >> in TreeTest.test5. >> The reason is: Previously the implementation based on the /proc file system >> lead to double pids in the child list; at least intermitt

Re: RFR: JDK-8249832: java/util/zip/DataDescriptorSignatureMissing.java uses @ignore w/o bug-id

2023-10-12 Thread Mahendra Chhipa
On Fri, 6 Oct 2023 12:43:02 GMT, Agnibho Hom Chowdhury wrote: > Please review this PR as a fix of > [JDK-8249832](https://bugs.openjdk.org/browse/JDK-8249832). I have added the > bug with after @ignore annotation. Looks good to me. - PR Comment: https://git.openjdk.org/jdk/pull/1

Re: RFR: JDK-8315026: java/lang/ProcessHandle/TreeTest.java fails intermittent on AIX in TreeTest.test5 [v5]

2023-10-12 Thread Joachim Kern
> We see rather often failures in java/lang/ProcessHandle/TreeTest.java on AIX > in TreeTest.test5. > The reason is: Previously the implementation based on the /proc file system > lead to double pids in the child list; at least intermittent. Using the API > getprocs64() instead I was able to eli

Re: RFR: 8317980: Optimization for Integer.parseInt and Long.parseLong

2023-10-12 Thread Shaojin Wen
On Thu, 12 Oct 2023 09:10:30 GMT, Raffaello Giulietti wrote: >> This patch should have little impact on exception-path performance. Remember >> String concatenation is done with StringBuilder in java.base, so changing >> formatter to that might have some performance difference. However, the ma

Re: RFR: 8317980: Optimization for Integer.parseInt and Long.parseLong

2023-10-12 Thread Raffaello Giulietti
On Thu, 12 Oct 2023 08:58:18 GMT, Chen Liang wrote: >> While only optimizing the fast path is a good idea, I think it is important >> to make sure there is no regression on the slow path - as @schlosna pointed >> out, it's a common way to check if a string can be converted to an int. > > This p

Re: RFR: 8288899: java/util/concurrent/ExecutorService/CloseTest.java failed with "InterruptedException: sleep interrupted" [v49]

2023-10-12 Thread Alan Bateman
On Wed, 11 Oct 2023 13:07:08 GMT, Doug Lea wrote: >> Addresses Jdk 8288899 : java/util/concurrent/ExecutorService/CloseTest.java >> failed with "InterruptedException: sleep interrupted" and related issues. >> >> This is a major ForkJoin update (and hard to review -- sorry) that finally >> addr

Re: RFR: 8317980: Optimization for Integer.parseInt and Long.parseLong

2023-10-12 Thread Chen Liang
On Thu, 12 Oct 2023 08:47:09 GMT, Hannes Greule wrote: >> More explicitly I was thinking something like below. >> >> I do wonder if some of the benchmark tests should cover the exceptional >> cases. I have seen many systems where attempting to try and parse >> potentially invalid inputs can h

Re: RFR: 8317980: Optimization for Integer.parseInt and Long.parseLong

2023-10-12 Thread Hannes Greule
On Thu, 12 Oct 2023 00:39:27 GMT, David Schlosnagle wrote: >> He means to pull the `radix< Character,MIN_RADIX` and `radix > >> Character.MAX_RADIX` shared code in Integer and Long.parseInt (with radix >> version) to a helper method. > > More explicitly I was thinking something like below. >

Re: RFR: 8316144: Remove unused field jdk.internal.util.xml.impl.XMLStreamWriterImpl.Element._Depth

2023-10-12 Thread Andrey Turbanov
On Tue, 12 Sep 2023 20:04:54 GMT, Andrey Turbanov wrote: > A field `short _Depth` in the > `jdk.internal.util.xml.impl.XMLStreamWriterImpl.Element` class is unused and > can be removed. @JoeWang-Java can I have a review, please? - PR Comment: https://git.openjdk.org/jdk/pull/1569

RFR: JDK-8317959: Check return values of malloc in native java.base coding

2023-10-12 Thread Matthias Baesken
There are a few remaining places in java.base where the return value NULL-check of malloc is missing. This should better be adjusted. - Commit messages: - JDK-8317959 Changes: https://git.openjdk.org/jdk/pull/16160/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16160&range

Re: RFR: 8315850: Improve AbstractMap anonymous Iterator classes [v4]

2023-10-12 Thread Per Minborg
> This PR proposes to slightly improve some iterators of `AbstractMap`: > > * Declare two fields `final` > * Use distinct classes rather than anonymous classes Per Minborg has updated the pull request incrementally with one additional commit since the last revision: Remove comment --

Integrated: 8315850: Improve AbstractMap anonymous Iterator classes

2023-10-12 Thread Per Minborg
On Thu, 7 Sep 2023 11:48:51 GMT, Per Minborg wrote: > This PR proposes to slightly improve some iterators of `AbstractMap`: > > * Declare two fields `final` > * Use distinct classes rather than anonymous classes This pull request has now been integrated. Changeset: d95b548c Author:Per Minb

RFR: JDK-8249832: java/util/zip/DataDescriptorSignatureMissing.java uses @ignore w/o bug-id

2023-10-12 Thread Agnibho Hom Chowdhury
Please review this PR as a fix of [JDK-8249832](https://bugs.openjdk.org/browse/JDK-8249832). I have added the bug with after @ignore annotation. - Commit messages: - added bug-id with @ignore Changes: https://git.openjdk.org/jdk/pull/16073/files Webrev: https://webrevs.openjdk.o

Integrated: 8317873: Add @sealedGraph to IllegalFormatException

2023-10-12 Thread Per Minborg
On Wed, 11 Oct 2023 07:59:24 GMT, Per Minborg wrote: > This PR proposes to add @sealedGraph to `IllegalFormatException` This pull request has now been integrated. Changeset: eca6ea43 Author:Per Minborg URL: https://git.openjdk.org/jdk/commit/eca6ea43d085a68b9b9760e732275175cb1b0de3