Re: RFR: 8342382: Implement JEP 522: G1 GC: Improve Throughput by Reducing Synchronization [v54]

2025-09-08 Thread Fei Yang
On Mon, 8 Sep 2025 09:09:49 GMT, Thomas Schatzl wrote: >> Hi all, >> >> please review this change that implements (currently Draft) JEP: G1: >> Improve Application Throughput with a More Efficient Write-Barrier. >> >> The reason for posting this early is that this is a large change, and the

Re: RFR: 8328874: Class::forName0 should validate the class name length early [v12]

2025-09-08 Thread Guanqiang Han
On Wed, 3 Sep 2025 18:40:26 GMT, Roger Riggs wrote: >> Guanqiang Han has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update Class.java >> >> change overflow check > >> /reviewers 2 reviewer >> >> I recommend putting this PR on hold

Re: RFR: 8328874: Class::forName0 should validate the class name length early [v16]

2025-09-08 Thread Chen Liang
On Tue, 9 Sep 2025 01:05:37 GMT, Guanqiang Han wrote: >> Validate class name length immediately after GetStringUTFLength() in >> Class.forName0. This prevents potential issues caused by overly long class >> names before they reach later code that would reject them, throwing >> ClassNotFoundExc

Re: RFR: 8328874: Class::forName0 should validate the class name length early [v16]

2025-09-08 Thread Guanqiang Han
> Validate class name length immediately after GetStringUTFLength() in > Class.forName0. This prevents potential issues caused by overly long class > names before they reach later code that would reject them, throwing > ClassNotFoundException early. Guanqiang Han has updated the pull request in

Re: RFR: 8328874: Class::forName0 should validate the class name length early [v15]

2025-09-08 Thread Guanqiang Han
On Sun, 7 Sep 2025 20:09:53 GMT, Chen Liang wrote: >> Guanqiang Han has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Use a different native method for testNative, since the implementation of >> forName has changed. > > src/java.base/shar

Re: RFR: 8367027: java/lang/ProcessBuilder/Basic.java fails on Windows AArch64

2025-09-08 Thread Roger Riggs
On Sat, 6 Sep 2025 20:44:55 GMT, Saint Wesonga wrote: > This test fails with errors like > >'=C:=,=ExitValue=3,PROCESSOR_ARCHITECTURE=ARM64,SystemRoot=C:\Windows,'< not > equal to '=C:=,=ExitValue=3,SystemRoot=C:\Windows,' > > The test does not expect the PROCESSOR_ARCHITECTURE variable to be

Re: RFR: 8366837: Clean up gensrc by spp.Spp

2025-09-08 Thread Erik Joelsson
On Sat, 6 Sep 2025 09:02:59 GMT, Magnus Ihse Bursie wrote: >> I think it is per our standard. It seems the Github diff viewer expands tabs >> to 4 spaces, which makes it looks incorrect. > > Turns out you can actually change the tab size setting on GitHub. They set 4 > as default but you can ch

Re: RFR: 8366837: Clean up gensrc by spp.Spp

2025-09-08 Thread Philip Race
I submitted a bug report : https://bugs.openjdk.org/browse/JDK-8367130 -phil. On 9/8/25 11:52 AM, Philip Race wrote: Looks like it broke all the builds. So a P1 backout is needed. -phil. On 9/8/25 11:27 AM, Alan Bateman wrote: On Mon, 8 Sep 2025 18:06:54 GMT, Chen Liang wrote: This patch r

RFR: 8367130: JDK builds broken by 8366837: Clean up gensrc by spp.Spp

