Re: RFR: 8343962: [REDO] Move getChars to DecimalDigits [v11]

2025-01-17 Thread Shaojin Wen
> This PR is a resubmission after PR #21593 was rolled back, and the unsafe > offset overflow issue has been fixed. > > 1) Move getChars methods of StringLatin1 and StringUTF16 to DecimalDigits to > reduce duplication. > > 2) HexDigits and OctalDigits also include getCharsLatin1 and getCharsUTF

Re: Factory methods for SequencedSet and SequencedMap

2025-01-17 Thread David Alayachew
It definitely helps. I guess my next question is, there is no bridge method, which is why this fails. Why not add a bridge method? What is stopping Java from doing this? And to be clear, it is obvious to me that SewuencedSet.of is the right answer. I am just trying to understand the point you rai

Re: RFR: 8347949: Currency method to stream available Currencies [v5]

2025-01-17 Thread Chen Liang
On Fri, 17 Jan 2025 23:33:50 GMT, Justin Lu wrote: >> Please review this PR and CSR which adds a method to _java.util.Currency_ >> which returns a stream of the available Currencies. >> >> The motivation can be found in the CSR. > > Justin Lu has updated the pull request incrementally with one

Re: RFR: 8343962: [REDO] Move getChars to DecimalDigits [v10]

2025-01-17 Thread Shaojin Wen
> This PR is a resubmission after PR #21593 was rolled back, and the unsafe > offset overflow issue has been fixed. > > 1) Move getChars methods of StringLatin1 and StringUTF16 to DecimalDigits to > reduce duplication. > > 2) HexDigits and OctalDigits also include getCharsLatin1 and getCharsUTF

Re: RFR: 8347949: Currency method to stream available Currencies [v5]

2025-01-17 Thread Chen Liang
On Fri, 17 Jan 2025 23:33:50 GMT, Justin Lu wrote: >> Please review this PR and CSR which adds a method to _java.util.Currency_ >> which returns a stream of the available Currencies. >> >> The motivation can be found in the CSR. > > Justin Lu has updated the pull request incrementally with one

Re: RFR: 8343962: [REDO] Move getChars to DecimalDigits [v9]

2025-01-17 Thread Shaojin Wen
> This PR is a resubmission after PR #21593 was rolled back, and the unsafe > offset overflow issue has been fixed. > > 1) Move getChars methods of StringLatin1 and StringUTF16 to DecimalDigits to > reduce duplication. > > 2) HexDigits and OctalDigits also include getCharsLatin1 and getCharsUTF

Re: Factory methods for SequencedSet and SequencedMap

2025-01-17 Thread Joseph D. Darcy
On 1/17/2025 5:00 PM, David Alayachew wrote: Thanks for the corrections folks. I was thinking from the perspective of LSP. I now see that there is the performance perspective to consider too. Now that said, I don't understand your comment Joe Darcy. Could you explain it in more detail? S

Re: RFR: 8343962: [REDO] Move getChars to DecimalDigits [v8]

2025-01-17 Thread Shaojin Wen
> This PR is a resubmission after PR #21593 was rolled back, and the unsafe > offset overflow issue has been fixed. > > 1) Move getChars methods of StringLatin1 and StringUTF16 to DecimalDigits to > reduce duplication. > > 2) HexDigits and OctalDigits also include getCharsLatin1 and getCharsUTF

Re: RFR: 8343962: [REDO] Move getChars to DecimalDigits [v6]

2025-01-17 Thread Shaojin Wen
On Fri, 17 Jan 2025 15:29:32 GMT, Raffaello Giulietti wrote: >> fixed it > > Sorry, I was just reading the comment and not how DIGITS is initialized and > used. > > The _correct_ comment should be something like > > * 97 -> '9' | ('7' << 8) -> 0x3739 > > so the `short` value was co

Re: Factory methods for SequencedSet and SequencedMap

2025-01-17 Thread David Alayachew
Thanks for the corrections folks. I was thinking from the perspective of LSP. I now see that there is the performance perspective to consider too. Now that said, I don't understand your comment Joe Darcy. Could you explain it in more detail? My initial pick up of your comment is that, the paramet

