RFR: 8349959: Test CR6740048.java passes unexpectedly missing CR6740048.xsd

2025-02-13 Thread SendaoYan
Hi all, Test test/jaxp/javax/xml/jaxp/unittest/validation/CR6740048.java run passes unexpectedly when missing the depentdent file test/jaxp/javax/xml/jaxp/unittest/validation/CR6740048.xsd. This PR add a NULL check after call `getResourceAsStream("CR6740048.xsd")`. This PR do not change the or

RFR: 8349909: jdk.internal.jimage.decompressor.ZipDecompressor does not close the Inflater in exceptional cases

2025-02-13 Thread Jaikiran Pai
Can I please get a review of this change which proposes to properly close the `Inflater` instance used in `jdk.internal.jimage.decompressor.ZipDecompressor.decompress()` method? This addresses https://bugs.openjdk.org/browse/JDK-8349909. As noted in that issue, in the exceptional case in the `d

Re: RFR: 8347946: Add API note that caller should validate/trust signers to the getCertificates and getCodeSigners methods of JarEntry and JarURLConnection

2025-02-13 Thread Jaikiran Pai
On Thu, 13 Feb 2025 16:27:03 GMT, Sean Mullan wrote: > This change adds an API note to these methods recommending that the caller > should perform further validation steps on the code signers that signed the > JAR file, such as validating the code signer's certificate chain, and > determining

Re: RFR: 8344332: (bf) Migrate DirectByteBuffer to use java.lang.ref.Cleaner [v11]

2025-02-13 Thread Kim Barrett
On Mon, 10 Feb 2025 09:28:45 GMT, Aleksey Shipilev wrote: >> @AlanBateman I've not done any work on JDK-8305186. There has also been >> discussion about making >> that function non-private or even public (though with concerns about >> specification difficulty) for use in >> places like this. >

Re: RFR: 8349206: j.u.l.Handler classes create deadlock risk via synchronized publish() method

2025-02-13 Thread Jason Mehrens
On Thu, 6 Feb 2025 12:07:57 GMT, David Beaumont wrote: > 8349206: j.u.l.Handler classes create deadlock risk via synchronized > publish() method. > > 1. Remove synchronization of calls to publish() in Handlers in > java.util.logging package. > 2. Add explanatory comments to various affected me

Re: RFR: 8349206: j.u.l.Handler classes create deadlock risk via synchronized publish() method

2025-02-13 Thread Jason Mehrens
On Thu, 13 Feb 2025 22:43:59 GMT, David Beaumont wrote: >Yes, it's certainly something you can deliberately provoke in a way that >wasn't possible before. Setting limit to 1 byte with a large count is a way to make sure each log file contains 0 or 1 log record. I think this patch breaks that

RFR: 8350049: [JMH] Float16OperationsBenchmark fails java.lang.NoClassDefFoundError

2025-02-13 Thread SendaoYan
Hi all, The newly added JMH tests 'org.openjdk.bench.jdk.incubator.vector.VectorMultiplyOptBenchmark' fails "java.lang.NoClassDefFoundError: jdk/incubator/vector/Float16" by below test command: make test MICRO="FORK=1;WARMUP_ITER=2" TEST="micro:org.openjdk.bench.jdk.incubator.vector.VectorMu

Re: RFR: 8349943: [JMH] Use jvmArgs consistently