2025-09-08 Thread Erik Joelsson
Builds on all platforms are currently broken due to a clash between [JDK-8366837](https://bugs.openjdk.org/browse/JDK-8366837) and [JDK-8366455](https://bugs.openjdk.org/browse/JDK-8366455). The former changed the name of a variable that the latter introduced a new usage of. The fix is simple,

Re: RFR: 8077587: BigInteger Roots [v83]

2025-09-08 Thread fabioromano1
> This PR implements nth root computation for BigIntegers using Newton method. fabioromano1 has updated the pull request incrementally with one additional commit since the last revision: Removed MBI.valueOf(double) - Changes: - all: https://git.openjdk.org/jdk/pull/24898/files

Re: RFR: 8366261: Provide utility methods for sun.security.util.Password [v5]

2025-09-08 Thread Naoto Sato
On Sat, 6 Sep 2025 01:09:04 GMT, Weijun Wang wrote: >> Ah, yes. Comment does not align with the code. I am fine either way too. > > Either is OK. `Optional` sounds more modern and forces me to consider the > empty case. Fixed the comment to agree with the code - PR Review Comment:

Re: RFR: 8342382: Implement JEP 522: G1 GC: Improve Throughput by Reducing Synchronization [v54]

2025-09-08 Thread Thomas Schatzl
On Mon, 8 Sep 2025 09:09:49 GMT, Thomas Schatzl wrote: >> Hi all, >> >> please review this change that implements (currently Draft) JEP: G1: >> Improve Application Throughput with a More Efficient Write-Barrier. >> >> The reason for posting this early is that this is a large change, and the

Re: RFR: 8366837: Clean up gensrc by spp.Spp

2025-09-08 Thread xxDark
On Wed, 3 Sep 2025 20:17:50 GMT, Magnus Ihse Bursie wrote: > Several java classes in java.base is generated from templates using SPP, the > "Stream Preprocessor". Unfortunately much of this code is very old and has > survived unchanged since pre-JDK 7. It does not follow modern makefile > stan

Re: RFR: 8077587: BigInteger Roots [v82]

2025-09-08 Thread Raffaello Giulietti
On Mon, 8 Sep 2025 14:34:06 GMT, fabioromano1 wrote: >> This PR implements nth root computation for BigIntegers using Newton method. > > fabioromano1 has updated the pull request incrementally with one additional > commit since the last revision: > > Revision changes Personally I tend to rem

Re: RFR: 8366478: BigDecimal roots

2025-09-08 Thread fabioromano1
On Mon, 8 Sep 2025 16:25:00 GMT, fabioromano1 wrote: > An implementation of `BigDecimal.nthRoot(int, MathContext)`. @rgiulietti Here is the PR. - PR Comment: https://git.openjdk.org/jdk/pull/27148#issuecomment-3267146884

Re: RFR: 8366261: Provide utility methods for sun.security.util.Password [v6]

2025-09-08 Thread Naoto Sato
> Providing a couple of utility methods using the "built-in" `Console` > implementation to support tools that require password input, such as > `keytool`, ensuring they work even when std0ut is redirected. Naoto Sato has updated the pull request incrementally with one additional commit since th

Integrated: 8367021: Regression in LocaleDataTest refactoring

2025-09-08 Thread Naoto Sato
On Fri, 5 Sep 2025 23:03:08 GMT, Naoto Sato wrote: > A small fix to a locale test regression. Auto flush was incorrectly set to > default (= false) by the prior fix. This pull request has now been integrated. Changeset: 48831c65 Author:Naoto Sato URL: https://git.openjdk.org/jdk/co

Re: RFR: 8367021: Regression in LocaleDataTest refactoring

2025-09-08 Thread Naoto Sato
On Fri, 5 Sep 2025 23:03:08 GMT, Naoto Sato wrote: > A small fix to a locale test regression. Auto flush was incorrectly set to > default (= false) by the prior fix. Thanks for the reviews! - PR Comment: https://git.openjdk.org/jdk/pull/27130#issuecomment-3267052349

Integrated: 8077587: BigInteger Roots

2025-09-08 Thread fabioromano1
On Sat, 26 Apr 2025 16:15:29 GMT, fabioromano1 wrote: > This PR implements nth root computation for BigIntegers using Newton method. This pull request has now been integrated. Changeset: ab12fbfd Author:Fabio Romano Committer: Raffaello Giulietti URL: https://git.openjdk.org/jdk/co

Re: RFR: 8077587: BigInteger Roots [v83]

2025-09-08 Thread duke
On Mon, 8 Sep 2025 15:45:07 GMT, fabioromano1 wrote: >> This PR implements nth root computation for BigIntegers using Newton method. > > fabioromano1 has updated the pull request incrementally with one additional > commit since the last revision: > > Removed MBI.valueOf(double) @fabioromano1

Re: RFR: 8077587: BigInteger Roots [v82]

2025-09-08 Thread fabioromano1
On Mon, 8 Sep 2025 15:08:24 GMT, Raffaello Giulietti wrote: >> fabioromano1 has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Revision changes > > Personally I tend to remove code that is not used. > I can't recall why it was added: there

Re: RFR: 8077587: BigInteger Roots [v82]

2025-09-08 Thread Raffaello Giulietti
On Mon, 8 Sep 2025 14:34:06 GMT, fabioromano1 wrote: >> This PR implements nth root computation for BigIntegers using Newton method. > > fabioromano1 has updated the pull request incrementally with one additional > commit since the last revision: > > Revision changes @jddarcy @fabioromano1 I

Re: RFR: 8077587: BigInteger Roots [v82]

2025-09-08 Thread fabioromano1
On Mon, 8 Sep 2025 14:58:19 GMT, Raffaello Giulietti wrote: >> fabioromano1 has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Revision changes > > @jddarcy @fabioromano1 It seems that `MutableBigInteger.valueOf()` is not > used. @rgiuli

Re: RFR: 8077587: BigInteger Roots [v82]

2025-09-08 Thread fabioromano1
> This PR implements nth root computation for BigIntegers using Newton method. fabioromano1 has updated the pull request incrementally with one additional commit since the last revision: Revision changes - Changes: - all: https://git.openjdk.org/jdk/pull/24898/files - new: ht

Re: RFR: 8342869: Errors related to unused code on Windows after 8339120 in awt [v2]

2025-09-08 Thread Julian Waters
> After 8339120, gcc began catching many different instances of unused code in > the Windows specific codebase. Some of these seem to be bugs. I've taken the > effort to mark out all the relevant globals and locals that trigger the > unused warnings and addressed all of them by commenting out th

Re: RFR: 8366837: Clean up gensrc by spp.Spp

2025-09-08 Thread Erik Joelsson
On Wed, 3 Sep 2025 20:17:50 GMT, Magnus Ihse Bursie wrote: > Several java classes in java.base is generated from templates using SPP, the > "Stream Preprocessor". Unfortunately much of this code is very old and has > survived unchanged since pre-JDK 7. It does not follow modern makefile > stan

Re: StableValue and non-deterministic iteration order

2025-09-08 Thread Stephen Colebourne
On Mon, 8 Sept 2025 at 08:34, Per-Ake Minborg wrote: > I think there is a more general discussion to be had that should be aligned > with the direction of the immutable collections and any potential constructs > with deterministic order there. I agree, because the direction of travel for Map.of

Re: RFR: 8342382: Implement JEP 522: G1 GC: Improve Throughput by Reducing Synchronization [v54]

2025-09-08 Thread Thomas Schatzl
> Hi all, > > please review this change that implements (currently Draft) JEP: G1: > Improve Application Throughput with a More Efficient Write-Barrier. > > The reason for posting this early is that this is a large change, and the JEP > process is already taking very long with no end in sight

Re: RFR: 8366588: VectorAPI: Re-intrinsify VectorMask.laneIsSet where the input index is a variable

2025-09-08 Thread Aleksey Shipilev
On Mon, 8 Sep 2025 01:22:46 GMT, erifan wrote: >> test/micro/org/openjdk/bench/jdk/incubator/vector/VectorExtractBenchmark.java >> line 34: >> >>> 32: @Warmup(iterations = 5, time = 1) >>> 33: @Measurement(iterations = 5, time = 1) >>> 34: @Fork(value = 1, jvmArgs = {"--add-modules=jdk.incubato

Re: StableValue and non-deterministic iteration order

2025-09-08 Thread Per-Ake Minborg
Stable Map Background The iteration order of `StableValue.map()` is not specified, and the returned map is not an instance of SequencedMap. The current implementation happens to rely on Map.of() for which the iteration order of mappings is specified to be unspecified and subject to change (i.e.,

Re: RFR: 8356995: Provide default methods min(T, T) and max(T, T) in Comparator interface [v7]

2025-09-08 Thread Tagir F . Valeev
On Sun, 3 Aug 2025 13:42:41 GMT, Tagir F. Valeev wrote: >> Implementation of Comparator.min and Comparator.max methods. Preliminary >> discussion is in this thread: >> https://mail.openjdk.org/pipermail/core-libs-dev/2025-May/145638.html >> The specification is mostly composed of Math.min/max an