Re: RFR: 8338428: Add logging if final VM flags while setting properties [v6]

2025-01-17 Thread Leonid Mesnik
On Fri, 17 Jan 2025 18:50:22 GMT, Leonid Mesnik wrote: >> Some VM flags might depend on the environment and it makes sense to log >> final flags so it is possible to get their value when investigating failures. >> >> I added them to VMProps, so it is always dump final flags before running >> t

Re: RFR: 8347498: JDK 24 RDP2 L10n resource files update

2025-01-17 Thread Naoto Sato
On Fri, 17 Jan 2025 22:29:15 GMT, Justin Lu wrote: > Please review this PR which contains the l10n translations for between RDP1 > and RDP2 for the JDK24 stabilization branch. > > Note that these translations are only associated with changes made to the > stabilization branch. This PR will not

Re: RFR: 8347949: Currency method to stream available Currencies [v5]

2025-01-17 Thread Justin Lu
> Please review this PR and CSR which adds a method to _java.util.Currency_ > which returns a stream of the available Currencies. > > The motivation can be found in the CSR. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: provide messa

Re: RFR: 8347949: Currency method to stream available Currencies [v4]

2025-01-17 Thread Roger Riggs
On Fri, 17 Jan 2025 23:10:54 GMT, Justin Lu wrote: >> Please review this PR and CSR which adds a method to _java.util.Currency_ >> which returns a stream of the available Currencies. >> >> The motivation can be found in the CSR. > > Justin Lu has updated the pull request incrementally with one

Re: RFR: 8347498: JDK 24 RDP2 L10n resource files update

2025-01-17 Thread Justin Lu
On Fri, 17 Jan 2025 22:29:15 GMT, Justin Lu wrote: > Please review this PR which contains the l10n translations for between RDP1 > and RDP2 for the JDK24 stabilization branch. > > Note that these translations are only associated with changes made to the > stabilization branch. This PR will not

Re: RFR: 8347498: JDK 24 RDP2 L10n resource files update

2025-01-17 Thread Damon Nguyen
On Fri, 17 Jan 2025 23:18:43 GMT, Justin Lu wrote: > Should the copyright years be 2025, unless they were _published_ in 2024? I saw the same but forgot to mention it after looking up the original files to compare to German. I'm also not sure if this should be 2024 vs 2025. I'd assume 2024 sin

RFR: 8346230: [perf] scalability issue for the specjvm2008::xml.transform workload

2025-01-17 Thread Vladimir Ivanov
The synchronized scope was reduced from whole methods to sections that need hash map access control. The tier1 and jaxp tests are OK. The score of the specjvm2008:xml.transform improved a little bit. On the Xeon 8480+ reported scores are: original: 1vCPU - 148.4, 112vCPU - 12743.4, 224vCPU - 134

Re: RFR: 8338428: Add logging if final VM flags while setting properties [v6]

2025-01-17 Thread Roger Riggs
On Fri, 17 Jan 2025 18:50:22 GMT, Leonid Mesnik wrote: >> Some VM flags might depend on the environment and it makes sense to log >> final flags so it is possible to get their value when investigating failures. >> >> I added them to VMProps, so it is always dump final flags before running >> t

Re: RFR: 8347949: Currency method to stream available Currencies [v3]

2025-01-17 Thread Justin Lu
On Fri, 17 Jan 2025 22:49:07 GMT, Roger Riggs wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> init hashset w/ accurate size via HashSet.newHashSet(int) > > src/java.base/share/classes/java/util/Currency.java line 439:

Re: RFR: 8347949: Currency method to stream available Currencies [v4]

2025-01-17 Thread Justin Lu
> Please review this PR and CSR which adds a method to _java.util.Currency_ > which returns a stream of the available Currencies. > > The motivation can be found in the CSR. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: reflect Roger

Re: RFR: 8347498: JDK 24 RDP2 L10n resource files update

2025-01-17 Thread Naoto Sato
On Fri, 17 Jan 2025 22:29:15 GMT, Justin Lu wrote: > Please review this PR which contains the l10n translations for between RDP1 > and RDP2 for the JDK24 stabilization branch. > > Note that these translations are only associated with changes made to the > stabilization branch. This PR will not