2025-02-13 Thread SendaoYan
On Thu, 13 Feb 2025 08:35:47 GMT, Nicole Xu wrote: > As is suggested in > [JDK-8342958](https://bugs.openjdk.org/browse/JDK-8342958), `jvmArgs` should > be used consistently in microbenchmarks to 'align with the intuition that > when you use jvmArgsAppend/-Prepend intent is to add to a set of

Re: RFR: 8350011: Convert jpackage test lib tests in JUnit format [v2]

2025-02-13 Thread Alexander Matveev
On Fri, 14 Feb 2025 01:40:59 GMT, Alexey Semenyuk wrote: >> Convert jpackage test library tests in JUnit format. This simplifies running >> them in IDE. >> >> Added >> [JUnitAdapter](https://github.com/openjdk/jdk/pull/23615/files#diff-8719943fb769c04daf413427dc812650763f588cbd0ef6b50cccd11260

Re: RFR: 8350011: Convert jpackage test lib tests in JUnit format [v2]

2025-02-13 Thread Alexey Semenyuk
> Convert jpackage test library tests in JUnit format. This simplifies running > them in IDE. > > Added > [JUnitAdapter](https://github.com/openjdk/jdk/pull/23615/files#diff-8719943fb769c04daf413427dc812650763f588cbd0ef6b50cccd11260353c0a) > class to simplify running jpackage test-lib tests wit

Re: RFR: 8350011: Convert jpackage test lib tests in JUnit format

2025-02-13 Thread Alexey Semenyuk
On Thu, 13 Feb 2025 23:49:24 GMT, Alexander Matveev wrote: >> Convert jpackage test library tests in JUnit format. This simplifies running >> them in IDE. >> >> Added >> [JUnitAdapter](https://github.com/openjdk/jdk/pull/23615/files#diff-8719943fb769c04daf413427dc812650763f588cbd0ef6b50cccd11

Re: RFR: 8350011: Convert jpackage test lib tests in JUnit format

2025-02-13 Thread Alexander Matveev
On Thu, 13 Feb 2025 14:37:50 GMT, Alexey Semenyuk wrote: > Convert jpackage test library tests in JUnit format. This simplifies running > them in IDE. > > Added > [JUnitAdapter](https://github.com/openjdk/jdk/pull/23615/files#diff-8719943fb769c04daf413427dc812650763f588cbd0ef6b50cccd11260353c0

Re: RFR: 8349759: Fix CertificateBuilder and SimpleOCSPServer test utilities to support PQC algorithms [v3]

2025-02-13 Thread Jamil Nimeh
> This fix makes some minor changes to the internals of the > `CertificateBuilder` and `SimpleOCSPServer` test classes. They would break > when ML-DSA was selected as key and signing algorithms. Also RSASSA-PSS > works better now with these changes. I've also taken this opportunity to do > s

Re: RFR: 8350011: Convert jpackage test lib tests in JUnit format

2025-02-13 Thread Alexey Semenyuk
On Thu, 13 Feb 2025 14:37:50 GMT, Alexey Semenyuk wrote: > Convert jpackage test library tests in JUnit format. This simplifies running > them in IDE. > > Added > [JUnitAdapter](https://github.com/openjdk/jdk/pull/23615/files#diff-8719943fb769c04daf413427dc812650763f588cbd0ef6b50cccd11260353c0

RFR: 8350011: Convert jpackage test lib tests in JUnit format

2025-02-13 Thread Alexey Semenyuk
Convert jpackage test library tests in JUnit format. This simplifies running them in IDE. Added [JUnitAdapter](https://github.com/openjdk/jdk/pull/23615/files#diff-8719943fb769c04daf413427dc812650763f588cbd0ef6b50cccd11260353c0a) class to simplify running jpackage test-lib tests with JUnit. `J

Integrated: 8285624: jpackage fails to create exe, msi when Windows OS is in FIPS mode

2025-02-13 Thread Alexey Semenyuk
On Thu, 13 Feb 2025 12:43:57 GMT, Alexey Semenyuk wrote: > Make jpackage capable of using wix3 when Federal Information Processing > Standard (FIPS) mode is enabled on Windows. > > When FIPS mode is enabled, running `candle.exe -?` prints: > > candle.exe : error CNDL0308 : The Federal Informat

Re: RFR: 8349206: j.u.l.Handler classes create deadlock risk via synchronized publish() method

2025-02-13 Thread David Beaumont
On Thu, 13 Feb 2025 19:38:47 GMT, Jason Mehrens wrote: >> We could, but I don't think it matters. This issue is the first one pointed >> out in the CSR, and my current feeling is that since it's stated that the >> limit is "best effort" and there's always the chance that the final log >> befor

Re: RFR: 8349759: Fix CertificateBuilder and SimpleOCSPServer test utilities to support PQC algorithms [v2]

2025-02-13 Thread Jamil Nimeh
On Thu, 13 Feb 2025 19:34:04 GMT, Sean Mullan wrote: >> Jamil Nimeh has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix JBS ID and summary in test > > test/lib/jdk/test/lib/security/CertificateBuilder.java line 462: > >> 460:

Re: RFR: 8349759: Fix CertificateBuilder and SimpleOCSPServer test utilities to support PQC algorithms [v2]

2025-02-13 Thread Jamil Nimeh
> This fix makes some minor changes to the internals of the > `CertificateBuilder` and `SimpleOCSPServer` test classes. They would break > when ML-DSA was selected as key and signing algorithms. Also RSASSA-PSS > works better now with these changes. I've also taken this opportunity to do > s

Re: RFR: 8349759: Fix CertificateBuilder and SimpleOCSPServer test utilities to support PQC algorithms

2025-02-13 Thread Jamil Nimeh
On Thu, 13 Feb 2025 19:52:32 GMT, Sean Mullan wrote: > Also, should it be moved to somewhere else like > jdk/test/sun/security/provider/certpath? Hmmm...not sure about that, but maybe an explanation is in order: Because the JDK only implements the client side with OCSP, we rely on CertPathVali

Re: JDK-8072840: Presizing for Stream Collectors

2025-02-13 Thread Viktor Klang
Indeed. I hope I didn't sound discouraging about the possibility to propagate the stream size information. I merely want to emphasize that it may necessitate a slightly broader take on the problem of propagation of stream-instance metadata, especially in the face of Gatherers becoming a finaliz

Integrated: 8349883: Locale.LanguageRange.parse("-") throws ArrayIndexOutOfBoundsException

2025-02-13 Thread Justin Lu
On Wed, 12 Feb 2025 19:34:19 GMT, Justin Lu wrote: > Please review this PR which prevents a (non-specified) `AIOOBE` from leaking > out of the range accepting endpoints in `Locale.LanguageRange`. > > In the reported error case, the invalid range is a lone "-" which is `split` > into an empty a

Re: RFR: 8349503: Consolidate multi-byte access into ByteArray

2025-02-13 Thread Phil Race
On Thu, 6 Feb 2025 14:30:30 GMT, Per Minborg wrote: >> `MethodHandles.byteArrayViewVarHandle` exposes checked multi-byte access to >> byte arrays via VarHandle. This larger access speeds up many operations, yet >> it cannot be used in early bootstrap, and as a result, people tend to use >> `Un

Re: RFR: 8285624: jpackage fails to create exe, msi when Windows OS is in FIPS mode

2025-02-13 Thread Alexander Matveev
On Thu, 13 Feb 2025 12:43:57 GMT, Alexey Semenyuk wrote: > Make jpackage capable of using wix3 when Federal Information Processing > Standard (FIPS) mode is enabled on Windows. > > When FIPS mode is enabled, running `candle.exe -?` prints: > > candle.exe : error CNDL0308 : The Federal Informat

Re: RFR: 8341402: BigDecimal's square root optimization [v31]

2025-02-13 Thread Joe Darcy
On Mon, 10 Feb 2025 09:17:51 GMT, Per Minborg wrote: > This PR seems to be targeting performance, yet no benchmarks are provided > comparing the current vs. proposed branch with respect to performance. We > need to understand the upside of the proposed changes. At my request, reimplementing Bi

Re: RFR: 8138614: (spec str) StringBuffer and StringBuilder methods improperly require "new" String to be returned [v2]

2025-02-13 Thread Stuart Marks
On Thu, 13 Feb 2025 20:51:26 GMT, Stuart Marks wrote: >> A couple adjustments to the specs for four methods of StringBuilder and >> StringBuffer so that they no longer require new Strings to be created, just >> a String with the right contents. No implementation changes. Note that the >> actua

Integrated: 8349873: StackOverflowError after JDK-8342550 if -Duser.timezone= is set to a deprecated zone id

2025-02-13 Thread Naoto Sato
On Wed, 12 Feb 2025 19:35:18 GMT, Naoto Sato wrote: > Fixing the regression caused by the JDK-8342550 fix. Since the logging > facility depends on TimeZone class, it should not use the logging facility. > Replacing the logging with simple System.err.printf() will fix the issue. This pull reque

Re: RFR: 8349873: StackOverflowError after JDK-8342550 if -Duser.timezone= is set to a deprecated zone id [v2]

2025-02-13 Thread Naoto Sato
On Wed, 12 Feb 2025 23:07:26 GMT, Naoto Sato wrote: >> Fixing the regression caused by the JDK-8342550 fix. Since the logging >> facility depends on TimeZone class, it should not use the logging facility. >> Replacing the logging with simple System.err.printf() will fix the issue. > > Naoto Sat

Re: RFR: 8138614: (spec str) StringBuffer and StringBuilder methods improperly require "new" String to be returned [v2]

2025-02-13 Thread Stuart Marks
> A couple adjustments to the specs for four methods of StringBuilder and > StringBuffer so that they no longer require new Strings to be created, just a > String with the right contents. No implementation changes. Note that the > actual specs (and implementations) are actually in AbstractString

Re: RFR: 8349873: StackOverflowError after JDK-8342550 if -Duser.timezone= is set to a deprecated zone id [v2]

2025-02-13 Thread Joe Wang
On Wed, 12 Feb 2025 23:07:26 GMT, Naoto Sato wrote: >> Fixing the regression caused by the JDK-8342550 fix. Since the logging >> facility depends on TimeZone class, it should not use the logging facility. >> Replacing the logging with simple System.err.printf() will fix the issue. > > Naoto Sat

Re: RFR: 8349943: [JMH] Use jvmArgs consistently

2025-02-13 Thread Chen Liang
On Thu, 13 Feb 2025 08:35:47 GMT, Nicole Xu wrote: > As is suggested in > [JDK-8342958](https://bugs.openjdk.org/browse/JDK-8342958), `jvmArgs` should > be used consistently in microbenchmarks to 'align with the intuition that > when you use jvmArgsAppend/-Prepend intent is to add to a set of

Re: RFR: 8349759: Fix CertificateBuilder and SimpleOCSPServer test utilities to support PQC algorithms

2025-02-13 Thread Jesper Wilhelmsson
On Thu, 13 Feb 2025 19:49:37 GMT, Sean Mullan wrote: > That's a good question. I usually add the `noreg-self` label even it it is a > brand new test and not a fix to an existing test and there is no other JDK > code changes. @JesperIRL do you have any advice for this situation? `noreg-self` is

Re: RFR: 8138614: (spec str) StringBuffer and StringBuilder methods improperly require "new" String to be returned

2025-02-13 Thread Chen Liang
On Wed, 12 Feb 2025 19:55:29 GMT, Stuart Marks wrote: > A couple adjustments to the specs for four methods of StringBuilder and > StringBuffer so that they no longer require new Strings to be created, just a > String with the right contents. No implementation changes. Note that the > actual sp

Re: RFR: 8349759: Fix CertificateBuilder and SimpleOCSPServer test utilities to support PQC algorithms

2025-02-13 Thread Sean Mullan
On Thu, 13 Feb 2025 19:45:19 GMT, Sean Mullan wrote: >> This fix makes some minor changes to the internals of the >> `CertificateBuilder` and `SimpleOCSPServer` test classes. They would break >> when ML-DSA was selected as key and signing algorithms. Also RSASSA-PSS >> works better now with

Re: RFR: 8349759: Fix CertificateBuilder and SimpleOCSPServer test utilities to support PQC algorithms

2025-02-13 Thread Sean Mullan
On Thu, 13 Feb 2025 18:58:00 GMT, Sean Mullan wrote: >> This fix makes some minor changes to the internals of the >> `CertificateBuilder` and `SimpleOCSPServer` test classes. They would break >> when ML-DSA was selected as key and signing algorithms. Also RSASSA-PSS >> works better now with

Re: RFR: 8349759: Fix CertificateBuilder and SimpleOCSPServer test utilities to support PQC algorithms

2025-02-13 Thread Sean Mullan
On Tue, 11 Feb 2025 17:50:45 GMT, Jamil Nimeh wrote: > This fix makes some minor changes to the internals of the > `CertificateBuilder` and `SimpleOCSPServer` test classes. They would break > when ML-DSA was selected as key and signing algorithms. Also RSASSA-PSS > works better now with thes

Re: RFR: 8349206: j.u.l.Handler classes create deadlock risk via synchronized publish() method

2025-02-13 Thread Jason Mehrens
On Thu, 13 Feb 2025 09:32:29 GMT, David Beaumont wrote: >> hmmm... Thanks for chiming in Jason. Good point. So what can happen here is >> that if multiple threads log concurrently to the same FileHandler then log >> records might continue to get written to the file after the limit has been >>

Re: RFR: 8138614: (spec str) StringBuffer and StringBuilder methods improperly require "new" String to be returned

2025-02-13 Thread Stuart Marks
On Wed, 12 Feb 2025 19:55:29 GMT, Stuart Marks wrote: > A couple adjustments to the specs for four methods of StringBuilder and > StringBuffer so that they no longer require new Strings to be created, just a > String with the right contents. No implementation changes. Note that the > actual sp

Re: RFR: 8349759: Fix CertificateBuilder and SimpleOCSPServer test utilities to support PQC algorithms

2025-02-13 Thread Jamil Nimeh
On Thu, 13 Feb 2025 18:58:00 GMT, Sean Mullan wrote: >> This fix makes some minor changes to the internals of the >> `CertificateBuilder` and `SimpleOCSPServer` test classes. They would break >> when ML-DSA was selected as key and signing algorithms. Also RSASSA-PSS >> works better now with

Re: RFR: 8349759: Fix CertificateBuilder and SimpleOCSPServer test utilities to support PQC algorithms

2025-02-13 Thread Jamil Nimeh
On Tue, 11 Feb 2025 17:50:45 GMT, Jamil Nimeh wrote: > This fix makes some minor changes to the internals of the > `CertificateBuilder` and `SimpleOCSPServer` test classes. They would break > when ML-DSA was selected as key and signing algorithms. Also RSASSA-PSS > works better now with thes

Re: Adding BigDecimal.valueOf(float val) constructor

2025-02-13 Thread Kevin Bourrillion
My latest thoughts; please advise if I have misunderstood anything. On Jan 24, 2025, at 3:11 AM, Jan Kowalski wrote: I'd say that, if it's possible, we should reduce the arithmetic artifacts, rather than introduce them through not really needed, and not visible at the first sight, type conver

Re: JDK-8072840: Presizing for Stream Collectors

2025-02-13 Thread Paul Sandoz
Hi Fabian, Thanks for sharing and reaching out with the idea before getting too beholden to it. I logged this is quite a while ago. It seemed like a possible good idea at the time, although I never liked the duplication of suppliers. I have become less enthusiastic overtime, especially so as G

Re: RFR: 8349759: Fix CertificateBuilder and SimpleOCSPServer test utilities to support PQC algorithms

2025-02-13 Thread Sean Mullan
On Tue, 11 Feb 2025 17:50:45 GMT, Jamil Nimeh wrote: > This fix makes some minor changes to the internals of the > `CertificateBuilder` and `SimpleOCSPServer` test classes. They would break > when ML-DSA was selected as key and signing algorithms. Also RSASSA-PSS > works better now with thes

Re: RFR: 8349206: j.u.l.Handler classes create deadlock risk via synchronized publish() method

2025-02-13 Thread David Beaumont
On Thu, 13 Feb 2025 09:36:08 GMT, David Beaumont wrote: >> test/jdk/java/util/logging/LoggingDeadlock5.java line 115: >> >>> 113: >>> 114: private static class DeadLocker { >>> 115: private final static Duration JOIN_WAIT = >>> Duration.ofMillis(500); >> >> You might want to use `

Re: RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long) [v11]

2025-02-13 Thread Emanuel Peter
On Thu, 13 Feb 2025 16:43:22 GMT, Roland Westrelin wrote: > The current transformation from the parsed version of min/max to a > conditional move to a Max/Min node depends on the conditional move > transformation which has its own set of heuristics and while it happens on > simple test cases,

RFR: 8347946: Add API note that caller should validate/trust signers to the getCertificates and getCodeSigners methods of JarEntry and JarURLConnection

2025-02-13 Thread Sean Mullan
This change adds an API note to these methods recommending that the caller should perform further validation steps on the code signers that signed the JAR file, such as validating the code signer's certificate chain, and determining if the signer should be trusted. There was already a similar wa

Re: RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long) [v11]

2025-02-13 Thread Roland Westrelin
On Thu, 13 Feb 2025 11:46:35 GMT, Emanuel Peter wrote: > Do we see any other wins with your patch, that are not due to vectorization, > but just scalar code? I think there are some. The current transformation from the parsed version of min/max to a conditional move to a `Max`/`Min` node depe

Re: [External] : Re: JDK-8072840: Presizing for Stream Collectors

2025-02-13 Thread Viktor Klang
>I could see that being useful for properties such as non-nullness, which would allow collections such as ImmutableList to skip the null check in the end. I'm thinking things like ordered/unordered, whether the stream is parallel or not (might want to use different representation for a sequential

Re: JDK-8072840: Presizing for Stream Collectors

2025-02-13 Thread Fabian Meumertzheim
On Thu, Feb 13, 2025 at 3:06 PM Viktor Klang wrote: > While it may look enticing to merely propagate expected element count as an > input parameter to the supplier function, > I think it deserves some extra thought, specifically if it may make more > sense to pass some sort of StreamInfo type wh

Re: RFR: 8138614: (spec str) StringBuffer and StringBuilder methods improperly require "new" String to be returned

2025-02-13 Thread Roger Riggs
On Wed, 12 Feb 2025 19:55:29 GMT, Stuart Marks wrote: > A couple adjustments to the specs for four methods of StringBuilder and > StringBuffer so that they no longer require new Strings to be created, just a > String with the right contents. No implementation changes. Note that the > actual sp

Re: JDK-8072840: Presizing for Stream Collectors

2025-02-13 Thread Viktor Klang
Hi Fabian, Thanks for your patience, it took a bit of time to swap back in my thoughts on the matter, as I was considering this JBS issue as I was working on Gatherers (JEP461, JEP473, JEP485). While it may look enticing to merely propagate expected element count as an input parameter to the s

Re: RFR: 8285624: jpackage fails to create exe, msi when Windows OS is in FIPS mode

2025-02-13 Thread Alexey Semenyuk
On Thu, 13 Feb 2025 12:43:57 GMT, Alexey Semenyuk wrote: > Make jpackage capable of using wix3 when Federal Information Processing > Standard (FIPS) mode is enabled on Windows. > > When FIPS mode is enabled, running `candle.exe -?` prints: > > candle.exe : error CNDL0308 : The Federal Informat

RFR: 8285624: jpackage fails to create exe, msi when Windows OS is in FIPS mode

2025-02-13 Thread Alexey Semenyuk
8285624: jpackage fails to create exe, msi when Windows OS is in FIPS mode - Commit messages: - Update copyright year - 8285624: jpackage fails to create exe, msi when Windows OS is in FIPS mode Changes: https://git.openjdk.org/jdk/pull/23612/files Webrev: https://webrevs.openjdk

Re: RFR: 8346954: [JMH] jdk.incubator.vector.MaskedLogicOpts fails due to IndexOutOfBoundsException

2025-02-13 Thread Jatin Bhateja
On Thu, 13 Feb 2025 12:06:09 GMT, Jatin Bhateja wrote: >> Suite MaskedLogicOpts.maskedLogicOperationsLong512() failed on both x86 and >> AArch64 with the following error: >> >> >> java.lang.IndexOutOfBoundsException: Index 252 out of bounds for length 249 >> >> >> The variable `long256_arr_i

Re: RFR: 8346954: [JMH] jdk.incubator.vector.MaskedLogicOpts fails due to IndexOutOfBoundsException

2025-02-13 Thread Jatin Bhateja
On Wed, 8 Jan 2025 09:04:47 GMT, Nicole Xu wrote: > Suite MaskedLogicOpts.maskedLogicOperationsLong512() failed on both x86 and > AArch64 with the following error: > > > java.lang.IndexOutOfBoundsException: Index 252 out of bounds for length 249 > > > The variable `long256_arr_idx` is misuse

Integrated: 8349907: jdk.tools.jlink.internal.plugins.ZipPlugin does not close the Deflater in exceptional cases

2025-02-13 Thread Jaikiran Pai
On Wed, 12 Feb 2025 14:09:49 GMT, Jaikiran Pai wrote: > Can I please get a review of this change in > `jdk.tools.jlink.internal.plugins.ZipPlugin` which proposes to close the > `Deflater` instance cleanly? This addresses > https://bugs.openjdk.org/browse/JDK-8349907. > > As noted in that issu

Re: RFR: 8349907: jdk.tools.jlink.internal.plugins.ZipPlugin does not close the Deflater in exceptional cases [v3]

2025-02-13 Thread Jaikiran Pai
On Wed, 12 Feb 2025 16:47:29 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change in >> `jdk.tools.jlink.internal.plugins.ZipPlugin` which proposes to close the >> `Deflater` instance cleanly? This addresses >> https://bugs.openjdk.org/browse/JDK-8349907. >> >> As noted in tha

Re: RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long) [v11]

2025-02-13 Thread Emanuel Peter
On Mon, 10 Feb 2025 09:26:32 GMT, Galder Zamarreño wrote: >> @eastig is helping with the results on aarch64, so I will verify the numbers >> in same way done below for x86_64 once he provides me with the results. >> >> Here is a summary of the benchmarking results I'm seeing on x86_64 (I will

Re: RFR: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long) [v11]

2025-02-13 Thread Emanuel Peter
On Mon, 10 Feb 2025 09:26:32 GMT, Galder Zamarreño wrote: >> @eastig is helping with the results on aarch64, so I will verify the numbers >> in same way done below for x86_64 once he provides me with the results. >> >> Here is a summary of the benchmarking results I'm seeing on x86_64 (I will

Re: RFR: 8347408: Create an internal method handle adapter for system calls with errno [v7]

2025-02-13 Thread Per Minborg
On Wed, 12 Feb 2025 16:04:53 GMT, Per Minborg wrote: >> Going forward, converting older JDK code to use the relatively new FFM API >> requires system calls that can provide `errno` and the likes to explicitly >> allocate a `MemorySegment` to capture potential error states. This can lead >> to

Withdrawn: 8347408: Create an internal method handle adapter for system calls with errno

2025-02-13 Thread Per Minborg
On Fri, 7 Feb 2025 14:46:06 GMT, Per Minborg wrote: > Going forward, converting older JDK code to use the relatively new FFM API > requires system calls that can provide `errno` and the likes to explicitly > allocate a `MemorySegment` to capture potential error states. This can lead > to negat

Re: RFR: 8349648: Test tools/jpackage/share/JLinkOptionsTest.java fails with --enable-linkable-runtime set after JDK-8346434 [v2]

2025-02-13 Thread Christoph Langer
On Tue, 11 Feb 2025 10:17:48 GMT, Christoph Langer wrote: >> The change for JDK-8346434 added a new test case to >> tools/jpackage/share/JLinkOptionsTest.java which does not respect the >> constraint of the linkable runtime (JEP 493) that no jdk.jlink module can be >> part of the target image.

Integrated: 8349564: Clean warnings found in jpackage tests when building them with -Xlint:all

2025-02-13 Thread Alexey Semenyuk
On Wed, 5 Feb 2025 04:14:21 GMT, Alexey Semenyuk wrote: > Clean warnings found in jpackage tests when building them with `-Xlint:all` > option in Eclipse IDE. > > They are: > - redundant imports (solution: remove) > - unused function/fields (solution: remove) > - missing SuppressWarnings-s

Integrated: 8349648: Test tools/jpackage/share/JLinkOptionsTest.java fails with --enable-linkable-runtime set after JDK-8346434

2025-02-13 Thread Christoph Langer
On Fri, 7 Feb 2025 13:13:24 GMT, Christoph Langer wrote: > The change for JDK-8346434 added a new test case to > tools/jpackage/share/JLinkOptionsTest.java which does not respect the > constraint of the linkable runtime (JEP 493) that no jdk.jlink module can be > part of the target image. > Th

Re: RFR: 8349907: jdk.tools.jlink.internal.plugins.ZipPlugin does not close the Deflater in exceptional cases [v3]

2025-02-13 Thread Athijegannathan Sundararajan
On Wed, 12 Feb 2025 16:47:29 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change in >> `jdk.tools.jlink.internal.plugins.ZipPlugin` which proposes to close the >> `Deflater` instance cleanly? This addresses >> https://bugs.openjdk.org/browse/JDK-8349907. >> >> As noted in tha

Re: RFR: 8349206: j.u.l.Handler classes create deadlock risk via synchronized publish() method

2025-02-13 Thread David Beaumont
On Wed, 12 Feb 2025 18:28:19 GMT, Daniel Fuchs wrote: > The code changes look reasonable. WRT to detecting deadlocks a possibility is > also to use `ManagementFactory.getThreadMXBean().findDeadlockedThreads();` > > See for instance > > https://github.com/openjdk/jdk/blob/336d0d8592aed734e7b813

Re: RFR: 8349206: j.u.l.Handler classes create deadlock risk via synchronized publish() method

2025-02-13 Thread David Beaumont
On Wed, 12 Feb 2025 20:07:51 GMT, Daniel Fuchs wrote: >> src/java.logging/share/classes/java/util/logging/FileHandler.java line 755: >> >>> 753: synchronized(this) { >>> 754: flush(); >>> 755: if (limit > 0 && (meter.written >= limit || meter.written >>> < 0)) {

Re: RFR: 8349206: j.u.l.Handler classes create deadlock risk via synchronized publish() method

2025-02-13 Thread David Beaumont
On Thu, 13 Feb 2025 00:30:14 GMT, Stuart Marks wrote: > A couple days ago the bot warned > > > This pull request contains merges that bring in commits not present in the > > target repository. > > I'm not sure why this happened. It might be because of this commit earlier in > this branch: >

Re: RFR: 8138614: (spec str) StringBuffer and StringBuilder methods improperly require "new" String to be returned

2025-02-13 Thread Alan Bateman
On Wed, 12 Feb 2025 19:55:29 GMT, Stuart Marks wrote: > A couple adjustments to the specs for four methods of StringBuilder and > StringBuffer so that they no longer require new Strings to be created, just a > String with the right contents. No implementation changes. Note that the > actual sp

Re: RFR: 8346954: [JMH] jdk.incubator.vector.MaskedLogicOpts fails due to IndexOutOfBoundsException

2025-02-13 Thread Emanuel Peter
On Thu, 13 Feb 2025 07:52:30 GMT, Nicole Xu wrote: >> Oh, the OCA-verify is still stuck. I'm sorry about that 🙈 >> I pinged my manager @TobiHartmann , he will reach out to see what's the >> issue. > > Hi @eme64, do you see any risks here? Would you please help to review the > patch? Thanks. @

RFR: 8349943: [JMH] Use jvmArgs consistently

2025-02-13 Thread Nicole Xu
As is suggested in [JDK-8342958](https://bugs.openjdk.org/browse/JDK-8342958), `jvmArgs` should be used consistently in microbenchmarks to 'align with the intuition that when you use jvmArgsAppend/-Prepend intent is to add to a set of existing flags, while if you supply jvmArgs intent is "run wi

Re: RFR: 8138614: (spec str) StringBuffer and StringBuilder methods improperly require "new" String to be returned

2025-02-13 Thread Aleksey Shipilev
On Wed, 12 Feb 2025 19:55:29 GMT, Stuart Marks wrote: > A couple adjustments to the specs for four methods of StringBuilder and > StringBuffer so that they no longer require new Strings to be created, just a > String with the right contents. No implementation changes. Note that the > actual sp