Withdrawn: 8355301: Simplify Throwable::printStackTrace by using record

2025-04-25 Thread Shaojin Wen
On Tue, 22 Apr 2025 11:06:17 GMT, Shaojin Wen wrote: > The current Throwable::printStackTrace implementation uses three inner > classes PrintStreamOrWriter/WrappedPrintStream/WrappedPrintWriter. We can > introduce a static method println to replace these three embedded classes. This pull reque

RFR: 8355573: Remove kludge_c++11.h from jpackage code

2025-04-25 Thread Julian Waters
kludge_c++11.h was introduced to work around older C++ versions not having access to C++ utilities like std::unique_ptr. Since we are already on C++14 (And hopefully will get C++17 soon) this workaround can be removed from jpackage code. - Commit messages: - Include memory header

Re: RFR: 8355636: Speed ​​up Throwable::printStackTrace by reducing object allocation

2025-04-25 Thread Hendrik Schick
On Fri, 25 Apr 2025 01:36:50 GMT, Shaojin Wen wrote: > In the Throwable::printStackTrace method, StringBuilder is created multiple > times to build String. By sharing StringBuilder to build String, object > allocation and copying are reduced. > > In the scenario without suppressed and ourCause

Re: RFR: 8355636: Speed ​​up Throwable::printStackTrace by reducing object allocation

2025-04-25 Thread Chen Liang
On Fri, 25 Apr 2025 01:36:50 GMT, Shaojin Wen wrote: > In the Throwable::printStackTrace method, StringBuilder is created multiple > times to build String. By sharing StringBuilder to build String, object > allocation and copying are reduced. > > In the scenario without suppressed and ourCause

RFR: 8355636: Speed ​​up Throwable::printStackTrace by reducing object allocation

2025-04-25 Thread Shaojin Wen
In the Throwable::printStackTrace method, StringBuilder is created multiple times to build String. By sharing StringBuilder to build String, object allocation and copying are reduced. In the scenario without suppressed and ourCause, unused IdentityHashMap is not created. Through these optimiza

Re: RFR: 8328821: Map.of() derived view collection mutators should throw UnsupportedOperationException [v10]

2025-04-25 Thread Chen Liang
On Mon, 31 Mar 2025 18:30:37 GMT, Liam Miller-Cushon wrote: >> This change overrides mutator methods in the implementation returned by >> `Map.of().entrySet()` to throw `UnsupportedOperationException`. > > Liam Miller-Cushon has updated the pull request with a new target base due to > a merge o

Re: RFR: 8355636: Speed ​​up Throwable::printStackTrace by reducing object allocation

2025-04-25 Thread Shaojin Wen
On Fri, 25 Apr 2025 03:16:09 GMT, Chen Liang wrote: >> In the Throwable::printStackTrace method, StringBuilder is created multiple >> times to build String. By sharing StringBuilder to build String, object >> allocation and copying are reduced. >> >> In the scenario without suppressed and ourC

Re: RFR: 8355632: WhiteBox.waitForReferenceProcessing() fails assert for return type