Re: RFR: 8347949: Currency method to stream available Currencies [v3]

2025-01-17 Thread Roger Riggs
On Fri, 17 Jan 2025 22:39:14 GMT, Justin Lu wrote: >> Please review this PR and CSR which adds a method to _java.util.Currency_ >> which returns a stream of the available Currencies. >> >> The motivation can be found in the CSR. > > Justin Lu has updated the pull request incrementally with one

Re: RFR: 8347498: JDK 24 RDP2 L10n resource files update

2025-01-17 Thread Damon Nguyen
On Fri, 17 Jan 2025 22:42:05 GMT, Justin Lu wrote: >> src/jdk.jlink/share/classes/jdk/tools/jmod/resources/jmod_de.properties line >> 60: >> >>> 58: main.opt.target-platform.arg=target-platform >>> 59: main.opt.module-path=Modulpfad >>> 60: main.opt.hash-modules=Berechnet und erfasst Hashes zur

Re: RFR: 8347498: JDK 24 RDP2 L10n resource files update

2025-01-17 Thread Damon Nguyen
On Fri, 17 Jan 2025 22:29:15 GMT, Justin Lu wrote: > Please review this PR which contains the l10n translations for between RDP1 > and RDP2 for the JDK24 stabilization branch. > > Note that these translations are only associated with changes made to the > stabilization branch. This PR will not

Re: RFR: 8347498: JDK 24 RDP2 L10n resource files update

2025-01-17 Thread Justin Lu
On Fri, 17 Jan 2025 22:37:35 GMT, Damon Nguyen wrote: >> Please review this PR which contains the l10n translations for between RDP1 >> and RDP2 for the JDK24 stabilization branch. >> >> Note that these translations are only associated with changes made to the >> stabilization branch. This PR

Re: RFR: 8347498: JDK 24 RDP2 L10n resource files update

2025-01-17 Thread Damon Nguyen
On Fri, 17 Jan 2025 22:29:15 GMT, Justin Lu wrote: > Please review this PR which contains the l10n translations for between RDP1 > and RDP2 for the JDK24 stabilization branch. > > Note that these translations are only associated with changes made to the > stabilization branch. This PR will not

Re: RFR: 8347949: Currency method to stream available Currencies [v2]

2025-01-17 Thread Justin Lu
On Fri, 17 Jan 2025 22:11:51 GMT, Naoto Sato wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> synchronize init method over block > > src/java.base/share/classes/java/util/Currency.java line 467: > >> 465: private

Re: RFR: 8347949: Currency method to stream available Currencies [v3]

2025-01-17 Thread Justin Lu
> Please review this PR and CSR which adds a method to _java.util.Currency_ > which returns a stream of the available Currencies. > > The motivation can be found in the CSR. Justin Lu has updated the pull request incrementally with one additional commit since the last revision: init hashset

RFR: 8347498: JDK 24 RDP2 L10n resource files update

2025-01-17 Thread Justin Lu
Please review this PR which contains the l10n translations for between RDP1 and RDP2 for the JDK24 stabilization branch. Note that these translations are only associated with changes made to the stabilization branch. This PR will not include any translations for changes since RDP1, that were no

Re: RFR: 8347949: Currency method to stream available Currencies [v2]

2025-01-17 Thread Naoto Sato
On Thu, 16 Jan 2025 22:39:52 GMT, Justin Lu wrote: >> Please review this PR and CSR which adds a method to _java.util.Currency_ >> which returns a stream of the available Currencies. >> >> The motivation can be found in the CSR. > > Justin Lu has updated the pull request incrementally with one

Re: RFR: 8024695: new File("").exists() returns false whereas it is the current working directory

2025-01-17 Thread Brian Burkhalter
On Thu, 19 Dec 2024 00:36:44 GMT, Brian Burkhalter wrote: > Update the specification of `java.io.File.exists()` to match its behavior, > which seems correct in the context of how the empty abstract pathname is > documented elsewhere in the class. continue; - PR Comment: https://g

