Re: RFR: 8333867: SHA3 performance can be improved [v2]

2024-06-13 Thread Andrey Turbanov
On Wed, 12 Jun 2024 14:08:43 GMT, Ferenc Rakoczi wrote: >> This PR removes some unnecessary conversions between byte arrays and long >> arrays during SHA3 digest computations. > > Ferenc Rakoczi has updated the pull request incrementally with one additional > commit since the last revision: >

Re: RFR: 8333962: Obsolete OldSize

2024-06-13 Thread David Holmes
On Tue, 11 Jun 2024 08:17:02 GMT, Albert Mingkun Yang wrote: > Obsolete OldSize and related code. An internal variable `OldSize` is kept to > capture the capacity of old-gen size. Al seems reasonable. Thanks. src/hotspot/share/runtime/arguments.cpp line 543: > 541: { "UseNeon",

Re: RFR: 8333396: Performance regression of DecimalFormat.format [v5]

2024-06-13 Thread lingjun-cg
On Thu, 13 Jun 2024 17:53:45 GMT, Justin Lu wrote: >> lingjun-cg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 896: Performance regression of DecimalFormat.format > > src/java.base/share/classes/java/text/CompactNumberFormat.java

Re: RFR: 8333396: Performance regression of DecimalFormat.format [v5]

2024-06-13 Thread lingjun-cg
On Thu, 13 Jun 2024 19:40:49 GMT, Chen Liang wrote: >> lingjun-cg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 896: Performance regression of DecimalFormat.format > >

Re: RFR: 8333396: Performance regression of DecimalFormat.format [v5]

2024-06-13 Thread lingjun-cg
On Thu, 13 Jun 2024 19:40:48 GMT, Naoto Sato wrote: > I second Justin's suggestion here. The change should benefit every > implementation in the JDK, not only NumberFormat. Also, I might suggest > renaming the new class, as it is kind of long/redundant. How about using > something as simple

Re: RFR: 8333396: Performance regression of DecimalFormat.format [v6]

2024-06-13 Thread lingjun-cg
> ### Performance regression of DecimalFormat.format > From the output of perf, we can see the hottest regions contain atomic > instructions. But when run with JDK 11, there is no such problem. The reason > is the removed biased locking. > The DecimalFormat uses StringBuffer everywhere, and

Re: RFR: 8333714: Cleanup the usages of CHECK_EXCEPTION_NULL_FAIL macro in java launcher [v2]

2024-06-13 Thread Jaikiran Pai
On Thu, 6 Jun 2024 13:28:55 GMT, Jaikiran Pai wrote: >> Can I please get a review for this change which proposes to remove the >> `CHECK_EXCEPTION_NULL_FAIL` macro from the `java` launcher code? >> >> This addresses https://bugs.openjdk.org/browse/JDK-8333714. As noted in that >> JBS issue,

Re: RFR: 8333893: Optimization for StringBuilder append boolean & null [v9]

2024-06-13 Thread Shaojin Wen
> After PR https://github.com/openjdk/jdk/pull/16245, C2 optimizes stores into > primitive arrays by combining values ​​into larger stores. > > This PR rewrites the code of appendNull and append(boolean) methods so that > these two methods can be optimized by C2. Shaojin Wen has updated the

Re: RFR: 8330702: Update failure handler to don't generate Error message if cores actions are empty

2024-06-13 Thread Serguei Spitsyn
On Thu, 30 May 2024 02:28:56 GMT, Leonid Mesnik wrote: > The message is generated if cores (or any other tools) section doesn't exist > or is empty. However, there is no any tool for cores processing now defined. > So ERROR message is generating, confusing users. > The fix is to don't print

RFR: 8333748: javap crash - Fatal error: Unmatched bit position 0x2 for location CLASS

2024-06-13 Thread Chen Liang
Currently, javap crashes for class files that have set non-zero values for undefined access flag bits, as `java.lang.reflect.AccessFlag.maskToAccessFlag` and `java.lang.classfile.AccessFlags.flags` fail. In contrast, the JVMS, though asking for these bits to be set to 0, requires VM to proceed

[jdk23] Integrated: 8333827: JDK 23 RDP1 L10n resource files update

2024-06-13 Thread Damon Nguyen
On Thu, 13 Jun 2024 21:38:48 GMT, Damon Nguyen wrote: > Hi all, > > This pull request contains a backport of commit > [c4702ca8](https://github.com/openjdk/jdk/commit/c4702ca8c026e2d265aca0126fd3fb7bc5bb392a) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. > > The commit

Re: [jdk23] RFR: 8333827: JDK 23 RDP1 L10n resource files update

2024-06-13 Thread Naoto Sato
On Thu, 13 Jun 2024 21:38:48 GMT, Damon Nguyen wrote: > Hi all, > > This pull request contains a backport of commit > [c4702ca8](https://github.com/openjdk/jdk/commit/c4702ca8c026e2d265aca0126fd3fb7bc5bb392a) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. > > The commit

Re: [jdk23] RFR: 8333827: JDK 23 RDP1 L10n resource files update

2024-06-13 Thread Justin Lu
On Thu, 13 Jun 2024 21:38:48 GMT, Damon Nguyen wrote: > Hi all, > > This pull request contains a backport of commit > [c4702ca8](https://github.com/openjdk/jdk/commit/c4702ca8c026e2d265aca0126fd3fb7bc5bb392a) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. > > The commit

[jdk23] RFR: 8333827: JDK 23 RDP1 L10n resource files update

2024-06-13 Thread Damon Nguyen
Hi all, This pull request contains a backport of commit [c4702ca8](https://github.com/openjdk/jdk/commit/c4702ca8c026e2d265aca0126fd3fb7bc5bb392a) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. The commit being backported was authored by Damon Nguyen on 13 Jun 2024 and was

Integrated: 8333827: JDK 23 RDP1 L10n resource files update

2024-06-13 Thread Damon Nguyen
On Fri, 7 Jun 2024 22:46:44 GMT, Damon Nguyen wrote: > This issue is responsible for updating the translations of all the > localize(able) resources in the JDK. Primarily, the changes between JDK 22 > RDP 1 and the integration of the JDK 23 RDP 1 L10n drop will be translated. > > The

Integrated: 8333599: Improve description of \b matcher in j.u.r.Pattern

2024-06-13 Thread Raffaello Giulietti
On Thu, 6 Jun 2024 18:16:14 GMT, Raffaello Giulietti wrote: > A documentation-only change to match the original intent and the implemented > behavior. This pull request has now been integrated. Changeset: bb7ef030 Author:Raffaello Giulietti URL:

Re: RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v3]

2024-06-13 Thread Kevin Walls
On Tue, 11 Jun 2024 19:01:45 GMT, Weijun Wang wrote: >> Thanks I'll go through the above comments and update - some of the changes I >> see are unnecessary and from when I was trying migrating to callAs, and >> doPrivileged, and yes they can be simpler. >> >> On the allowSecurityMananger

Re: RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v10]

2024-06-13 Thread Kevin Walls
> JMX uses APIs related to the Security Mananger which are deprecated. Use of > AccessControlContext will be removed when Security Manager is removed. > > Until then, updates are needed to not require setting > -Djava.security.manager=allow to use JMX authentication. Kevin Walls has updated

Re: RFR: 8333867: SHA3 performance can be improved [v2]

2024-06-13 Thread Valerie Peng
On Wed, 12 Jun 2024 14:08:43 GMT, Ferenc Rakoczi wrote: >> This PR removes some unnecessary conversions between byte arrays and long >> arrays during SHA3 digest computations. > > Ferenc Rakoczi has updated the pull request incrementally with one additional > commit since the last revision: >

[jdk23] Integrated: 8334162: Gatherer.defaultCombiner has an erronous @see-link

2024-06-13 Thread Viktor Klang
On Thu, 13 Jun 2024 16:47:43 GMT, Viktor Klang wrote: > Making sure that the Javadoc is correct for Gatherer This pull request has now been integrated. Changeset: 5230786a Author:Viktor Klang URL: https://git.openjdk.org/jdk/commit/5230786a0d2185d8db3f7a3843f3ae33f94f7215 Stats:

Re: RFR: 8333396: Performance regression of DecimalFormat.format [v5]

2024-06-13 Thread Naoto Sato
On Wed, 5 Jun 2024 03:59:24 GMT, lingjun-cg wrote: >> ### Performance regression of DecimalFormat.format >> From the output of perf, we can see the hottest regions contain atomic >> instructions. But when run with JDK 11, there is no such problem. The >> reason is the removed biased locking.

Re: RFR: 8333396: Performance regression of DecimalFormat.format [v5]

2024-06-13 Thread Chen Liang
On Wed, 5 Jun 2024 03:59:24 GMT, lingjun-cg wrote: >> ### Performance regression of DecimalFormat.format >> From the output of perf, we can see the hottest regions contain atomic >> instructions. But when run with JDK 11, there is no such problem. The >> reason is the removed biased locking.

Re: [jdk23] RFR: 8334162: Gatherer.defaultCombiner has an erronous @see-link

2024-06-13 Thread Iris Clark
On Thu, 13 Jun 2024 16:47:43 GMT, Viktor Klang wrote: > Making sure that the Javadoc is correct for Gatherer Marked as reviewed by iris (Reviewer). - PR Review: https://git.openjdk.org/jdk/pull/19704#pullrequestreview-2116350395

Re: RFR: 8333396: Performance regression of DecimalFormat.format [v5]

2024-06-13 Thread Chen Liang
On Thu, 13 Jun 2024 16:51:30 GMT, Justin Lu wrote: >> lingjun-cg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 896: Performance regression of DecimalFormat.format > >

Re: RFR: 8333396: Performance regression of DecimalFormat.format [v5]

2024-06-13 Thread Justin Lu
On Wed, 5 Jun 2024 03:59:24 GMT, lingjun-cg wrote: >> ### Performance regression of DecimalFormat.format >> From the output of perf, we can see the hottest regions contain atomic >> instructions. But when run with JDK 11, there is no such problem. The >> reason is the removed biased locking.

[jdk23] RFR: 8334162: Gatherer.defaultCombiner has an erronous @see-link

2024-06-13 Thread Viktor Klang
Making sure that the Javadoc is correct for Gatherer - Commit messages: - Backport cff048c7354dd947a3946d262f4752a55b7e2a43 Changes: https://git.openjdk.org/jdk/pull/19704/files Webrev: https://webrevs.openjdk.org/?repo=jdk=19704=00 Issue:

Re: RFR: 8333755: NumberFormat integer only parsing breaks when format has suffix [v3]

2024-06-13 Thread Naoto Sato
On Wed, 12 Jun 2024 21:58:25 GMT, Justin Lu wrote: >> Please review this PR and [CSR](https://bugs.openjdk.org/browse/JDK-8333920) >> which corrects a bug where NumberFormat cannot successfully parse values in >> integer only mode, when the format expects a suffix. >> >> For example, >> >>

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v2]

2024-06-13 Thread Jaikiran Pai
On Thu, 13 Jun 2024 16:02:38 GMT, Chen Liang wrote: > My suggestion is that our comment should say why we have this check here even > though there's already an identical check in end(). I now see what you mean. I'll update this appropriately tomorrow. - PR Review Comment:

RFR: 8325525: Create jtreg test case for JDK-8325203

2024-06-13 Thread Vanitha B P
Created jtreg test case for [JDK-8325203](https://bugs.openjdk.org/browse/JDK-8325203) issue. The JpackageTest created tests that the child process started from the app launched by jpackage launcher is not automatically terminated when the the launcher is terminated. - Commit

Re: [External] : Gatherer and primitive specialization

2024-06-13 Thread Paul Sandoz
> On Jun 13, 2024, at 8:20 AM, fo...@univ-mlv.fr wrote: > > > > From: "Viktor Klang" > To: "Remi Forax" , "core-libs-dev" > > Sent: Thursday, June 13, 2024 12:52:03 PM > Subject: Re: [External] : Gatherer and primitive specialization > Hi Rémi, > > Given that Collector has not been

Re: RFR: 8333714: Cleanup the usages of CHECK_EXCEPTION_NULL_FAIL macro in java launcher [v2]

2024-06-13 Thread Alan Bateman
On Thu, 6 Jun 2024 13:28:55 GMT, Jaikiran Pai wrote: >> Can I please get a review for this change which proposes to remove the >> `CHECK_EXCEPTION_NULL_FAIL` macro from the `java` launcher code? >> >> This addresses https://bugs.openjdk.org/browse/JDK-8333714. As noted in that >> JBS issue,

Integrated: 8334162: Gatherer.defaultCombiner has an erronous @see-link

2024-06-13 Thread Viktor Klang
On Wed, 12 Jun 2024 20:58:28 GMT, Viktor Klang wrote: > Erronous Javadoc reference addressed. This should be backported to 23. This pull request has now been integrated. Changeset: cff048c7 Author:Viktor Klang URL:

Re: [External] : Gatherer and primitive specialization

2024-06-13 Thread forax
> From: "Viktor Klang" > To: "Remi Forax" , "core-libs-dev" > > Sent: Thursday, June 13, 2024 12:52:03 PM > Subject: Re: [External] : Gatherer and primitive specialization > Hi Rémi, > Given that Collector has not been specialized since it was introduced, we > opted > to not specialize

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v2]

2024-06-13 Thread Chen Liang
On Thu, 13 Jun 2024 14:09:16 GMT, Jaikiran Pai wrote: >> src/java.base/share/classes/java/util/zip/Deflater.java line 904: >> >>> 902: public void close() { >>> 903: synchronized (zsRef) { >>> 904: // check if already closed >> >> Should we comment `// in case

Re: RFR: 8333714: Cleanup the usages of CHECK_EXCEPTION_NULL_FAIL macro in java launcher [v2]

2024-06-13 Thread Jaikiran Pai
On Thu, 6 Jun 2024 13:28:55 GMT, Jaikiran Pai wrote: >> Can I please get a review for this change which proposes to remove the >> `CHECK_EXCEPTION_NULL_FAIL` macro from the `java` launcher code? >> >> This addresses https://bugs.openjdk.org/browse/JDK-8333714. As noted in that >> JBS issue,

Re: [External] : Re: New candidate JEP: 471: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal

2024-06-13 Thread David Lloyd
On Thu, Jun 13, 2024 at 9:01 AM Alan Bateman wrote: > On 13/06/2024 14:22, David Lloyd wrote: > > : > > I've updated with a few commits today which solve (I think) the access > control issue, moves constant descriptors to constants in a holder class, > moves the bootstrap to

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v2]

2024-06-13 Thread Jaikiran Pai
On Wed, 12 Jun 2024 21:07:25 GMT, Chen Liang wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> convert the tests to junit > > src/java.base/share/classes/java/util/zip/Deflater.java line 904: > >> 902: public

Re: RFR: 8333854: IllegalAccessError with proxies after JDK-8332457 [v5]

2024-06-13 Thread Chen Liang
> Please review this patch that fixes a critical issue that breaks some Proxy > usages. > > Since the problematic patch from before cannot be backed out, this patch aims > to emulate the old behavior before. A diff between before the problematic > patch and this patch is available at >

Re: RFR: 8333854: IllegalAccessError with proxies after JDK-8332457 [v4]

2024-06-13 Thread Chen Liang
On Thu, 13 Jun 2024 13:59:09 GMT, Chen Liang wrote: >> src/java.base/share/classes/java/lang/reflect/ProxyGenerator.java line 676: >> >>> 674: * @param method The method for which to create a >>> proxy >>> 675: */ >>> 676: private ProxyMethod(Method method,

Re: RFR: 8333854: IllegalAccessError with proxies after JDK-8332457 [v4]

2024-06-13 Thread Chen Liang
On Thu, 13 Jun 2024 08:27:47 GMT, Claes Redestad wrote: >> Chen Liang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> More rename and code style cleanup > > src/java.base/share/classes/java/lang/reflect/ProxyGenerator.java line 676: >

Re: [External] : Re: New candidate JEP: 471: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal

2024-06-13 Thread David Lloyd
On Thu, Jun 13, 2024 at 8:39 AM Alan Bateman wrote: > On 12/06/2024 15:23, David Lloyd wrote: > > > : > . > > I have a *very* rough prototype up [1]. It adds two new accessor methods > to `ReflectionFactory`: `defaultReadObjectForSerialization` and > `defaultWriteObjectForSerialization`. It was

Re: [External] : Re: New candidate JEP: 471: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal

2024-06-13 Thread Alan Bateman
On 13/06/2024 14:22, David Lloyd wrote: : I've updated with a few commits today which solve (I think) the access control issue, moves constant descriptors to constants in a holder class, moves the bootstrap to `ConstantBootstraps`, just says "no" to caching, and cleans up a few other minor

Re: [External] : Re: New candidate JEP: 471: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal

2024-06-13 Thread Alan Bateman
On 12/06/2024 15:23, David Lloyd wrote: : . I have a *very* rough prototype up [1]. It adds two new accessor methods to `ReflectionFactory`: `defaultReadObjectForSerialization` and `defaultWriteObjectForSerialization`. It was easier than expected, due largely to the classfile API, which is

Re: RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v9]

2024-06-13 Thread Kevin Walls
> JMX uses APIs related to the Security Mananger which are deprecated. Use of > AccessControlContext will be removed when Security Manager is removed. > > Until then, updates are needed to not require setting > -Djava.security.manager=allow to use JMX authentication. Kevin Walls has updated

Re: [External] : Re: New candidate JEP: 471: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal

2024-06-13 Thread David Lloyd
On Wed, Jun 12, 2024 at 9:23 AM David Lloyd wrote: > > > On Tue, Jun 11, 2024 at 1:08 PM David Lloyd > wrote: > >> >> >> On Tue, Jun 11, 2024 at 12:57 PM Alan Bateman >> wrote: >> >>> >>> >>> On 11/06/2024 18:19, David Lloyd wrote: >>> >>> : >>> >>> I thought that might be where Alan was

Integrated: 8211847: [aix] java/lang/ProcessHandle/InfoTest.java fails: "reported cputime less than expected"

2024-06-13 Thread Christoph Langer
On Thu, 13 Jun 2024 09:47:25 GMT, Christoph Langer wrote: > It seems the error is gone meanwhile. So we can reenable the test. This pull request has now been integrated. Changeset: f5213671 Author:Christoph Langer URL:

Re: RFR: 8211847: [aix] java/lang/ProcessHandle/InfoTest.java fails: "reported cputime less than expected"

2024-06-13 Thread Christoph Langer
On Thu, 13 Jun 2024 09:47:25 GMT, Christoph Langer wrote: > It seems the error is gone meanwhile. So we can reenable the test. Trivial fix of test listing, so - PR Comment: https://git.openjdk.org/jdk/pull/19691#issuecomment-2165639694

Re: RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v8]

2024-06-13 Thread Kevin Walls
> JMX uses APIs related to the Security Mananger which are deprecated. Use of > AccessControlContext will be removed when Security Manager is removed. > > Until then, updates are needed to not require setting > -Djava.security.manager=allow to use JMX authentication. Kevin Walls has updated

Re: RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v6]

2024-06-13 Thread Kevin Walls
On Wed, 12 Jun 2024 16:41:36 GMT, Daniel Fuchs wrote: >> Kevin Walls has updated the pull request incrementally with one additional >> commit since the last revision: >> >>Undo test policy updates > > src/java.management.rmi/share/classes/javax/management/remote/rmi/RMIConnectionImpl.java

Re: RFR: 8211847: [aix] java/lang/ProcessHandle/InfoTest.java fails: "reported cputime less than expected"

2024-06-13 Thread Thomas Stuefe
On Thu, 13 Jun 2024 09:47:25 GMT, Christoph Langer wrote: > It seems the error is gone meanwhile. So we can reenable the test. Okay. Any idea what fixed the test? - Marked as reviewed by stuefe (Reviewer). PR Review:

Re: RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v6]

2024-06-13 Thread Kevin Walls
On Wed, 12 Jun 2024 20:42:27 GMT, Sean Mullan wrote: >> Kevin Walls has updated the pull request incrementally with one additional >> commit since the last revision: >> >>Undo test policy updates > >

Re: RFR: 8333358: java/io/IO/IO.java test fails intermittently [v4]

2024-06-13 Thread Pavel Rappo
> Please review this fix for an intermittent test failure. > > On some configurations, the default `expect` timeout of 10 seconds is > insufficient. It is increased to 20; it's hard to imagine a configuration for > which that new value would still be insufficient, but we'll see. > > Aside from

Re: RFR: 8333893: Optimization for StringBuilder append boolean & null [v8]

2024-06-13 Thread Shaojin Wen
On Thu, 13 Jun 2024 02:06:42 GMT, Shaojin Wen wrote: >> After PR https://github.com/openjdk/jdk/pull/16245, C2 optimizes stores into >> primitive arrays by combining values ​​into larger stores. >> >> This PR rewrites the code of appendNull and append(boolean) methods so that >> these two

Re: RFR: 8334162: Gatherer.defaultCombiner has an erronous @see-link [v2]

2024-06-13 Thread Jaikiran Pai
On Thu, 13 Jun 2024 10:48:15 GMT, Viktor Klang wrote: >> Erronous Javadoc reference addressed. This should be backported to 23. > > Viktor Klang has updated the pull request incrementally with two additional > commits since the last revision: > > - Tweaking the copyright year to reflect

Re: RFR: 8334162: Gatherer.defaultCombiner has an erronous @see-link [v2]

2024-06-13 Thread Viktor Klang
On Thu, 13 Jun 2024 01:31:46 GMT, Jaikiran Pai wrote: >> Viktor Klang has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - Tweaking the copyright year to reflect initial year AND current >> - Updating copyright year > > Hello Viktor, the

Re: RFR: 8334162: Gatherer.defaultCombiner has an erronous @see-link [v2]

2024-06-13 Thread Viktor Klang
> Erronous Javadoc reference addressed. This should be backported to 23. Viktor Klang has updated the pull request incrementally with two additional commits since the last revision: - Tweaking the copyright year to reflect initial year AND current - Updating copyright year -

Re: [External] : Gatherer and primitive specialization

2024-06-13 Thread Viktor Klang
Hi Rémi, Given that Collector has not been specialized since it was introduced, we opted to not specialize Gatherer eagerly as Valhalla Value Classes may also move the needle a bit regarding the need for specialization in general. It was also not clear how far to take such specialization―since

Re: RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v7]

