Re: RFR: 8358626: Emit UTF-8 CLDR resources

2025-06-04 Thread Volkan Yazici
On Wed, 4 Jun 2025 21:54:15 GMT, Naoto Sato wrote: > The resource files in `java.base` are supposed to be US English only, but > they also need to use UTF-8 as some of the names are non-ASCII (e.g., Türkiye) @naotoj, shall we add this note as a comment to places where `-utf8` is added? ---

Re: RFR: 8357821: Revert incorrectly named JavaLangAccess::unchecked* methods [v2]

2025-06-04 Thread Volkan Yazici
> Reverts certain [JDK-8353197](https://bugs.openjdk.org/browse/JDK-8353197) > (which implements JavaDoc improvement and precautionary naming for certain > unsafe methods in `jdk.internal.access.JavaLangAccess`) changes that are > found to be incorrect. See the JBS issue for details on the follo

Re: RFR: 8357821: Revert incorrectly named JavaLangAccess::unchecked* methods

2025-06-04 Thread Volkan Yazici
On Wed, 4 Jun 2025 11:39:34 GMT, Per Minborg wrote: >>> I wonder if we should add that implementations of the affected method >>> _shall_ do bounds checking to reduce the likelihood of a new/updated native >>> implementation miss that? >> >> @minborg, would you mind elaborating on this a bit,

Integrated: 8358558: (zipfs) Reorder the listing of "accessMode" property in the ZIP file system's documentation

2025-06-04 Thread Jaikiran Pai
On Wed, 4 Jun 2025 06:47:59 GMT, Jaikiran Pai wrote: > Can I please get a review of this trivial doc-only change to the > `jdk.zipfs`'s documentation? This moves the `accessMode` property listing to > the top of the table instead of being at the bottom. With this change, the > text about throw

Re: RFR: 8358626: Emit UTF-8 CLDR resources

2025-06-04 Thread Naoto Sato
On Wed, 4 Jun 2025 21:54:15 GMT, Naoto Sato wrote: > Changes to generate CLDR resource bundles in UTF-8 encoding. The resource > files in `java.base` are supposed to be US English only, but they also need > to use UTF-8 as some of the names are non-ASCII (e.g., Türkiye) Looks like this PR did

Integrated: 8358078: javap crashes with NPE on preview class file

2025-06-04 Thread Hannes Greule
On Sun, 1 Jun 2025 04:53:46 GMT, Hannes Greule wrote: > This change addresses a NPE in javap when trying to print a class with > minorVersion != 0. With this change, we fall back to the methods that don't > take a `ClassFileFormatVersion` in such case. This pull request has now been integrated

Re: RFR: 8358078: javap crashes with NPE on preview class file [v3]

2025-06-04 Thread Chen Liang
On Mon, 2 Jun 2025 20:06:34 GMT, Hannes Greule wrote: >> This change addresses a NPE in javap when trying to print a class with >> minorVersion != 0. With this change, we fall back to the methods that don't >> take a `ClassFileFormatVersion` in such case. > > Hannes Greule has updated the pull

Re: RFR: 8358078: javap crashes with NPE on preview class file [v3]

2025-06-04 Thread Hannes Greule
On Mon, 2 Jun 2025 20:06:34 GMT, Hannes Greule wrote: >> This change addresses a NPE in javap when trying to print a class with >> minorVersion != 0. With this change, we fall back to the methods that don't >> take a `ClassFileFormatVersion` in such case. > > Hannes Greule has updated the pull

Re: RFR: 8358078: javap crashes with NPE on preview class file [v3]

2025-06-04 Thread duke
On Mon, 2 Jun 2025 20:06:34 GMT, Hannes Greule wrote: >> This change addresses a NPE in javap when trying to print a class with >> minorVersion != 0. With this change, we fall back to the methods that don't >> take a `ClassFileFormatVersion` in such case. > > Hannes Greule has updated the pull

Re: RFR: 8358426: Improve lazy computation in Locale

2025-06-04 Thread Chen Liang
On Wed, 4 Jun 2025 21:20:46 GMT, Justin Lu wrote: > Please review this PR which improves occurrences of lazy computation in > `Locale` and `BaseLocale`. > > Existing lazy initialization strategies such as CHM, static nested class, and > local inner class are replaced with Stable Values. > > L

Re: RFR: 8351594: JFR: Rate-limited sampling of Java events [v3]

2025-06-04 Thread Stuart Marks
On Wed, 4 Jun 2025 16:04:08 GMT, Erik Gahlin wrote: >> src/java.base/share/classes/java/net/Socket.java line 970: >> >>> 968: long end = SocketReadEvent.timestamp(); >>> 969: long duration = end - start; >>> 970: if (SocketReadEvent.shouldThrottleCommit(durati

Re: RFR: 8355746: Start of release updates for JDK 26 [v9]

2025-06-04 Thread Iris Clark
On Wed, 4 Jun 2025 23:09:08 GMT, Nizar Benalla wrote: >> Get JDK 26 underway. > > Nizar Benalla has updated the pull request incrementally with one additional > commit since the last revision: > > fix typo Marked as reviewed by iris (Reviewer). - PR Review: https://git.openjdk.

Re: RFR: 8355746: Start of release updates for JDK 26 [v9]

2025-06-04 Thread Nizar Benalla
> Get JDK 26 underway. Nizar Benalla has updated the pull request incrementally with one additional commit since the last revision: fix typo - Changes: - all: https://git.openjdk.org/jdk/pull/25008/files - new: https://git.openjdk.org/jdk/pull/25008/files/09df3b66..9929da7b

Re: RFR: 8358078: javap crashes with NPE on preview class file [v3]

2025-06-04 Thread Chen Liang
On Mon, 2 Jun 2025 20:06:34 GMT, Hannes Greule wrote: >> This change addresses a NPE in javap when trying to print a class with >> minorVersion != 0. With this change, we fall back to the methods that don't >> take a `ClassFileFormatVersion` in such case. > > Hannes Greule has updated the pull

Re: RFR: 8355746: Start of release updates for JDK 26 [v8]

2025-06-04 Thread Nizar Benalla
> Get JDK 26 underway. Nizar Benalla has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 22 commits: - use a different bug ID to problemlist `kevinrushforth ` - Merge branch 'master' into jdk.8355746 - Merge branch 'master' into jdk.83

Re: RFR: 8358015: Fix SequencedMap sequenced view method specifications [v2]

2025-06-04 Thread Stuart Marks
On Wed, 4 Jun 2025 16:50:15 GMT, Johannes Döbler wrote: >> Interesting. This `@NoOverride` idea could be useful on a subclass that >> wants to make sure it overrides everything. (Maybe `@NoInherit` would be a >> better name.) Meanwhile for JDK-8357272 (PR >> https://github.com/openjdk/jdk/pull

Re: RFR: 8357913: Add `@Stable` to BigInteger and BigDecimal [v3]

2025-06-04 Thread Shaojin Wen
On Wed, 4 Jun 2025 12:08:09 GMT, Per Minborg wrote: > The newly marked arrays are indeed only updated once. Can we see any > benchmark showing a performance gain? I ran `make test TEST="micro:java.math.BigDecimals` on a MacBook M1 Pro, and there was no performance improvement with the Stable a

Re: RFR: 8355746: Start of release updates for JDK 26 [v7]

2025-06-04 Thread Kevin Rushforth
On Tue, 3 Jun 2025 11:14:36 GMT, Nizar Benalla wrote: >> Get JDK 26 underway. > > Nizar Benalla has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains 20 commits: > > - Merge branch 'master' into jdk.8355746 > - Problemlist JavaBaseChec

Re: RFR: 8355746: Start of release updates for JDK 26 [v7]

2025-06-04 Thread Nizar Benalla
On Wed, 4 Jun 2025 20:44:12 GMT, Kevin Rushforth wrote: >> Nizar Benalla has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 20 commits: >> >> - Merge branch 'master' into jdk.8355746 >> - Problemlist JavaBaseCheckSince >> - Revert

RFR: 8358426: Improve lazy computation in Locale

2025-06-04 Thread Justin Lu
Please review this PR which improves occurrences of lazy computation in `Locale` and `BaseLocale`. Existing lazy initialization strategies such as CHM, static nested class, and local inner class are replaced with Stable Values. Lambda usage is intentionally avoided in this change during `Locale

Re: RFR: 8355746: Start of release updates for JDK 26 [v7]

2025-06-04 Thread Kevin Rushforth
On Tue, 3 Jun 2025 11:14:36 GMT, Nizar Benalla wrote: >> Get JDK 26 underway. > > Nizar Benalla has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains 20 commits: > > - Merge branch 'master' into jdk.8355746 > - Problemlist JavaBaseChec

Re: RFR: 8355746: Start of release updates for JDK 26 [v7]

2025-06-04 Thread Iris Clark
On Tue, 3 Jun 2025 11:14:36 GMT, Nizar Benalla wrote: >> Get JDK 26 underway. > > Nizar Benalla has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains 20 commits: > > - Merge branch 'master' into jdk.8355746 > - Problemlist JavaBaseChec

Re: RFR: 8355746: Start of release updates for JDK 26 [v6]

2025-06-04 Thread Kevin Rushforth
On Tue, 3 Jun 2025 11:10:30 GMT, Nizar Benalla wrote: > I have problemlisted > `tools/sincechecker/modules/java.base/JavaBaseCheckSince.java` as it is > failing due to the symbol information lagging behind. What is your plan for addressing this? In its current state, that problem list entry w

Re: RFR: 8355746: Start of release updates for JDK 26 [v7]

2025-06-04 Thread Joe Darcy
On Tue, 3 Jun 2025 11:14:36 GMT, Nizar Benalla wrote: >> Get JDK 26 underway. > > Nizar Benalla has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains 20 commits: > > - Merge branch 'master' into jdk.8355746 > - Problemlist JavaBaseChec

Re: RFR: 8358217: jdk/incubator/vector/PreferredSpeciesTest.java#id0 failures - expected [128] but found [256] [v2]

2025-06-04 Thread Paul Sandoz
On Sat, 31 May 2025 17:27:30 GMT, Ian Graves wrote: >> Removing incorrect assumptions and assertions from a breaking test related >> to https://bugs.openjdk.org/browse/JDK-8358218 > > Ian Graves has updated the pull request with a new target base due to a merge > or a rebase. The pull request n

Integrated: 8358217: jdk/incubator/vector/PreferredSpeciesTest.java#id0 failures - expected [128] but found [256]

2025-06-04 Thread Ian Graves
On Sat, 31 May 2025 16:18:59 GMT, Ian Graves wrote: > Removing incorrect assumptions and assertions from a breaking test related to > https://bugs.openjdk.org/browse/JDK-8358218 This pull request has now been integrated. Changeset: 901144ee Author:Ian Graves URL: https://git.openjd

Re: RFR: 8358078: javap crashes with NPE on preview class file

2025-06-04 Thread Hannes Greule
On Mon, 2 Jun 2025 12:58:15 GMT, Chen Liang wrote: >> This change addresses a NPE in javap when trying to print a class with >> minorVersion != 0. With this change, we fall back to the methods that don't >> take a `ClassFileFormatVersion` in such case. > > That sounds right. @liach is there an

Integrated: 8358170: Repurpose testCompat in test/jdk/java/util/TimeZone/Bug8167143.java

2025-06-04 Thread Justin Lu
On Tue, 3 Jun 2025 16:47:20 GMT, Justin Lu wrote: > Please review this PR which modifies the > test/jdk/java/util/TimeZone/Bug8167143.java "testCompat" case to be > repurposed to check the implicit locales for the FALLBACK BreakIterator and > Collator providers. (FALLBACK is the primary provid

Re: [External] : Re: Should mapConcurrent() respect time order instead of input order?

2025-06-04 Thread Viktor Klang
>Ultimately, the question is whether mapConcurrent() should be optimized >primarily for preserving input sequence, or for enabling maximum throughput >and flexibility in concurrent scenarios, including efficient "first-to-finish" >patterns. The answer to that is clear in the specification for t

Re: RFR: 8352565: Add native method implementation of Reference.get() [v8]

2025-06-04 Thread Vladimir Ivanov
On Wed, 4 Jun 2025 07:12:42 GMT, Kim Barrett wrote: >> Please review this change which adds a native method providing the >> implementation of Reference::get. Referece::get is an intrinsic candidate, >> so >> this native method implementation is only used when the intrinsic is not. >> >> Curre

Re: RFR: 8349910: Implement JEP 517: HTTP/3 for the HTTP Client API [v6]

2025-06-04 Thread Daniel Fuchs
On Wed, 4 Jun 2025 15:46:36 GMT, Daniel Fuchs wrote: >> Hi, >> >> Please find here a PR for the implementation of [JEP 517: HTTP/3 for the >> HTTP Client API](https://openjdk.org/jeps/517). >> >> The CSR can be viewed at [JDK-8350588: Implement JEP 517: HTTP/3 for the >> HTTP Client API](http

Re: RFR: 8352565: Add native method implementation of Reference.get() [v8]

2025-06-04 Thread Chen Liang
On Wed, 4 Jun 2025 07:12:42 GMT, Kim Barrett wrote: >> Please review this change which adds a native method providing the >> implementation of Reference::get. Referece::get is an intrinsic candidate, >> so >> this native method implementation is only used when the intrinsic is not. >> >> Curre

Re: RFR: 8357531: The `SegmentBulkOperations::fill` method can be improved using overlaps [v7]

2025-06-04 Thread Per Minborg
> This PR builds on a concept John Rose told me about some time ago. Instead of > combining memory operations of various sizes, a single large and skewed > memory operation can be made to clean up the tail of remaining bytes. > > This has the effect of simplifying and shortening the code. The nu

Re: RFR: 8358015: Fix SequencedMap sequenced view method specifications [v2]

2025-06-04 Thread Johannes Döbler
On Wed, 4 Jun 2025 16:19:23 GMT, Stuart Marks wrote: >> It would be helpful in situations like this to have the inverse annotation >> -- "All methods should be overridden, except the ones marked `@NoOverride`". > > Interesting. This `@NoOverride` idea could be useful on a subclass that wants >

Integrated: 8358449: Locale.getISOCountries does not specify the returned set is unmodifiable

2025-06-04 Thread Justin Lu
On Tue, 3 Jun 2025 17:13:45 GMT, Justin Lu wrote: > Please review this trivial doc correction to > `Locale.getISOCountries(Locale.IsoCountryCode type)` which makes it apparent > that the returned Set is unmodifiable. Associated CSR filed. This pull request has now been integrated. Changeset:

Re: RFR: 8349914: ZipFile::entries and ZipFile::getInputStream not consistent with each other when there are duplicate entries

2025-06-04 Thread Lance Andersen
On Wed, 4 Jun 2025 09:53:13 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which proposes to address the issue > noted in https://bugs.openjdk.org/browse/JDK-8349914? > > The ZIP specification allows for more than one entry to have the same file > name (and may have differ

Re: RFR: 8349910: Implement JEP 517: HTTP/3 for the HTTP Client API [v5]

2025-06-04 Thread Daniel Fuchs
On Fri, 16 May 2025 10:26:11 GMT, Daniel Fuchs wrote: >> Daniel Fuchs has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 422 commits: >> >> - merge latest changes from master branch >> - Undo whitespace change >> - Remove unnecess

Re: RFR: 8357823: Changes in StringBuilder (JDK-8351443) caused a 1-3% regression in biojava

2025-06-04 Thread Martin Doerr
On Fri, 30 May 2025 14:01:04 GMT, Roger Riggs wrote: > Comment out assertions added in JDK-8351443 from > AbstractStringBuilder.ensureCapacityNewCoder that increase the codesize, > preventing some inlining, and reducing performance > >assert coder == newCoder || newCoder == UTF16 : "ba

Re: RFR: 8358015: Fix SequencedMap sequenced view method specifications [v2]

2025-06-04 Thread Stuart Marks
On Wed, 4 Jun 2025 04:08:36 GMT, Joe Darcy wrote: >> The `@Override` annotation has been inconsistently applied in the >> collections implementations. In practice since so many methods are >> overridden, and some test would likely fail if a method weren't overridden >> properly, the annotation

Re: [External] : Re: Should mapConcurrent() respect time order instead of input order?

2025-06-04 Thread Jige Yu
Hi Viktor, Thank you for the detailed explanation and the links to the Javadoc for findFirst() and limit(). You're absolutely correct in your characterization of these operations – they are indeed concerned with encounter order, and parallel execution doesn't inherently change that unless the stre

Integrated: 8358015: Fix SequencedMap sequenced view method specifications

2025-06-04 Thread Stuart Marks
On Thu, 29 May 2025 00:21:35 GMT, Stuart Marks wrote: > For a full explanation, see the bug report > [JDK-8358015](https://bugs.openjdk.org/browse/JDK-8358015). > > This PR includes three related changes: > * New overrides in SequencedMap view collection implementations, which > improve their

Re: RFR: 8351594: JFR: Rate-limited sampling of Java events [v3]

2025-06-04 Thread Erik Gahlin
On Wed, 4 Jun 2025 14:32:31 GMT, Alan Bateman wrote: >> Erik Gahlin has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix adjust boundary > > src/java.base/share/classes/java/net/Socket.java line 970: > >> 968: long end = Sock

Re: RFR: 8351594: JFR: Rate-limited sampling of Java events [v3]

2025-06-04 Thread Erik Gahlin
On Wed, 4 Jun 2025 14:16:56 GMT, Alan Bateman wrote: >> Erik Gahlin has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix adjust boundary > > src/jdk.jfr/share/classes/jdk/jfr/Throttle.java line 77: > >> 75: * Specifying {@code "off"

Re: RFR: 8349910: Implement JEP 517: HTTP/3 for the HTTP Client API [v6]

2025-06-04 Thread Daniel Fuchs
> Hi, > > Please find here a PR for the implementation of [JEP 517: HTTP/3 for the HTTP > Client API](https://openjdk.org/jeps/517). > > The CSR can be viewed at [JDK-8350588: Implement JEP 517: HTTP/3 for the HTTP > Client API](https://bugs.openjdk.org/browse/JDK-8350588) > > This JEP propose

Re: RFR: 8358558: (zipfs) Reorder the listing of "accessMode" property in the ZIP file system's documentation

2025-06-04 Thread Jaikiran Pai
On Wed, 4 Jun 2025 06:47:59 GMT, Jaikiran Pai wrote: > Can I please get a review of this trivial doc-only change to the > `jdk.zipfs`'s documentation? This moves the `accessMode` property listing to > the top of the table instead of being at the bottom. With this change, the > text about throw

Re: RFR: 8358558: (zipfs) Reorder the listing of "accessMode" property in the ZIP file system's documentation [v2]

2025-06-04 Thread Jaikiran Pai
> Can I please get a review of this trivial doc-only change to the > `jdk.zipfs`'s documentation? This moves the `accessMode` property listing to > the top of the table instead of being at the bottom. With this change, the > text about throwing `IllegalArgumentException` when `create=true` and

Re: RFR: 8358558: (zipfs) Reorder the listing of "accessMode" property in the ZIP file system's documentation [v2]

2025-06-04 Thread Jaikiran Pai
On Wed, 4 Jun 2025 14:56:59 GMT, Jaikiran Pai wrote: >> src/jdk.zipfs/share/classes/module-info.java line 195: >> >>> 193: * If the value is {@code true}, the ZIP file system provider >>> creates a >>> 194: * new ZIP or JAR file if it does not exist. Specifying the >>> {@code cre

Re: RFR: 8358558: (zipfs) Reorder the listing of "accessMode" property in the ZIP file system's documentation [v2]

2025-06-04 Thread Daniel Fuchs
On Wed, 4 Jun 2025 15:03:11 GMT, Jaikiran Pai wrote: >> Can I please get a review of this trivial doc-only change to the >> `jdk.zipfs`'s documentation? This moves the `accessMode` property listing to >> the top of the table instead of being at the bottom. With this change, the >> text about t

Re: RFR: 8358558: (zipfs) Reorder the listing of "accessMode" property in the ZIP file system's documentation [v2]

2025-06-04 Thread Jaikiran Pai
On Wed, 4 Jun 2025 09:35:25 GMT, Daniel Fuchs wrote: >> Jaikiran Pai has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Daniel's suggestion - consistent use of {@code "readOnly"} > > src/jdk.zipfs/share/classes/module-info.java line 195: >

Re: [External] : Re: Should mapConcurrent() respect time order instead of input order?

2025-06-04 Thread Viktor Klang
Hi Jige, First of all—you're most welcome. Thanks for your insightful questions. >Temptation for Race Semantics: The beauty of mapConcurrent() integrating with >the Stream API means developers will naturally be drawn to use it for >race-like scenarios. Operations like findFirst() or limit(N) to

Re: RFR: 8351594: JFR: Rate-limited sampling of Java events [v3]

2025-06-04 Thread Alan Bateman
On Tue, 3 Jun 2025 12:50:49 GMT, Erik Gahlin wrote: >> Could I have review of an enhancement that adds rate-limited sampling to >> Java events, including five events in the JDK (SocketRead, SocketWrite, >> FileRead, FileWrite, and JavaExceptionThrow). >> >> Testing: test/jdk/jdk/jfr >> >> Tha

Re: RFR: 8358540: Enhance MathUtils in view of FloatingDecimal enhancements

2025-06-04 Thread Raffaello Giulietti
On Wed, 4 Jun 2025 14:22:43 GMT, Raffaello Giulietti wrote: > Another step in enhancing floating-point <-> decimal conversions. Changes include, but are not limited to: - Accessing `g0()` and `g1()` with the exponent rather than the negated exponent. - Inverting the order of the `MathUtils.g`

RFR: 8358540: Enhance MathUtils in view of FloatingDecimal enhancements

2025-06-04 Thread Raffaello Giulietti
Another step in enhancing floating-point <-> decimal conversions. - Commit messages: - 8358540: Enhance MathUtils in view of FloatingDecimal enhancements Changes: https://git.openjdk.org/jdk/pull/25641/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25641&range=00 Issue:

Re: RFR: 8357913: Add `@Stable` to BigInteger and BigDecimal [v2]

2025-06-04 Thread Shaojin Wen
On Wed, 4 Jun 2025 14:03:49 GMT, Raffaello Giulietti wrote: >> Please do _not_ fix the `mag` issue in this PR. >> I'll take care of it in a future PR. > > I just filed [JDK-8358599](https://bugs.openjdk.org/browse/JDK-8358599). > Please do _not_ fix the `mag` issue in this PR. I'll take care of

Re: [External] : Re: Should mapConcurrent() respect time order instead of input order?

2025-06-04 Thread Jige Yu
Hi Viktor, Thank you for sharing that the general feedback on mapConcurrent() has been positive and for the insights into the ongoing enhancements, especially around interruption handling and work-in-progress tracking. To clarify my own position, I am also extremely enthusiastic about the mapConc

Re: RFR: 8357913: Add `@Stable` to BigInteger and BigDecimal [v2]

2025-06-04 Thread Raffaello Giulietti
On Wed, 4 Jun 2025 13:53:09 GMT, Raffaello Giulietti wrote: >> BigInteger is an object that is considered immutable, but its field mag is >> actually changed. This is incredible and should be fixed here. It is easy to >> make mistakes. > > Please do _not_ fix the `mag` issue in this PR. > I'll

Re: RFR: 8357913: Add `@Stable` to BigInteger and BigDecimal [v2]

2025-06-04 Thread Raffaello Giulietti
On Fri, 30 May 2025 22:21:34 GMT, Shaojin Wen wrote: >> src/java.base/share/classes/java/math/BigInteger.java line 192: >> >>> 190: * zero-length mag array. >>> 191: */ >>> 192: @Stable >> >> `BigInteger.mag` gets written to a few times during computation in  >> `BigInteger​.large

Re: RFR: 8358558: (zipfs) Reorder the listing of accessMode property in the ZIP file system's documentation

2025-06-04 Thread Lance Andersen
On Wed, 4 Jun 2025 06:47:59 GMT, Jaikiran Pai wrote: > Can I please get a review of this trivial doc-only change to the > `jdk.zipfs`'s documentation? This moves the `accessMode` property listing to > the top of the table instead of being at the bottom. With this change, the > text about throw

Re: RFR: 8358558: (zipfs) Reorder the listing of accessMode property in the ZIP file system's documentation

2025-06-04 Thread Alan Bateman
On Wed, 4 Jun 2025 08:35:01 GMT, Jaikiran Pai wrote: > Hello Volkan, the alphabetical ordering wasn't an intention of this change. > But after what you noted, I was almost considering making it alphabetically > ordered, but then I noticed that I will also have to move down the properties > `en

Re: RFR: 8358558: (zipfs) Reorder the listing of accessMode property in the ZIP file system's documentation

2025-06-04 Thread Alan Bateman
On Wed, 4 Jun 2025 06:47:59 GMT, Jaikiran Pai wrote: > Can I please get a review of this trivial doc-only change to the > `jdk.zipfs`'s documentation? This moves the `accessMode` property listing to > the top of the table instead of being at the bottom. With this change, the > text about throw

RFR: 8358588: ThreadSnapshot.ThreadLock should be static nested class

2025-06-04 Thread Aleksey Shipilev
SonarCloud points out that ThreadLock class introduced by [JDK-8357650](https://bugs.openjdk.org/browse/JDK-8357650) can be turned into static nested class. I don't think this shows any real bug yet, as unreferenced enclosing class reference gets nowhere. But it would be nice to be extra crisp

Re: RFR: 8358558: (zipfs) Reorder the listing of accessMode property in the ZIP file system's documentation

2025-06-04 Thread Daniel Fuchs
On Wed, 4 Jun 2025 06:47:59 GMT, Jaikiran Pai wrote: > Can I please get a review of this trivial doc-only change to the > `jdk.zipfs`'s documentation? This moves the `accessMode` property listing to > the top of the table instead of being at the bottom. With this change, the > text about throw

Re: RFR: 8358558: (zipfs) Reorder the listing of accessMode property in the ZIP file system's documentation

2025-06-04 Thread Volkan Yazici
On Wed, 4 Jun 2025 06:47:59 GMT, Jaikiran Pai wrote: > Can I please get a review of this trivial doc-only change to the > `jdk.zipfs`'s documentation? This moves the `accessMode` property listing to > the top of the table instead of being at the bottom. With this change, the > text about throw

RFR: 8349914: ZipFile::entries and ZipFile::getInputStream not consistent with each other when there are duplicate entries

2025-06-04 Thread Jaikiran Pai
Can I please get a review of this change which proposes to address the issue noted in https://bugs.openjdk.org/browse/JDK-8349914? The ZIP specification allows for more than one entry to have the same file name (and may have different file data). In such situation, as noted in the linked issue,

RFR: 8358558: (zipfs) Reorder the listing of accessMode property in the ZIP file system's documentation

2025-06-04 Thread Jaikiran Pai
Can I please get a review of this trivial doc-only change to the `jdk.zipfs`'s documentation? This moves the `accessMode` property listing to the top of the table instead of being at the bottom. With this change, the text about throwing `IllegalArgumentException` when `create=true` and `accessMo

Re: RFR: 8358558: (zipfs) Reorder the listing of accessMode property in the ZIP file system's documentation

2025-06-04 Thread Jaikiran Pai
On Wed, 4 Jun 2025 06:47:59 GMT, Jaikiran Pai wrote: > Can I please get a review of this trivial doc-only change to the > `jdk.zipfs`'s documentation? This moves the `accessMode` property listing to > the top of the table instead of being at the bottom. With this change, the > text about throw

Re: RFR: 8356128: Correct documentation for --linux-package-deps [v4]

2025-06-04 Thread Alexey Semenyuk
On Tue, 27 May 2025 19:48:11 GMT, Stefan Lobbenmeier wrote: >> The documentation suggests that --linux-package-deps is a boolean option, >> while in fact it is a string option with dependencies separated by comma and >> space >> >> You can tell that this option is supposed to have an argument

Re: RFR: 8357913: Add `@Stable` to BigInteger and BigDecimal [v4]

2025-06-04 Thread Shaojin Wen
> Some static final arrays of BigInteger and BigDecimal are stable and > immutable. We should add `@Stable` to give the optimizer more information Shaojin Wen has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes bro

Re: RFR: 8357913: Add `@Stable` to BigInteger and BigDecimal [v3]

2025-06-04 Thread Per Minborg
On Fri, 30 May 2025 22:07:06 GMT, Shaojin Wen wrote: >> Some static final arrays of BigInteger and BigDecimal are stable and >> immutable. We should add `@Stable` to give the optimizer more information > > Shaojin Wen has updated the pull request incrementally with one additional > commit since

Re: RFR: 8351594: JFR: Rate-limited sampling of Java events [v3]

2025-06-04 Thread Alan Bateman
On Wed, 4 Jun 2025 11:31:21 GMT, Erik Gahlin wrote: > @AlanBateman Do you have time for a review? Yes, looking at the changes. - PR Comment: https://git.openjdk.org/jdk/pull/25559#issuecomment-2939787559

Re: RFR: 8352565: Add native method implementation of Reference.get() [v6]

2025-06-04 Thread Kim Barrett
On Fri, 30 May 2025 19:30:50 GMT, Vladimir Ivanov wrote: >> Much of the point of this change is to let us later remove the interpreter/c1 >> intrinsics for this function. I think what you are saying is that might be >> tricky if `get()` is the intrinsic. So maybe I should just go ahead now with >

Re: RFR: 8357821: Revert incorrectly named JavaLangAccess::unchecked* methods

2025-06-04 Thread Per Minborg
On Tue, 3 Jun 2025 09:10:04 GMT, Volkan Yazici wrote: > > I wonder if we should add that implementations of the affected method > > _shall_ do bounds checking to reduce the likelihood of a new/updated native > > implementation miss that? > > @minborg, would you mind elaborating on this a bit,

Re: RFR: 8351594: JFR: Rate-limited sampling of Java events [v3]

2025-06-04 Thread Erik Gahlin
On Tue, 3 Jun 2025 12:50:49 GMT, Erik Gahlin wrote: >> Could I have review of an enhancement that adds rate-limited sampling to >> Java events, including five events in the JDK (SocketRead, SocketWrite, >> FileRead, FileWrite, and JavaExceptionThrow). >> >> Testing: test/jdk/jdk/jfr >> >> Tha

Re: RFR: 8357798: ReverseOrderListView uses Boolean boxes after JDK-8356080 [v2]

2025-06-04 Thread Per Minborg
On Mon, 2 Jun 2025 13:26:36 GMT, Aleksey Shipilev wrote: >> SonarCloud complains that since >> [JDK-8356080](https://bugs.openjdk.org/browse/JDK-8356080) we are using >> `Boolean` boxes in `ReverseOrderListView`. This change `boolean` -> >> `Boolean` was made in >> [JDK-8356080](https://bugs.

Integrated: 8347491: IllegalArgumentationException thrown by ThreadPoolExecutor doesn't have a useful message

2025-06-04 Thread kerr
On Sat, 11 Jan 2025 07:10:53 GMT, He-Pin(kerr) wrote: > Motivation: > When a user passes a wrong parameter, the current implementation throws an > IllegalArgumentException with an error message `null`, which is not helpful. > > Modification: > Add detail error messages. > > Result: > Helpful m

Integrated: 8356977: UTF-8 cleanups

2025-06-04 Thread Magnus Ihse Bursie
On Wed, 14 May 2025 14:23:31 GMT, Magnus Ihse Bursie wrote: > I found a few other places in the code that can be cleaned up after the > conversion to UTF-8. This pull request has now been integrated. Changeset: edf92721 Author:Magnus Ihse Bursie URL: https://git.openjdk.org/jdk/com

Re: RFR: 8352565: Add native method implementation of Reference.get() [v8]

2025-06-04 Thread Kim Barrett
> Please review this change which adds a native method providing the > implementation of Reference::get. Referece::get is an intrinsic candidate, so > this native method implementation is only used when the intrinsic is not. > > Currently there is intrinsic support by the interpreter, C1, C2, and

Re: RFR: 8344332: (bf) Migrate DirectByteBuffer away from jdk.internal.ref.Cleaner [v3]

2025-06-04 Thread Kim Barrett
On Wed, 21 May 2025 05:42:34 GMT, Kim Barrett wrote: >> Kim Barrett has updated the pull request incrementally with three additional >> commits since the last revision: >> >> - add description of BufferCleaner class >> - exception handling in cleaner for backward consistency >> - detabify >