Re: RFR: 8347740: java/io/File/createTempFile/SpecialTempFile.java failing [v4]

2025-01-17 Thread Brian Burkhalter
On Fri, 17 Jan 2025 20:12:43 GMT, Daniel Jeliński wrote: >> Brian Burkhalter has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8347740: Remove Windows version check and ignore IOException thrown by >> File.createTempFile > > test/jdk/java

Re: RFR: 8347740: java/io/File/createTempFile/SpecialTempFile.java failing [v5]

2025-01-17 Thread Brian Burkhalter
> Fix the means of determining whether an exception is to be expected in the > Windows test. Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision: 8347740: Remove vestigial constant WINDOWS_11_MINIMUM_BUILD - Changes: -

Re: RFR: 8347740: java/io/File/createTempFile/SpecialTempFile.java failing [v4]

2025-01-17 Thread Daniel Jeliński
On Fri, 17 Jan 2025 20:00:16 GMT, Brian Burkhalter wrote: >> Fix the means of determining whether an exception is to be expected in the >> Windows test. > > Brian Burkhalter has updated the pull request incrementally with one > additional commit since the last revision: > > 8347740: Remove W

Re: RFR: 8344943: Mark not subclassable classes final in java.base exported classes [v2]

2025-01-17 Thread Weijun Wang
On Fri, 17 Jan 2025 18:19:56 GMT, Eirik Bjørsnøs wrote: >> Please review this PR which adds the `final` modifier to non-subclassable >> classes in `java.base`. >> >> The classes were identified using an automated analysis. See CSR for details. >> >> Besides simply adding the `final` access mod

Re: RFR: 8347740: java/io/File/createTempFile/SpecialTempFile.java failing [v3]

2025-01-17 Thread Brian Burkhalter
On Fri, 17 Jan 2025 18:15:17 GMT, Brian Burkhalter wrote: >> we don't care if there's an exception or not. It's not part of the spec. > > Yes, I think I'll rework this. Thanks. The build number could be obtained from the value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows N

Re: RFR: 8347740: java/io/File/createTempFile/SpecialTempFile.java failing [v4]

2025-01-17 Thread Brian Burkhalter
> Fix the means of determining whether an exception is to be expected in the > Windows test. Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision: 8347740: Remove Windows version check and ignore IOException thrown by File.createTempF

Re: RFR: 8338428: Add logging if final VM flags while setting properties [v5]

2025-01-17 Thread Leonid Mesnik
On Fri, 17 Jan 2025 17:27:32 GMT, Roger Riggs wrote: > This seems like overkill for a weak use case. > > The resulting log file is in the scratch directory so it will not be retained > for long. In local builds, whoever is running the test could add the > arguments. Thanks for your feedback.

Re: RFR: 8342807: Update links in java.base to use https://

2025-01-17 Thread Eirik Bjørsnøs
On Tue, 22 Oct 2024 19:29:43 GMT, Eirik Bjørsnøs wrote: >> FWIW: I don't believe a change to a link in a comment in an internal class >> requires a CSR. >> For PortConfig.java - it would be good to have someone involved in the AIX >> port comment on the proposed changes. >> Removing the obsole

Re: RFR: 8342807: Update links in java.base to use https:// [v3]

2025-01-17 Thread Eirik Bjørsnøs
> Please review this cleanup PR which updates a total of 12 links to external > documentation or references in `java.base` to use https instead of plain text > http. > > Links in `java.security` and `share/data/tzdata` are excluded from this PR. > > This is a documentaton-only cleanup. No tests

Re: RFR: 8338428: Add logging if final VM flags while setting properties [v6]

2025-01-17 Thread Leonid Mesnik
> Some VM flags might depend on the environment and it makes sense to log final > flags so it is possible to get their value when investigating failures. > > I added them to VMProps, so it is always dump final flags before running > tests using "-XX:+PrintFlagsFinal". > > Update: > There were i

Re: RFR: 8344943: Mark not subclassable classes final in java.base exported classes [v2]