2024-06-13 Thread Kevin Walls
> JMX uses APIs related to the Security Mananger which are deprecated. Use of > AccessControlContext will be removed when Security Manager is removed. > > Until then, updates are needed to not require setting > -Djava.security.manager=allow to use JMX authentication. Kevin Walls has updated

Re: RFR: 8211847: [aix] java/lang/ProcessHandle/InfoTest.java fails: "reported cputime less than expected"

2024-06-13 Thread Christoph Langer
On Thu, 13 Jun 2024 09:47:25 GMT, Christoph Langer wrote: > It seems the error is gone meanwhile. So we can reenable the test. Maybe [this one](https://github.com/openjdk/jdk/commit/4d9042043ecade75d50c25574a445e6b8ef43618)? But just guessing... - PR Comment:

Re: RFR: 8333358: java/io/IO/IO.java test fails intermittently [v2]

2024-06-13 Thread Pavel Rappo
On Thu, 13 Jun 2024 06:47:07 GMT, Jaikiran Pai wrote: > in the past on systems that Matthias has run into similar issues, it was > observed that those systems run with a very high `-concurrency` value (which > implies too many test processes running at the same time) which could cause >

RFR: 8211847: [aix] java/lang/ProcessHandle/InfoTest.java fails: "reported cputime less than expected"

2024-06-13 Thread Christoph Langer
It seems the error is gone meanwhile. So we can reenable the test. - Commit messages: - JDK-8211847 Changes: https://git.openjdk.org/jdk/pull/19691/files Webrev: https://webrevs.openjdk.org/?repo=jdk=19691=00 Issue: https://bugs.openjdk.org/browse/JDK-8211847 Stats: 1 line in

Re: RFR: 8333893: Optimization for StringBuilder append boolean & null [v8]

2024-06-13 Thread Claes Redestad
On Thu, 13 Jun 2024 02:06:42 GMT, Shaojin Wen wrote: >> After PR https://github.com/openjdk/jdk/pull/16245, C2 optimizes stores into >> primitive arrays by combining values ​​into larger stores. >> >> This PR rewrites the code of appendNull and append(boolean) methods so that >> these two

Re: RFR: 8294960: Convert java.base/java.lang.invoke package to use the Classfile API to generate lambdas and method handles [v18]

2024-06-13 Thread Claes Redestad
On Thu, 6 Jun 2024 11:41:05 GMT, Chen Liang wrote: >> Adam Sotona has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - reverted static initialization of ConstantPoolBuilder and CP entries >> - fixed naming conventions > >

Re: RFR: 8333854: IllegalAccessError with proxies after JDK-8332457 [v4]

2024-06-13 Thread Claes Redestad
On Wed, 12 Jun 2024 22:00:45 GMT, Chen Liang wrote: >> Please review this patch that fixes a critical issue that breaks some Proxy >> usages. >> >> Since the problematic patch from before cannot be backed out, this patch >> aims to emulate the old behavior before. A diff between before the

Gatherer and primitive specialization

2024-06-13 Thread Remi Forax
Hello, the Gatherer API do not provide primitive specialization while intermediate methods like map(), flatMap() or mapMulti() do. Unlike collectors where it is okay to not be specialized because most collectors mutate a collection that is not specialized too, gatherers can process/transform

Re: RFR: 8333358: java/io/IO/IO.java test fails intermittently [v3]

2024-06-13 Thread Jaikiran Pai
On Thu, 13 Jun 2024 08:05:15 GMT, Alan Bateman wrote: >> Looking briefly at this, I think we should be able to provide this as a >> feature of jtreg's support of `junit` test itself. I've created >> https://bugs.openjdk.org/browse/CODETOOLS-7903751 to investigate this >> support in jtreg. > >

Re: RFR: 8333358: java/io/IO/IO.java test fails intermittently [v3]

2024-06-13 Thread Alan Bateman
On Thu, 13 Jun 2024 06:59:39 GMT, Jaikiran Pai wrote: >> test/jdk/java/io/IO/IO.java line 192: >> >>> 190: // adapted from >>> https://junit.org/junit5/docs/current/user-guide/#extensions-lifecycle-callbacks-timing-extension >>> 191: >>> 192: public static class TimingExtension

Re: RFR: 8333893: Optimization for StringBuilder append boolean & null [v4]

2024-06-13 Thread Emanuel Peter
On Wed, 12 Jun 2024 15:58:59 GMT, Shaojin Wen wrote: >>> @eme64 It seems like MergeStore didn't happen, is there something I did >>> wrong? >> >> Yes ;) >> >> @wenshao The issue is that the pattern matching is quite **limited**. >> `putCharsAt(byte[] value, int i, char c1, char c2, char c3,

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v2]