2025-04-25 Thread Stuart Marks
On Fri, 25 Apr 2025 23:37:13 GMT, Brent Christian wrote: > The newly-added `WhiteBox.waitForReferenceProcessing()` (see > [8305186](https://bugs.openjdk.org/browse/JDK-8305186)) always fails with > assertions enabled. > I've updated the assertion, and also added the test I used locally to test

Re: RFR: 8342283: CDS cannot handle a large number of classes

2025-04-25 Thread John R Rose
On Fri, 25 Apr 2025 14:49:37 GMT, Aleksey Shipilev wrote: > CDS cannot handle large number of classes, because `ClassLoader` data > structures get too large for CDS archival. The new test captures such an > occasion. We do `clear()`-s, but that is not enough to trim the backing > storages for

Re: RFR: 8355442: Reference field lambda forms with type casts are not generated

2025-04-25 Thread Chen Liang
On Fri, 25 Apr 2025 20:30:15 GMT, Chen Liang wrote: > Currently, we are not generating all possible field lambda forms. > > Field lambda forms have these dimensions: > - get/set > - instance/static/static+class init barrier > - plain/volatile > - 8 primitive types, no-cast object, object with ca

Re: RFR: 8353786: Migrate Vector API math library support to FFM API [v13]

2025-04-25 Thread Vladimir Ivanov
On Fri, 25 Apr 2025 09:41:21 GMT, Jatin Bhateja wrote: >> It does look attractive, but macro expansion-based solution requires JVM to >> internalize such operations and their properties. >> >> IMO a higher-level solution based on more generic JVM primitives would >> enable libraries to proper

Re: RFR: 8353786: Migrate Vector API math library support to FFM API [v15]

2025-04-25 Thread Vladimir Ivanov
On Fri, 25 Apr 2025 05:26:35 GMT, Vladimir Ivanov wrote: >> Migrate Vector API math library (SVML and SLEEF) linkage from native code >> (in JVM) to Java FFM API. >> >> Since FFM API doesn't support vector calling conventions yet, migration >> affects only symbol lookup for now. But it still e

RFR: 8355442: Reference field lambda forms with type casts are not generated

2025-04-25 Thread Chen Liang
Currently, we are not generating all possible field lambda forms. Field lambda forms have these dimensions: - get/set - instance/static/static+class init barrier - plain/volatile - 8 primitive types, no-cast object, object with cast Bringing to a total of 2 × 3 × 2 × 10 = 120 lambda forms. Previ

Re: RFR: 8298783: java/lang/ref/FinalizerHistogramTest.java failed with "RuntimeException: MyObject is not found in test output" [v5]

2025-04-25 Thread Brent Christian
> I propose some cleanups to `FinalizerHistogramTest.java` to hopefully clear > up the intermittent failures: > > * run with `othervm`: this test blocks the (global) finalizer thread, and > also requires the (global) finalizer thread to enter the test's `finalize()` > method > * The test uses `

Integrated: 8353786: Migrate Vector API math library support to FFM API

2025-04-25 Thread Vladimir Ivanov
On Fri, 4 Apr 2025 22:52:24 GMT, Vladimir Ivanov wrote: > Migrate Vector API math library (SVML and SLEEF) linkage from native code (in > JVM) to Java FFM API. > > Since FFM API doesn't support vector calling conventions yet, migration > affects only symbol lookup for now. But it still enables

Re: RFR: 8342283: CDS cannot handle a large number of classes

2025-04-25 Thread Calvin Cheung
On Fri, 25 Apr 2025 14:49:37 GMT, Aleksey Shipilev wrote: > CDS cannot handle large number of classes, because `ClassLoader` data > structures get too large for CDS archival. The new test captures such an > occasion. We do `clear()`-s, but that is not enough to trim the backing > storages for

Re: RFR: 8355558: SJIS.java test is always ignored [v2]

2025-04-25 Thread Brian Burkhalter
On Fri, 25 Apr 2025 19:41:54 GMT, Naoto Sato wrote: >> Stemmed from this PR: https://github.com/openjdk/jdk/pull/24838 >> After JEP 400, `file.encoding` is always UTF-8, so the test was never run. >> Using `native.encoding` is appropriate so that the intention of the initial >> test will hold.

Re: RFR: 8355558: SJIS.java test is always ignored [v2]

2025-04-25 Thread Brian Burkhalter
On Fri, 25 Apr 2025 19:37:17 GMT, Naoto Sato wrote: >> test/jdk/java/io/pathNames/win32/SJIS.java line 32: >> >>> 30: */ >>> 31: >>> 32: import java.io.*; >> >> Maybe don't use wildcard import? > > Fixed. Thanks! - PR Review Comment: https://git.openjdk.org/jdk/pull/24881#discus

RFR: 8353686: Optimize Math.cbrt for x86 64 bit platforms

2025-04-25 Thread Mohamed Issa
The goal of this PR is to implement an x86_64 intrinsic for java.lang.Math.cbrt() using libm. The results of all tests posted below were captured with an [Intel® Xeon 6761P](https://www.intel.com/content/www/us/en/products/sku/241842/intel-xeon-6761p-processor-336m-cache-2-50-ghz/specifications.

Re: RFR: 8352003: Support --add-opens with -XX:+AOTClassLinking

2025-04-25 Thread Calvin Cheung
On Fri, 18 Apr 2025 01:41:36 GMT, Ioi Lam wrote: >>> Do we have a test case where `--add-opens` is used both at dump time and >>> run time? That will verify that `--add-opens` at dump time is correctly >>> processed. >>> >> >> Yes, the new test `AddopensOption.java` uses the `--add-opens` bot

Re: RFR: 8355558: SJIS.java test is always ignored [v2]

2025-04-25 Thread Naoto Sato
On Fri, 25 Apr 2025 19:00:43 GMT, Brian Burkhalter wrote: >> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Expand wild card imports > > test/jdk/java/io/pathNames/win32/SJIS.java line 32: > >> 30: */ >> 31: >> 32: import j

Re: RFR: 8349910: Implement HTTP/3 for the HTTP Client API [v2]

2025-04-25 Thread Artur Barashev
On Thu, 24 Apr 2025 16:59:45 GMT, Daniel Fuchs wrote: >> Hi, >> >> Please find here a PR for the implementation of JEP [JDK-8291976: HTTP/3 for >> the HTTP Client API](https://bugs.openjdk.org/browse/JDK-8291976). >> >> The CSR can be viewed at [JDK-8350588: Implement HTTP/3 for the HTTP Clien

Re: RFR: 8342283: CDS cannot handle a large number of classes

2025-04-25 Thread Leonid Mesnik
On Fri, 25 Apr 2025 14:49:37 GMT, Aleksey Shipilev wrote: > CDS cannot handle large number of classes, because `ClassLoader` data > structures get too large for CDS archival. The new test captures such an > occasion. We do `clear()`-s, but that is not enough to trim the backing > storages for

Re: RFR: 8354897: Support Soft/Weak Reference in AOT cache [v4]

2025-04-25 Thread Dan Heidinga
On Fri, 25 Apr 2025 05:56:15 GMT, Ioi Lam wrote: >> This PR contains 2 parts >> >> - Upstream of Soft/Weak Reference support authored by @macarte from [the >> Leyden >> repo](https://github.com/openjdk/leyden/commit/4ca75d156519596e23abc8a312496b7c2f0e0ca5) >> - New C++ class `AOTReferenceObjS

Re: RFR: 8355558: SJIS.java test is always ignored [v2]

2025-04-25 Thread Naoto Sato
> Stemmed from this PR: https://github.com/openjdk/jdk/pull/24838 > After JEP 400, `file.encoding` is always UTF-8, so the test was never run. > Using `native.encoding` is appropriate so that the intention of the initial > test will hold. Tested on an English Windows in which the system locale is

Re: RFR: 8349910: Implement HTTP/3 for the HTTP Client API [v2]

2025-04-25 Thread Artur Barashev
On Thu, 24 Apr 2025 16:59:45 GMT, Daniel Fuchs wrote: >> Hi, >> >> Please find here a PR for the implementation of JEP [JDK-8291976: HTTP/3 for >> the HTTP Client API](https://bugs.openjdk.org/browse/JDK-8291976). >> >> The CSR can be viewed at [JDK-8350588: Implement HTTP/3 for the HTTP Clien

Re: RFR: 8349910: Implement HTTP/3 for the HTTP Client API [v2]

2025-04-25 Thread Artur Barashev
On Thu, 24 Apr 2025 16:59:45 GMT, Daniel Fuchs wrote: >> Hi, >> >> Please find here a PR for the implementation of JEP [JDK-8291976: HTTP/3 for >> the HTTP Client API](https://bugs.openjdk.org/browse/JDK-8291976). >> >> The CSR can be viewed at [JDK-8350588: Implement HTTP/3 for the HTTP Clien

Re: RFR: 8355080: java.base/jdk.internal.foreign.SystemLookup.find() doesn't work on static JDK [v3]

2025-04-25 Thread Jiangli Zhou
On Fri, 25 Apr 2025 11:31:50 GMT, Jaikiran Pai wrote: > Hello Jiangli, if I understand this change correctly, then this is forcing a > non-JNI library to be a JNI library for it to work on static JDK. Is that a > requirement for static JDK builds? Or is it just a convenient way to use > existi

Re: RFR: 8349910: Implement HTTP/3 for the HTTP Client API [v2]

2025-04-25 Thread Artur Barashev
On Thu, 24 Apr 2025 16:59:45 GMT, Daniel Fuchs wrote: >> Hi, >> >> Please find here a PR for the implementation of JEP [JDK-8291976: HTTP/3 for >> the HTTP Client API](https://bugs.openjdk.org/browse/JDK-8291976). >> >> The CSR can be viewed at [JDK-8350588: Implement HTTP/3 for the HTTP Clien

Re: RFR: 8355558: SJIS.java test is always ignored

2025-04-25 Thread Brian Burkhalter
On Fri, 25 Apr 2025 17:02:30 GMT, Naoto Sato wrote: > Stemmed from this PR: https://github.com/openjdk/jdk/pull/24838 > After JEP 400, `file.encoding` is always UTF-8, so the test was never run. > Using `native.encoding` is appropriate so that the intention of the initial > test will hold. Test

Re: RFR: 8342886: Update MET timezone in TimeZoneNames files

2025-04-25 Thread Naoto Sato
On Fri, 25 Apr 2025 09:57:38 GMT, Gautham Krishnan wrote: > MET timezone entry in TimeZoneNames.java and TimeZoneNames_*.java needs to be > updated as MET is alias to Europe/Brussels as per 2024b tzdata changes. > > Also Bug4848242.java needs to be removed as the test expects all euro locale >

Re: RFR: 8353786: Migrate Vector API math library support to FFM API [v15]

2025-04-25 Thread Jatin Bhateja
On Fri, 25 Apr 2025 05:26:35 GMT, Vladimir Ivanov wrote: >> Migrate Vector API math library (SVML and SLEEF) linkage from native code >> (in JVM) to Java FFM API. >> >> Since FFM API doesn't support vector calling conventions yet, migration >> affects only symbol lookup for now. But it still e

Re: RFR: 8355444: [java.io] Use @requires tag instead of exiting based on "os.name" property value [v2]

2025-04-25 Thread Brian Burkhalter
On Fri, 25 Apr 2025 16:33:59 GMT, Brian Burkhalter wrote: >> test/jdk/java/io/File/MacPathTest.java line 28: >> >>> 26: * @summary Tests paths on macOS >>> 27: * @requires (os.family == "mac") >>> 28: */ >> >> The missing `@test` on this looked odd, since that would mean that this test >> w

Re: RFR: 8342206: Convenience method to check if a constant pool entry matches nominal descriptors [v3]

2025-04-25 Thread Chen Liang
> The ClassFile API promotes usage of constant nominal descriptors over literal > strings. However, for `class` file parsing, currently the efficient way to > check if a constant pool entry matches a desired descriptor is via unrolling > them back to strings. However, string unrolling is ugly, a

Integrated: 8305186: Reference.waitForReferenceProcessing should be more accessible to tests

2025-04-25 Thread Brent Christian
On Tue, 8 Apr 2025 20:20:56 GMT, Brent Christian wrote: > Certain specific types of tests involving GC and reference processing need to > account for the delay between a GC completing (during which the GC clears a > Reference), and the Reference being added to its associated queue. At > presen

RFR: 8355558: SJIS.java test is always ignored

2025-04-25 Thread Naoto Sato
Stemmed from this PR: https://github.com/openjdk/jdk/pull/24838 After JEP 400, `file.encoding` is always UTF-8, so the test was never run. Using `native.encoding` is appropriate so that the intention of the initial test will hold. Tested on an English Windows in which the system locale is set to

Re: RFR: 8355444: [java.io] Use @requires tag instead of exiting based on "os.name" property value [v2]

2025-04-25 Thread Brian Burkhalter
> Use the `@requires` tag instead of obtaining the operating system name from > the `os.name` property and then exiting if the test is not run on that > operating system. Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision: 8355444:

Re: RFR: 8342206: Convenience method to check if a constant pool entry matches nominal descriptors [v2]

2025-04-25 Thread Chen Liang
On Wed, 23 Apr 2025 00:21:05 GMT, Chen Liang wrote: >> The ClassFile API promotes usage of constant nominal descriptors over >> literal strings. However, for `class` file parsing, currently the efficient >> way to check if a constant pool entry matches a desired descriptor is via >> unrolling

Re: RFR: 8355444: [java.io] Use @requires tag instead of exiting based on "os.name" property value

2025-04-25 Thread Brian Burkhalter
On Fri, 25 Apr 2025 07:19:32 GMT, Jaikiran Pai wrote: >> Use the `@requires` tag instead of obtaining the operating system name from >> the `os.name` property and then exiting if the test is not run on that >> operating system. > > test/jdk/java/io/File/MacPathTest.java line 28: > >> 26: * @s

Integrated: 8354877: DirectClassBuilder default flags should include ACC_SUPER

2025-04-25 Thread Chen Liang
On Tue, 22 Apr 2025 23:55:54 GMT, Chen Liang wrote: > In the future value objects JEP, class files must have one of ACC_IDENTITY > (now ACC_SUPER), ACC_ABSTRACT, and ACC_FINAL bits set, otherwise they are > rejected. The current default flag has none of these bits set, meaning that > it will n

Re: RFR: 8354877: DirectClassBuilder default flags should include ACC_SUPER

2025-04-25 Thread Chen Liang
On Tue, 22 Apr 2025 23:55:54 GMT, Chen Liang wrote: > In the future value objects JEP, class files must have one of ACC_IDENTITY > (now ACC_SUPER), ACC_ABSTRACT, and ACC_FINAL bits set, otherwise they are > rejected. The current default flag has none of these bits set, meaning that > it will n

Integrated: 8350703: Add standard system property stdin.encoding

2025-04-25 Thread Stuart Marks
On Thu, 17 Apr 2025 18:59:33 GMT, Stuart Marks wrote: > * Windows and Unix: set sprops.stdin_encoding if connected to a console > * Add specs for stdin.encoding > * Adjust specs to change "undefined" to "unspecified" > * Rewrite System.in spec to refer to new property and to clarify usage with >

Integrated: 8352003: Support --add-opens with -XX:+AOTClassLinking

2025-04-25 Thread Calvin Cheung
On Wed, 16 Apr 2025 18:21:41 GMT, Calvin Cheung wrote: > This RFE allows --add-opens to be specified for AOT cache creation. AOT cache > can be used during production run with --add-opens option as long as the same > set of options is used during assembly phase. > > Passed tiers 1 - 4 testing.

Re: RFR: 8355444: [java.io] Use @requires tag instead of exiting based on "os.name" property value

2025-04-25 Thread Brian Burkhalter
On Fri, 25 Apr 2025 10:18:37 GMT, Mark Sheppard wrote: > When running test locally that's fine, this is easily seen in the jtreg > report, but when run in the test frameworks CI pipeline, this "not run " > visibility is obscured. Thus when doing test run audit of a jobs, requires a > bit more

Re: RFR: 8355443: [java.io] Use @requires tag instead of exiting based on File.separatorChar value

2025-04-25 Thread Brian Burkhalter
On Thu, 24 Apr 2025 17:22:15 GMT, Naoto Sato wrote: >> Sounds like a different issue needs to be filed. > > Yeah, that sounds better. See https://bugs.openjdk.org/browse/JDK-838 - PR Review Comment: https://git.openjdk.org/jdk/pull/24838#discussion_r2060508271

Re: RFR: 8342283: CDS cannot handle a large number of classes

2025-04-25 Thread Ioi Lam
On Fri, 25 Apr 2025 14:49:37 GMT, Aleksey Shipilev wrote: > CDS cannot handle large number of classes, because `ClassLoader` data > structures get too large for CDS archival. The new test captures such an > occasion. We do `clear()`-s, but that is not enough to trim the backing > storages for

Re: RFR: 8354877: DirectClassBuilder default flags should include ACC_SUPER

2025-04-25 Thread Chen Liang
On Tue, 22 Apr 2025 23:55:54 GMT, Chen Liang wrote: > In the future value objects JEP, class files must have one of ACC_IDENTITY > (now ACC_SUPER), ACC_ABSTRACT, and ACC_FINAL bits set, otherwise they are > rejected. The current default flag has none of these bits set, meaning that > it will n

Re: RFR: 8354877: DirectClassBuilder default flags should include ACC_SUPER

2025-04-25 Thread Adam Sotona
On Tue, 22 Apr 2025 23:55:54 GMT, Chen Liang wrote: > In the future value objects JEP, class files must have one of ACC_IDENTITY > (now ACC_SUPER), ACC_ABSTRACT, and ACC_FINAL bits set, otherwise they are > rejected. The current default flag has none of these bits set, meaning that > it will n

Re: RFR: 8342206: Convenience method to check if a constant pool entry matches nominal descriptors [v2]

2025-04-25 Thread Adam Sotona
On Wed, 23 Apr 2025 00:21:05 GMT, Chen Liang wrote: >> The ClassFile API promotes usage of constant nominal descriptors over >> literal strings. However, for `class` file parsing, currently the efficient >> way to check if a constant pool entry matches a desired descriptor is via >> unrolling

Re: RFR: 8355301: Simplify Throwable::printStackTrace by using record [v4]

2025-04-25 Thread Chen Liang
On Fri, 25 Apr 2025 07:54:03 GMT, Johannes Döbler wrote: >>> @AlanBateman I have modified it to use interface + record. Is this what you >>> want? >> >> I don't object to changing it to interface + record but it feels more like >> needless code churn. I really disliked the next version that us

Re: RFR: 8355301: Simplify Throwable::printStackTrace by using record [v4]

2025-04-25 Thread Chen Liang
On Fri, 25 Apr 2025 14:21:55 GMT, Chen Liang wrote: >> The record has fewer source lines but doesn't the generated record class >> have a getter, toString(), hashCode() and equals(Object) which are not >> needed here? >> What about using a lock parameter and a method handle to pass in the >> r

Re: RFR: 8351565: Implement JEP 502: Stable Values (Preview) [v78]

2025-04-25 Thread Chen Liang
On Thu, 24 Apr 2025 10:37:59 GMT, Per Minborg wrote: >> Implement JEP 502. >> >> The PR passes tier1-tier3 tests. > > Per Minborg has updated the pull request incrementally with one additional > commit since the last revision: > > Make public constuctor private I think the design and the es

Re: RFR: 8354877: DirectClassBuilder default flags should include ACC_SUPER

2025-04-25 Thread Chen Liang
On Tue, 22 Apr 2025 23:55:54 GMT, Chen Liang wrote: > In the future value objects JEP, class files must have one of ACC_IDENTITY > (now ACC_SUPER), ACC_ABSTRACT, and ACC_FINAL bits set, otherwise they are > rejected. The current default flag has none of these bits set, meaning that > it will n

Re: RFR: 8354877: DirectClassBuilder default flags should include ACC_SUPER

2025-04-25 Thread Adam Sotona
On Tue, 22 Apr 2025 23:55:54 GMT, Chen Liang wrote: > In the future value objects JEP, class files must have one of ACC_IDENTITY > (now ACC_SUPER), ACC_ABSTRACT, and ACC_FINAL bits set, otherwise they are > rejected. The current default flag has none of these bits set, meaning that > it will n

Re: RFR: 8347712: IllegalStateException on multithreaded ZipFile access with non-UTF8 charset [v6]

2025-04-25 Thread Chen Liang
On Sun, 23 Mar 2025 09:28:38 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix an issue >> `java.util.zip.ZipFile` which would cause failures when multiple instances >> of `ZipFile` using non-UTF8 `Charset` were operating against the same >> underlying

Re: RFR: 8355301: Simplify Throwable::printStackTrace by using record [v5]

2025-04-25 Thread Shaojin Wen
On Thu, 24 Apr 2025 17:36:29 GMT, Shaojin Wen wrote: >> The current Throwable::printStackTrace implementation uses three inner >> classes PrintStreamOrWriter/WrappedPrintStream/WrappedPrintWriter. We can >> introduce a static method println to replace these three embedded classes. > > Shaojin W

Re: RFR: 8347712: IllegalStateException on multithreaded ZipFile access with non-UTF8 charset [v6]

2025-04-25 Thread Jaikiran Pai
On Sun, 23 Mar 2025 09:28:38 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix an issue >> `java.util.zip.ZipFile` which would cause failures when multiple instances >> of `ZipFile` using non-UTF8 `Charset` were operating against the same >> underlying

Re: RFR: 8348986: Improve coverage of enhanced exception messages [v8]

2025-04-25 Thread Michael McMahon
> Hi, > > Enhanced exception messages are designed to hide sensitive information such > as hostnames, IP > addresses from exception message strings, unless the enhanced mode for the > specific category > has been explicitly enabled. Enhanced exceptions were first introduced in > 8204233 in JD

Re: RFR: 8347712: IllegalStateException on multithreaded ZipFile access with non-UTF8 charset [v6]

2025-04-25 Thread Alan Bateman
On Sun, 23 Mar 2025 09:28:38 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to fix an issue >> `java.util.zip.ZipFile` which would cause failures when multiple instances >> of `ZipFile` using non-UTF8 `Charset` were operating against the same >> underlying

Re: RFR: 8354450: Using a File with a path containing a trailing space should fail when alternative data streams are disabled (win) [v2]

2025-04-25 Thread Alan Bateman
On Fri, 18 Apr 2025 18:22:35 GMT, Brian Burkhalter wrote: >>> From experimentation with C++ code is VS, it appears that >>> `CreateDirectoryW` will create a directory with either a leading or >>> trailing space in its name, whereas `createFileW` will create a file with a >>> leading space in i

Re: RFR: 8351565: Implement JEP 502: Stable Values (Preview) [v6]

2025-04-25 Thread Per Minborg
On Tue, 25 Mar 2025 14:20:24 GMT, Luca Kellermann wrote: >>> Comments on visual noise and side effects in `toString`. >>> >>> `renderWrapped` is clever for a single stable value, but it makes for a >>> very noisy display string, with confusing doubly-nested `[]`, for composite >>> stable value

Re: RFR: 8355080: java.base/jdk.internal.foreign.SystemLookup.find() doesn't work on static JDK [v3]

2025-04-25 Thread Jaikiran Pai
On Wed, 23 Apr 2025 00:56:18 GMT, Jiangli Zhou wrote: >> Please review this PR that changes to use `NativeLibraries.loadLibrary()` >> for loading the `libsyslookup` in `jdk.internal.foreign.SystemLookup` class. >> >> `NativeLibraries.loadLibrary()` handles both the shared library and (static)

Re: RFR: 8351565: Implement JEP 502: Stable Values (Preview) [v78]

2025-04-25 Thread Alan Bateman
On Thu, 24 Apr 2025 10:37:59 GMT, Per Minborg wrote: >> Implement JEP 502. >> >> The PR passes tier1-tier3 tests. > > Per Minborg has updated the pull request incrementally with one additional > commit since the last revision: > > Make public constuctor private src/java.base/share/classes/j

Re: RFR: 8351565: Implement JEP 502: Stable Values (Preview) [v78]

2025-04-25 Thread Alan Bateman
On Thu, 24 Apr 2025 10:37:59 GMT, Per Minborg wrote: >> Implement JEP 502. >> >> The PR passes tier1-tier3 tests. > > Per Minborg has updated the pull request incrementally with one additional > commit since the last revision: > > Make public constuctor private I've been through the API + i

Re: RFR: 8355444: [java.io] Use @requires tag instead of exiting based on "os.name" property value

2025-04-25 Thread Mark Sheppard
On Thu, 24 Apr 2025 20:46:42 GMT, Brian Burkhalter wrote: > Use the `@requires` tag instead of obtaining the operating system name from > the `os.name` property and then exiting if the test is not run on that > operating system. test/jdk/java/io/File/MacPathTest.java test/jdk/java/io/File/MaxP

Re: RFR: 8355444: [java.io] Use @requires tag instead of exiting based on "os.name" property value

2025-04-25 Thread Mark Sheppard
On Thu, 24 Apr 2025 20:46:42 GMT, Brian Burkhalter wrote: > Use the `@requires` tag instead of obtaining the operating system name from > the `os.name` property and then exiting if the test is not run on that > operating system. a general comment on this approach of running tests selectively o

RFR: 8342886: Update MET timezone in TimeZoneNames files

2025-04-25 Thread Gautham Krishnan
MET timezone entry in TimeZoneNames.java and TimeZoneNames_*.java needs to be updated as MET is alias to Europe/Brussels as per 2024b tzdata changes. Also Bug4848242.java needs to be removed as the test expects all euro locale time zones should have the same short names. - Commit m

Re: RFR: 8354242: VectorAPI: combine vector not operation with compare [v2]

2025-04-25 Thread Jatin Bhateja
On Thu, 24 Apr 2025 08:57:14 GMT, erifan wrote: >> erifan has updated the pull request with a new target base due to a merge or >> a rebase. The incremental webrev excludes the unrelated changes brought in >> by the merge/rebase. The pull request contains two additional commits since >> the la

Re: RFR: 8354242: VectorAPI: combine vector not operation with compare [v2]

2025-04-25 Thread Jatin Bhateja
On Thu, 24 Apr 2025 09:46:24 GMT, erifan wrote: >> test/hotspot/jtreg/compiler/vectorapi/VectorMaskCompareNotTest.java line 38: >> >>> 36: * @summary test combining vector not operation with compare >>> 37: * @modules jdk.incubator.vector >>> 38: * @requires ((os.arch!="x86" & os.arch!="i386"

Re: RFR: 8353786: Migrate Vector API math library support to FFM API [v13]

2025-04-25 Thread Jatin Bhateja
On Thu, 24 Apr 2025 23:03:09 GMT, Vladimir Ivanov wrote: >> src/hotspot/share/opto/vectorIntrinsics.cpp line 563: >> >>> 561: debug_name = >>> debug_name_oop->const_oop()->as_instance()->java_lang_String_str(buf, >>> buflen); >>> 562: } >>> 563: Node* vcall = make_runtime_call(RC_VECTO

Re: RFR: 8355301: Simplify Throwable::printStackTrace by using record [v4]

2025-04-25 Thread Johannes Döbler
On Fri, 25 Apr 2025 07:06:05 GMT, Alan Bateman wrote: >>> What should we replace it with? Do you have any suggestions? >> >> The wrapper classes were needed when there were was a mix of synchronized >> and j.u.concurrent locks in use. With JEP 491 integrated it meant that the >> java.io classe

Re: RFR: 8351565: Implement JEP 502: Stable Values (Preview) [v78]

2025-04-25 Thread Per Minborg
On Fri, 25 Apr 2025 06:28:59 GMT, Alan Bateman wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Make public constuctor private > > src/java.base/share/classes/java/lang/StableValue.java line 470: > >> 468: * @p

Re: RFR: 8354242: VectorAPI: combine vector not operation with compare [v2]

2025-04-25 Thread Jatin Bhateja
On Thu, 24 Apr 2025 09:37:07 GMT, erifan wrote: >> src/hotspot/share/opto/vectornode.cpp line 2243: >> >>> 2241: in1 = in1->in(1); >>> 2242: } >>> 2243: if (in1->Opcode() != Op_VectorMaskCmp || in1->outcnt() > 1 || >> >> Checks on outcnt on line 2243 and 2238 can be removed. Idealizatio

Re: RFR: 8351565: Implement JEP 502: Stable Values (Preview) [v78]

2025-04-25 Thread Luca Kellermann
On Fri, 25 Apr 2025 09:11:43 GMT, Per Minborg wrote: >> src/java.base/share/classes/java/lang/StableValue.java line 389: >> >>> 387: * Invocations of {@link #setOrThrow(Object)} form a total order of >>> zero or more >>> 388: * exceptional invocations followed by zero (if the contents were >

Re: RFR: 8351565: Implement JEP 502: Stable Values (Preview) [v78]

2025-04-25 Thread Per Minborg
On Thu, 24 Apr 2025 13:35:45 GMT, Luca Kellermann wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Make public constuctor private > > src/java.base/share/classes/java/lang/StableValue.java line 389: > >> 387: * Inv

Re: RFR: 8351565: Implement JEP 502: Stable Values (Preview) [v33]

2025-04-25 Thread Alan Bateman
On Thu, 3 Apr 2025 01:19:18 GMT, Chen Liang wrote: >> Seconded > > I personally think this is more of an implementation artifact for > `StableValue::supplier` and doesn't merit its own API (as no other > StableValue API utilizes the object monitor of a StableValue), but maybe we > can adjust t

Re: RFR: 8355301: Simplify Throwable::printStackTrace by using record [v5]

2025-04-25 Thread Alan Bateman
On Fri, 25 Apr 2025 07:57:53 GMT, Eirik Bjørsnøs wrote: > @liach suggested to remove the wrapper classes and instead use a static > method with `instanceof` checking. That would remove the need for both the > interface and the wrapper classes which seems like a real improvement. > @AlanBateman

Integrated: 8355524: Only every second line in upgradeable files is being used

2025-04-25 Thread Severin Gehwolf
On Thu, 24 Apr 2025 17:31:50 GMT, Severin Gehwolf wrote: > Please review this fix to > [JDK-8353185](https://bugs.openjdk.org/browse/JDK-8353185). The reading logic > for the config file would erroneously use `scanner.nextLine()` when the > current line to be added is in `line`. `line` is not

Re: RFR: 8355524: Only every second line in upgradeable files is being used

2025-04-25 Thread Severin Gehwolf
On Thu, 24 Apr 2025 17:31:50 GMT, Severin Gehwolf wrote: > Please review this fix to > [JDK-8353185](https://bugs.openjdk.org/browse/JDK-8353185). The reading logic > for the config file would erroneously use `scanner.nextLine()` when the > current line to be added is in `line`. `line` is not

Re: RFR: 8355301: Simplify Throwable::printStackTrace by using record [v5]

2025-04-25 Thread Eirik Bjørsnøs
On Thu, 24 Apr 2025 17:36:29 GMT, Shaojin Wen wrote: >> The current Throwable::printStackTrace implementation uses three inner >> classes PrintStreamOrWriter/WrappedPrintStream/WrappedPrintWriter. We can >> introduce a static method println to replace these three embedded classes. > > Shaojin W

Re: RFR: 8347814: Make all imports consistent in the FFM API tests and benchmarks

2025-04-25 Thread Sergey Bylokhov
On Wed, 19 Feb 2025 09:22:09 GMT, Per Minborg wrote: > This PR proposes to make all imports consistent in the FFM API tests and > benchmarks. > > This is a follow-up PR from https://github.com/openjdk/jdk/pull/22827 > > Passes tier1-3 test/jdk/java/foreign/TestFunctionDescriptor.java line 38:

Re: RFR: 8346610: Make all imports consistent in the FFM API [v3]

2025-04-25 Thread Sergey Bylokhov
On Thu, 9 Jan 2025 11:47:15 GMT, Per Minborg wrote: >> This PR proposes to clean up all the imports in the FFM lib (excluding >> tests). >> >> Passes tier1-tier3 > > Per Minborg has updated the pull request with a new target base due to a > merge or a rebase. The incremental webrev excludes th

Re: RFR: 8354242: VectorAPI: combine vector not operation with compare [v2]

2025-04-25 Thread erifan
On Thu, 24 Apr 2025 10:28:15 GMT, Andrew Haley wrote: >> erifan has updated the pull request with a new target base due to a merge or >> a rebase. The incremental webrev excludes the unrelated changes brought in >> by the merge/rebase. The pull request contains two additional commits since >>

Re: RFR: 8354242: VectorAPI: combine vector not operation with compare [v2]

2025-04-25 Thread erifan
On Thu, 24 Apr 2025 09:39:58 GMT, erifan wrote: >> src/hotspot/share/opto/vectornode.cpp line 2265: >> >>> 2263: vmcmp = new VectorMaskCastNode(phase->transform(vmcmp), >>> vmcast_vt); >>> 2264: } >>> 2265: return vmcmp; >> >> It would be preferable if you could kindly re-factor the co

Re: RFR: 8354242: VectorAPI: combine vector not operation with compare [v3]

2025-04-25 Thread erifan
> This patch optimizes the following patterns: > For integer types: > > (XorV (VectorMaskCmp src1 src2 cond) (Replicate -1)) > => (VectorMaskCmp src1 src2 ncond) > (XorVMask (VectorMaskCmp src1 src2 cond) (MaskAll m1)) > => (VectorMaskCmp src1 src2 ncond) > > cond can be eq, ne, le, ge, l

Re: RFR: 8355444: [java.io] Use @requires tag instead of exiting based on "os.name" property value

2025-04-25 Thread Jaikiran Pai
On Thu, 24 Apr 2025 20:46:42 GMT, Brian Burkhalter wrote: > Use the `@requires` tag instead of obtaining the operating system name from > the `os.name` property and then exiting if the test is not run on that > operating system. test/jdk/java/io/File/MacPathTest.java line 28: > 26: * @summar

Re: RFR: 8355301: Simplify Throwable::printStackTrace by using record [v4]

2025-04-25 Thread Alan Bateman
On Wed, 23 Apr 2025 09:05:07 GMT, Alan Bateman wrote: >>> Ugh, hopefully this will be replaced in the next iteration. >> >> What should we replace it with? Do you have any suggestions? > >> What should we replace it with? Do you have any suggestions? > > The wrapper classes were needed when the