2025-01-17 Thread Eirik Bjørsnøs
> Please review this PR which adds the `final` modifier to non-subclassable > classes in `java.base`. > > The classes were identified using an automated analysis. See CSR for details. > > Besides simply adding the `final` access modifier, the PR: > > * Updates a note in `java.lang.constant.Dyna

Re: RFR: 8347740: java/io/File/createTempFile/SpecialTempFile.java failing [v3]

2025-01-17 Thread Brian Burkhalter
On Fri, 17 Jan 2025 18:12:00 GMT, Daniel Jeliński wrote: >>> I think it should accept both outcomes (success and the specific exception) >> >> But whether there's an exception varies by Windows version / build number. >> I'll take another look and see whether there is some other way. > > we don

Re: RFR: 8347740: java/io/File/createTempFile/SpecialTempFile.java failing [v3]

2025-01-17 Thread Daniel Jeliński
On Fri, 17 Jan 2025 17:09:51 GMT, Brian Burkhalter wrote: >> No, it wouldn't cover any future Windows versions, but it would definitely >> buy us a few years. >> >> Regarding a more permanent solution: the test is supposed to verify the fix >> for [JDK-8013827](https://bugs.openjdk.org/browse/

Re: RFR: 8347841: Test fixes that use deprecated time zone IDs [v2]

2025-01-17 Thread Joe Wang
On Fri, 17 Jan 2025 00:45:54 GMT, Naoto Sato wrote: >> This fix is a follow on for >> [JDK-8342550](https://bugs.openjdk.org/browse/JDK-8342550). Replaces/Removes >> usages of those deprecated time zone ids in tests. > > Naoto Sato has updated the pull request incrementally with one additional

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

2025-01-17 Thread Galder Zamarreño
> This patch intrinsifies `Math.max(long, long)` and `Math.min(long, long)` in > order to help improve vectorization performance. > > Currently vectorization does not kick in for loops containing either of these > calls because of the following error: > > > VLoop::check_preconditions: failed:

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

2025-01-17 Thread Galder Zamarreño
On Tue, 14 Jan 2025 08:54:34 GMT, Emanuel Peter wrote: >> @eme64 I've fixed the test issue, it's ready to be reviewed > > @galderz I ran some testing on our side, feel free to ping me in 1-2 days for > the results. @eme64 I've addressed all the comments. I've not run the `VectorReduction2` for

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

2025-01-17 Thread Galder Zamarreño
> This patch intrinsifies `Math.max(long, long)` and `Math.min(long, long)` in > order to help improve vectorization performance. > > Currently vectorization does not kick in for loops containing either of these > calls because of the following error: > > > VLoop::check_preconditions: failed:

Re: Factory methods for SequencedSet and SequencedMap

2025-01-17 Thread Joseph D. Darcy
On 1/16/2025 11:26 PM, Rafael Winterhalter wrote: Would it even be possible to change the return types of Set.of(...) and Map.of(...) without breaking binary compatibility? In short, no. The methods in question are *static* methods. Switching to covariant overrides with more precise return t

Re: RFR: 8338428: Add logging if final VM flags while setting properties [v5]

2025-01-17 Thread Roger Riggs
On Fri, 17 Jan 2025 15:59:50 GMT, Leonid Mesnik wrote: >> Some VM flags might depend on the environment and it makes sense to log >> final flags so it is possible to get their value when investigating failures. >> >> I added them to VMProps, so it is always dump final flags before running >> t

Re: Minor optimizations / questions about stream implementation

2025-01-17 Thread Daniel Avery
Hi Viktor. I guess for 1-4 I'm just looking for a quick eyeball to check if my takeaways are valid, nothing too committal. I'm a little more interested in 5, because I'm currently building a document that is attempting to capture how the stream internals fit together, including visualizing stream

Re: RFR: 8347740: java/io/File/createTempFile/SpecialTempFile.java failing [v3]

2025-01-17 Thread Brian Burkhalter
On Fri, 17 Jan 2025 17:05:56 GMT, Daniel Jeliński wrote: > I think it should accept both outcomes (success and the specific exception) But whether there's an exception varies by Windows version / build number. I'll take another look and see whether there is some other way. - PR Re

Re: RFR: 8347740: java/io/File/createTempFile/SpecialTempFile.java failing [v3]

2025-01-17 Thread Daniel Jeliński
On Fri, 17 Jan 2025 16:46:58 GMT, Brian Burkhalter wrote: >> test/jdk/java/io/File/createTempFile/SpecialTempFile.java line 95: >> >>> 93: >>> 94: String cmd = "Systeminfo"; >>> 95: Process p = Runtime.getRuntime().exec(new String[] {cmd}); >> >> I'm not a big fan of running th

Re: RFR: 8338428: Add logging if final VM flags while setting properties [v5]

2025-01-17 Thread Roger Riggs
On Fri, 17 Jan 2025 15:59:50 GMT, Leonid Mesnik wrote: >> Some VM flags might depend on the environment and it makes sense to log >> final flags so it is possible to get their value when investigating failures. >> >> I added them to VMProps, so it is always dump final flags before running >> t

Re: RFR: 8347740: java/io/File/createTempFile/SpecialTempFile.java failing [v3]

2025-01-17 Thread Brian Burkhalter
On Fri, 17 Jan 2025 11:04:09 GMT, Daniel Jeliński wrote: >> Brian Burkhalter has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8347740: Change Windows exceptionExpected to be based on build number > > test/jdk/java/io/File/createTempFile/S

Re: RFR: 8343962: [REDO] Move getChars to DecimalDigits [v7]

2025-01-17 Thread Raffaello Giulietti
On Fri, 17 Jan 2025 15:46:25 GMT, Raffaello Giulietti wrote: >> Shaojin Wen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix comment, from @rgiulietti > > src/java.base/share/classes/jdk/internal/util/DecimalDigits.java line 434: >

Re: RFR: 8342103: C2 compiler support for Float16 type and associated scalar operations [v9]

2025-01-17 Thread Jatin Bhateja
On Wed, 15 Jan 2025 00:28:50 GMT, Paul Sandoz wrote: >> Hi @PaulSandoz , >> >> In above code snippet the return type 'short' of intrinsic call does not >> comply with the value being returned which is of box type, thereby mandating >> addition glue code. >> >> Regular primitive type boxing

Re: RFR: 8342103: C2 compiler support for Float16 type and associated scalar operations [v11]

2025-01-17 Thread Jatin Bhateja
> Hi All, > > This patch adds C2 compiler support for various Float16 operations added by > [PR#22128](https://github.com/openjdk/jdk/pull/22128) > > Following is the summary of changes included with this patch:- > > 1. Detection of various Float16 operations through inline expansion or > patt

Re: RFR: 8338428: Add logging if final VM flags while setting properties [v5]

2025-01-17 Thread Leonid Mesnik
> Some VM flags might depend on the environment and it makes sense to log final > flags so it is possible to get their value when investigating failures. > > I added them to VMProps, so it is always dump final flags before running > tests using "-XX:+PrintFlagsFinal". > > Update: > There were i

Re: RFR: 8343962: [REDO] Move getChars to DecimalDigits [v7]

2025-01-17 Thread Raffaello Giulietti
On Fri, 17 Jan 2025 00:09:11 GMT, Shaojin Wen wrote: >> This PR is a resubmission after PR #21593 was rolled back, and the unsafe >> offset overflow issue has been fixed. >> >> 1) Move getChars methods of StringLatin1 and StringUTF16 to DecimalDigits to >> reduce duplication. >> >> 2) HexDigi

Re: RFR: 8343962: [REDO] Move getChars to DecimalDigits [v7]

2025-01-17 Thread Raffaello Giulietti
On Fri, 17 Jan 2025 00:09:11 GMT, Shaojin Wen wrote: >> This PR is a resubmission after PR #21593 was rolled back, and the unsafe >> offset overflow issue has been fixed. >> >> 1) Move getChars methods of StringLatin1 and StringUTF16 to DecimalDigits to >> reduce duplication. >> >> 2) HexDigi

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

2025-01-17 Thread Galder Zamarreño
On Tue, 14 Jan 2025 05:07:55 GMT, Galder Zamarreño wrote: >> @galderz So you want me to review again? > > @eme64 I've fixed the test issue, it's ready to be reviewed > @galderz I don't remember from above, but did you ever run the Long Min/Max > benchmarks from this? https://github.com/openjdk/

Re: RFR: 8343962: [REDO] Move getChars to DecimalDigits [v6]

2025-01-17 Thread Raffaello Giulietti
On Fri, 17 Jan 2025 00:05:25 GMT, Shaojin Wen wrote: >> src/java.base/share/classes/jdk/internal/util/DecimalDigits.java line 42: >> >>> 40: >>> 41: /** >>> 42: * Each element of the array represents the packaging of two ascii >>> characters based on little endian: >> >> The table be

Integrated: 8347840: Fix testlibrary compilation warnings

2025-01-17 Thread Leonid Mesnik
On Wed, 15 Jan 2025 23:48:33 GMT, Leonid Mesnik wrote: > There few compiler warning disabled in the testlibary build. > They should be fixed or localized and removed from build to prevent new > possible issues. > > The main goal is to avoid new such issues in the testlibrary. > Tested with tie

Re: Factory methods for SequencedSet and SequencedMap

2025-01-17 Thread Archie Cobbs
On Fri, Jan 17, 2025 at 9:22 AM Ethan McCue wrote: > Just so there are some strawman arguments against: > To pile on... If I go to a restaurant and order a hamburger and they bring me a cheeseburger and also charge me extra for it, I'm going to complain! A Set and a SequencedSet are two differ

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

2025-01-17 Thread Galder Zamarreño
On Tue, 14 Jan 2025 08:33:36 GMT, Emanuel Peter wrote: >> Galder Zamarreño has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Make sure it runs with cpus with either avx512 or asimd > > test/hotspot/jtreg/compiler/loopopts/superword/MinMaxR

Re: Factory methods for SequencedSet and SequencedMap

2025-01-17 Thread Ethan McCue
Just so there are some strawman arguments against: * Does altering Set.of to maintain order increase its memory footprint? If the answer is yes, does that matter? If the answer is no, is there a new standalone collection type to add? SetThatIsOrderedInTheSameMannerAsPythonsSetIsOrderedAndThusHasNo

Re: RFR: 8344943: Mark not subclassable classes final in java.base exported classes

2025-01-17 Thread Sean Mullan
On Tue, 26 Nov 2024 13:04:41 GMT, Eirik Bjørsnøs wrote: > Please review this PR which adds the `final` modifier to non-subclassable > classes in `java.base`. > > The classes were identified using an automated analysis. See CSR for details. > > Besides simply adding the `final` access modifier,

Re: Factory methods for SequencedSet and SequencedMap

2025-01-17 Thread David Alayachew
Sure, changing the return type to a more specialized type is never a problem. And even if it was, the explicit documentation on those factory methods was that the actual implementation is subject to change, and should not be depended on. Also, your argument about iteration order doesn't make sense

Re: RFR: 8344943: Mark not subclassable classes final in java.base exported classes

2025-01-17 Thread Daniel Jeliński
On Tue, 26 Nov 2024 13:04:41 GMT, Eirik Bjørsnøs wrote: > Please review this PR which adds the `final` modifier to non-subclassable > classes in `java.base`. > > The classes were identified using an automated analysis. See CSR for details. > > Besides simply adding the `final` access modifier,

Re: RFR: 8347740: java/io/File/createTempFile/SpecialTempFile.java failing [v3]

2025-01-17 Thread Daniel Jeliński
On Wed, 15 Jan 2025 21:26:49 GMT, Brian Burkhalter wrote: >> Fix the means of determining whether an exception is to be expected in the >> Windows test. > > Brian Burkhalter has updated the pull request incrementally with one > additional commit since the last revision: > > 8347740: Change W

Re: Minor optimizations / questions about stream implementation

2025-01-17 Thread Viktor Klang
Hi Daniel, Thanks for your patience. What kind of feedback/responses are you looking for primarily? Have you attempted to make changes and run any of the openjdk stream benches (after running the tests)? Cheers, √ Viktor Klang Software Architect, Java Platform Group Oracle __