2024-06-13 Thread Jaikiran Pai
On Wed, 12 Jun 2024 21:08:35 GMT, Chen Liang wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> convert the tests to junit > > test/jdk/java/util/zip/DeflaterClose.java line 2: > >> 1: /* >> 2: * Copyright (c)

Re: RFR: 8225763: Inflater and Deflater should implement AutoCloseable [v2]

2024-06-13 Thread Jaikiran Pai
> Can I please get a review of this enhancement which proposes to enhance > `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? > > The actual work for this was done a few years back when we discussed the > proposed approaches and then I raised a RFR. At that time I

Re: RFR: 8333358: java/io/IO/IO.java test fails intermittently [v3]

2024-06-13 Thread Jaikiran Pai
On Thu, 13 Jun 2024 06:29:36 GMT, Alan Bateman wrote: >> Pavel Rappo has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Disable timeout in expect scripts > > test/jdk/java/io/IO/IO.java line 192: > >> 190: // adapted from >>

Re: RFR: 8333358: java/io/IO/IO.java test fails intermittently [v2]

2024-06-13 Thread Jaikiran Pai
On Wed, 12 Jun 2024 19:02:30 GMT, Pavel Rappo wrote: > Preliminary testing on some affected configurations showed that even 20 > seconds might not be enough. Initially, I suggested that it would be hard to > imagine, yet here we are. I haven't seen the jtreg launch command or the jtr files

Re: RFR: 8333358: java/io/IO/IO.java test fails intermittently [v3]

2024-06-13 Thread Alan Bateman
On Wed, 12 Jun 2024 19:06:23 GMT, Pavel Rappo wrote: >> Please review this fix for an intermittent test failure. >> >> On some configurations, the default `expect` timeout of 10 seconds is >> insufficient. It is increased to 20; it's hard to imagine a configuration >> for which that new value

Re: RFR: 8334162: Gatherer.defaultCombiner has an erronous @see-link

2024-06-13 Thread Alan Bateman
On Wed, 12 Jun 2024 20:58:28 GMT, Viktor Klang wrote: > Erronous Javadoc reference addressed. This should be backported to 23. Marked as reviewed by alanb (Reviewer). - PR Review: https://git.openjdk.org/jdk/pull/19682#pullrequestreview-2114807878