Re: RFR: 8318457: Use prefix-less prepend methods directly to reduce branches in String concat expressions

2023-10-18 Thread Chen Liang
On Wed, 18 Oct 2023 11:56:14 GMT, Claes Redestad wrote: > In #16006 using `StringConcatFactory` seem to induce a run-to-run variance. > One idea to reduce this is to generate expression trees with fewer branches > by looking up and using the prefix-less `prepend` methods directly for cases >

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v7]

2023-10-18 Thread Jorn Vernee
On Thu, 19 Oct 2023 01:22:46 GMT, David Holmes wrote: >> Jorn Vernee has updated the pull request incrementally with one additional >> commit since the last revision: >> >> add s390 support > > src/hotspot/share/gc/shared/gcLocker.cpp line 139: > >> 137: // has called `jni_unlock`, but

Re: RFR: 8311877: [macos] Add CLI options to provide signing identity directly to codesign and productbuild [v2]

2023-10-18 Thread Alexander Matveev
> - Added `--mac-app-image-sign-identity` and `--mac-installer-sign-identity` > CLI options to jpackage to provide signing identity directly to `codesign` > and `productbuild` tools as per CSR > [JDK-8316631](https://bugs.openjdk.org/browse/JDK-8316631). > - If `codesign` or `productbuild`

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v7]

2023-10-18 Thread David Holmes
On Wed, 18 Oct 2023 17:38:24 GMT, Jorn Vernee wrote: >> Add the ability to pass heap segments to native code. This requires using >> `Linker.Option.critical(true)` as a linker option. It has the same >> limitations as normal critical calls, namely: upcalls into Java are not >> allowed, and

Re: RFR: 8317971: RISC-V: implement copySignF/D and signumF/D intrinsics [v3]

2023-10-18 Thread Fei Yang
On Wed, 18 Oct 2023 17:35:58 GMT, Ilya Gavrilin wrote: >> Hi all, please review this changes into risc-v floating point copysign and >> signum intrinsics. >> CopySign - returns first argument with the sign of second. On risc-v we have >> `fsgnj.x` instruction, which can implement this

Re: RFR: 8303525: Refactor/cleanup open/test/jdk/javax/rmi/ssl/SSLSocketParametersTest.java [v5]

2023-10-18 Thread Stuart Marks
On Wed, 18 Oct 2023 19:05:06 GMT, Matthew Donovan wrote: >> This PR refactors the SSLSocketParametersTest by removing >> redundant/unnecessary classes and cleans up the logic around expected >> exceptions. > > Matthew Donovan has updated the pull request incrementally with one > additional

Re: RFR: 8318364: Add an FFM-based implementation of harfbuzz OpenType layout

2023-10-18 Thread Maurizio Cimadamore
On Tue, 29 Aug 2023 22:04:40 GMT, Phil Race wrote: > 8318364: Add an FFM-based implementation of harfbuzz OpenType layout src/java.desktop/share/classes/sun/font/HBShaper.java line 110: > 108: > 109: private static VarHandle getVarHandle(StructLayout struct, String > name) { > 110:

Re: RFR: 8318364: Add an FFM-based implementation of harfbuzz OpenType layout

2023-10-18 Thread Jorn Vernee
On Wed, 18 Oct 2023 20:08:26 GMT, Phil Race wrote: >> Requiring users to specify the size of the sequence layout was done in order >> to dispel the illusion that there was any kind of special handling for a >> sequence layout created without a size. e.g. if you try to allocate with it, >>

Re: RFR: 8316969: Improve CDS module graph support for --module option [v2]

2023-10-18 Thread Calvin Cheung
On Wed, 18 Oct 2023 06:26:24 GMT, Alan Bateman wrote: >> Calvin Cheung 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 five additional >>

Re: RFR: 8316969: Improve CDS module graph support for --module option [v2]

2023-10-18 Thread Calvin Cheung
> Please review this changeset for adding support for `--module` (-m) option > for CDS. > Changes in the `ModuleBootstrap.java` are needed so that the > `ArchivedModuleGraph.archive` and `ArchivedBootLayer.archive` are called if > the main module is specified. The module name will be stored in

Re: RFR: 8316969: Improve CDS module graph support for --module option [v2]

2023-10-18 Thread Calvin Cheung
On Tue, 17 Oct 2023 23:34:56 GMT, Ioi Lam wrote: >> Calvin Cheung 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 five additional >> commits

Re: RFR: 8315585: Optimization for decimal to string [v8]

2023-10-18 Thread Shaojin Wen
> I submitted PR #1 before, and there were too many changes. I split it > into multiple PRs with small changes. This one is one of them. > > this PR removed the duplicate code for getChars in > BigDecimal#StringBuilderHelper, i also make performance faster. > Please review and don't

Re: RFR: 8318364: Add an FFM-based implementation of harfbuzz OpenType layout

2023-10-18 Thread Phil Race
On Tue, 29 Aug 2023 22:04:40 GMT, Phil Race wrote: > 8318364: Add an FFM-based implementation of harfbuzz OpenType layout That's interesting. As soon as this went RFR, skara started to send all the emails from several weeks of already resolved discussions but with a current timestamp, like we

Re: RFR: 8303374: Compiler Implementation for Primitive types in patterns, instanceof, and switch (Preview) [v25]

2023-10-18 Thread Aggelos Biboudis
> This is the proposed patch for Primitive types in patterns, instanceof, and > switch (Preview). > > Draft spec here: > https://cr.openjdk.org/~abimpoudis/instanceof/jep443-20231010/specs/instanceof-jls.html Aggelos Biboudis has updated the pull request incrementally with one additional

Re: RFR: 8316493: Make immutable maps @ValueBased [v6]

2023-10-18 Thread Stuart Marks
On Wed, 18 Oct 2023 15:24:14 GMT, Per Minborg wrote: >> This PR outlines a solution for making immutable maps `@ValueBased` by >> removing cacheing of certain values in `AbstractMap`. >> >> By removing these caching fields in `AbstractMap`, we can make the immutable >> maps `@ValueBased` and

Re: RFR: 8303525: Refactor/cleanup open/test/jdk/javax/rmi/ssl/SSLSocketParametersTest.java [v5]

2023-10-18 Thread Mark Sheppard
On Wed, 18 Oct 2023 19:05:06 GMT, Matthew Donovan wrote: >> This PR refactors the SSLSocketParametersTest by removing >> redundant/unnecessary classes and cleans up the logic around expected >> exceptions. > > Matthew Donovan has updated the pull request incrementally with one > additional

Re: RFR: 8318364: Add an FFM-based implementation of harfbuzz OpenType layout

2023-10-18 Thread Phil Race
On Wed, 18 Oct 2023 06:16:15 GMT, Jorn Vernee wrote: >>> > I'm unclear why it is "better". It seems more obscure to me. >>> >>> Ok. I think it's better because it doesn't require creating a maximum size >>> sequence layout in order to then make a var handle out of, which is a bit >>> of a

Re: RFR: 8303525: Refactor/cleanup open/test/jdk/javax/rmi/ssl/SSLSocketParametersTest.java [v2]

2023-10-18 Thread Mark Sheppard
On Wed, 18 Oct 2023 18:20:49 GMT, Stuart Marks wrote: >> test/jdk/javax/rmi/ssl/SSLSocketParametersTest.java line 77: >> >>> 75: >>> 76: public void testRmiCommunication(RMIServerSocketFactory >>> serverFactory) throws Exception { >>> 77: Hello stub =

Re: RFR: 8318364: Add an FFM-based implementation of harfbuzz OpenType layout

2023-10-18 Thread Phil Race
On Tue, 29 Aug 2023 22:04:40 GMT, Phil Race wrote: > 8318364: Add an FFM-based implementation of harfbuzz OpenType layout I've added a test, which although it does not check the rendering is correct, it checks that the rendering would be identical in both the JNI and FFM cases. So if it's

Re: RFR: 8318364: Add an FFM-based implementation of harfbuzz OpenType layout

2023-10-18 Thread Maurizio Cimadamore
On Tue, 29 Aug 2023 22:04:40 GMT, Phil Race wrote: > 8318364: Add an FFM-based implementation of harfbuzz OpenType layout src/java.desktop/share/classes/sun/font/HBShaper.java line 425: > 423: float startY = (float)startPt.getY(); > 424: > 425: MemorySegment

Re: RFR: 8318364: Add an FFM-based implementation of harfbuzz OpenType layout

2023-10-18 Thread Jorn Vernee
On Tue, 17 Oct 2023 22:53:30 GMT, Phil Race wrote: > I'm unclear why it is "better". It seems more obscure to me. Ok. I think it's better because it doesn't require creating a maximum size sequence layout in order to then make a var handle out of, which is a bit of a hack IMO. One that was

Re: RFR: 8318364: Add an FFM-based implementation of harfbuzz OpenType layout

2023-10-18 Thread Jorn Vernee
On Wed, 18 Oct 2023 04:44:30 GMT, Phil Race wrote: >>> I'm unclear why it is "better". It seems more obscure to me. >> >> Ok. I think it's better because it doesn't require creating a maximum size >> sequence layout in order to then make a var handle out of, which is a bit of >> a hack IMO.

Re: RFR: 8318364: Add an FFM-based implementation of harfbuzz OpenType layout

2023-10-18 Thread Sergey Bylokhov
On Fri, 1 Sep 2023 03:45:24 GMT, Phil Race wrote: > Probably I should not have posted this PR even as draft if it is going to get > attention as it isn't really ready for that. No! That is really interesting proposal and discussion! BTW this PR is not in the draft state. - PR

Re: RFR: 8318364: Add an FFM-based implementation of harfbuzz OpenType layout

2023-10-18 Thread Phil Race
On Wed, 18 Oct 2023 03:43:15 GMT, Jorn Vernee wrote: > > I'm unclear why it is "better". It seems more obscure to me. > > Ok. I think it's better because it doesn't require creating a maximum size > sequence layout in order to then make a var handle out of, which is a bit of > a hack IMO. One

Re: RFR: 8318364: Add an FFM-based implementation of harfbuzz OpenType layout

2023-10-18 Thread Phil Race
On Tue, 17 Oct 2023 11:50:20 GMT, Jorn Vernee wrote: >> 8318364: Add an FFM-based implementation of harfbuzz OpenType layout > > src/java.desktop/share/classes/sun/font/HBShaper.java line 310: > >> 308: SequenceLayout glyphInfosLayout = >> MemoryLayout.sequenceLayout(maxinfo,

Re: RFR: 8318364: Add an FFM-based implementation of harfbuzz OpenType layout

2023-10-18 Thread Jorn Vernee
On Tue, 29 Aug 2023 22:04:40 GMT, Phil Race wrote: > 8318364: Add an FFM-based implementation of harfbuzz OpenType layout src/java.desktop/share/classes/sun/font/HBShaper.java line 310: > 308: SequenceLayout glyphInfosLayout = > MemoryLayout.sequenceLayout(maxinfo, GlyphInfoLayout); >

Re: RFR: 8318364: Add an FFM-based implementation of harfbuzz OpenType layout

2023-10-18 Thread Sergey Bylokhov
On Tue, 29 Aug 2023 22:04:40 GMT, Phil Race wrote: > 8318364: Add an FFM-based implementation of harfbuzz OpenType layout @prrace did you check how this change affects the performance, especially startup? I have experimented with Panama for littlecms:

Re: RFR: 8318364: Add an FFM-based implementation of harfbuzz OpenType layout

2023-10-18 Thread Phil Race
On Wed, 30 Aug 2023 02:55:34 GMT, Sergey Bylokhov wrote: > @prrace did you check how this change affects the performance, especially > startup? I have experimented with Panama for littlecms: > https://bugs.openjdk.org/browse/JDK-8313344 and found that the biggest issue > is a cold start, 8 ms

Re: RFR: 8318364: Add an FFM-based implementation of harfbuzz OpenType layout

2023-10-18 Thread Per Minborg
On Tue, 29 Aug 2023 22:04:40 GMT, Phil Race wrote: > 8318364: Add an FFM-based implementation of harfbuzz OpenType layout src/java.desktop/share/classes/sun/font/HBShaper.java line 55: > 53: public class HBShaper { > 54: > 55: /* Nice with the original C struct as a comment.

RFR: 8318364: Add an FFM-based implementation of harfbuzz OpenType layout

2023-10-18 Thread Phil Race
8318364: Add an FFM-based implementation of harfbuzz OpenType layout - Commit messages: - remove tailing white space - use scaling - Fix windows build, remove perf. logging - Add test, fix bug - use allocateFrom - add offset param - suppressed restricted warnings, now builds

Re: RFR: 8303525: Refactor/cleanup open/test/jdk/javax/rmi/ssl/SSLSocketParametersTest.java [v5]

2023-10-18 Thread Matthew Donovan
> This PR refactors the SSLSocketParametersTest by removing > redundant/unnecessary classes and cleans up the logic around expected > exceptions. Matthew Donovan has updated the pull request incrementally with one additional commit since the last revision: added reachability fence for the

Re: RFR: 8303525: Refactor/cleanup open/test/jdk/javax/rmi/ssl/SSLSocketParametersTest.java [v3]

2023-10-18 Thread Stuart Marks
On Tue, 17 Oct 2023 11:33:00 GMT, Matthew Donovan wrote: >> test/lib/jdk/test/lib/Asserts.java line 588: >> >>> 586: } >>> 587: // fail() throws a RuntimeException so this is unreachable. >>> 588: return null; >> >> Hm, this is unfortunate. Even though this method

Integrated: 8317979: Use TZ database style abbreviations in the CLDR locale provider

2023-10-18 Thread Naoto Sato
On Mon, 16 Oct 2023 19:57:12 GMT, Naoto Sato wrote: > CLDR provides very few short names for time zones, such as PST/PDT. This will > typically end up substituting names from the COMPAT provider. Once the COMPAT > is removed, they will be displayed in the GMT format, i.e., GMT+XX:YY. >

Re: RFR: 8316144: Remove unused field jdk.internal.util.xml.impl.XMLStreamWriterImpl.Element._Depth

2023-10-18 Thread Joe Wang
On Tue, 12 Sep 2023 20:04:54 GMT, Andrey Turbanov wrote: > A field `short _Depth` in the > `jdk.internal.util.xml.impl.XMLStreamWriterImpl.Element` class is unused and > can be removed. Sorry, I didn't realize Lance was calling on me to review, certainly a reminder to read 'mention'

Re: RFR: 8303525: Refactor/cleanup open/test/jdk/javax/rmi/ssl/SSLSocketParametersTest.java [v2]

2023-10-18 Thread Stuart Marks
On Mon, 16 Oct 2023 11:13:57 GMT, Mark Sheppard wrote: >> Matthew Donovan 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 four additional >>

Re: RFR: 8318200: String::newStringNoRepl and String::getBytesNoRepl does not throw CharacterCodingException [v5]

2023-10-18 Thread Glavo
On Tue, 17 Oct 2023 14:22:10 GMT, Shaojin Wen wrote: >> When calling String::newStringNoRepl and String::getBytesNoRepl, we need to >> use try...catch to handle CharacterCodingException and throw >> IllegalArgumentException instead of CharacterCodingException to make the >> calling code

Re: RFR: 8310901: Convert String::newStringNoRepl with Latin-1 to String::newStringLatin1NoRepl [v7]

2023-10-18 Thread Glavo
> Added a new method `newStringLatin1NoRepl` to the `JavaLangAccess`. > > Reasons: > > * Most use cases of `newStringNoRepl` use `ISO_8859_1` as the charset, > creating a new shortcut can make writing shorter; > * Since all possible values of `byte` are legal Latin-1 characters, >

Re: RFR: 8310837: Use ByteArrayLittleEndian in java.util.zip [v5]

2023-10-18 Thread Glavo
> Using `ByteArrayLittleEndian` is simpler and faster. > > `make test TEST="micro:java.util.zip.ZipFileOpen"`: > > > Benchmark (size) Mode Cnt Score Error Units > - ZipFileOpen.openCloseZipFile 512 avgt 15 39052.832 ± 107.496 ns/op > +

Re: RFR: 8317979: Use TZ database style abbreviations in the CLDR locale provider [v4]

2023-10-18 Thread Magnus Ihse Bursie
On Wed, 18 Oct 2023 15:43:12 GMT, Naoto Sato wrote: >> CLDR provides very few short names for time zones, such as PST/PDT. This >> will typically end up substituting names from the COMPAT provider. Once the >> COMPAT is removed, they will be displayed in the GMT format, i.e., >> GMT+XX:YY.

Re: RFR: 8317993: Add capturing factories to classes in java.util.function package [v5]

2023-10-18 Thread Maurizio Cimadamore
On Wed, 18 Oct 2023 09:00:09 GMT, Per Minborg wrote: >> This PR proposes to add a number of "capturing factories" in classes in the >> `java.util.function` package. >> >> The PR additionally (an optionally) proposes to add a new function >> `UnaryOperator::andThenUnary` to allow composition

Re: Request for JCK17 tests exclusion

2023-10-18 Thread Nandagiri, Ramadasu (NSDi)
Hi Alan, Thanks for your response and the suggestion. I have copied, net-dev on my original mail. I will wait for a response from net-dev group. Regards, Ramdas From: Alan Bateman Sent: Wednesday, October 18, 2023 8:51 PM To: Nandagiri, Ramadasu (NSDi) ;

Re: RFR: 8316144: Remove unused field jdk.internal.util.xml.impl.XMLStreamWriterImpl.Element._Depth

2023-10-18 Thread Andrey Turbanov
On Tue, 12 Sep 2023 20:04:54 GMT, Andrey Turbanov wrote: > A field `short _Depth` in the > `jdk.internal.util.xml.impl.XMLStreamWriterImpl.Element` class is unused and > can be removed. Anyone want to review? I will integrate tomorrow. - PR Comment:

Re: RFR: 8318200: String::newStringNoRepl and String::getBytesNoRepl does not throw CharacterCodingException [v5]

2023-10-18 Thread Roger Riggs
On Wed, 18 Oct 2023 16:39:47 GMT, Alan Bateman wrote: > We have to be very careful with proposals like this as it means code outside > of java.lang having access to the underlying bytes. I think other > alternatives needs to be explored to avoid this and related concerns. Yes, adding another

Re: RFR: 8317971: RISC-V: implement copySignF/D and signumF/D intrinsics [v3]

2023-10-18 Thread Ilya Gavrilin
> Hi all, please review this changes into risc-v floating point copysign and > signum intrinsics. > CopySign - returns first argument with the sign of second. On risc-v we have > `fsgnj.x` instruction, which can implement this intrinsic. > Signum - returns input value if it is +/- 0.0 or NaN,

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v6]

2023-10-18 Thread Jorn Vernee
On Wed, 18 Oct 2023 17:04:52 GMT, Sidraya Jayagond wrote: >> Jorn Vernee has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - add PPC impl >> - add missing file > > Add s390x port from here >

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v6]

2023-10-18 Thread Sidraya Jayagond
On Wed, 18 Oct 2023 14:29:01 GMT, Jorn Vernee wrote: >> Add the ability to pass heap segments to native code. This requires using >> `Linker.Option.critical(true)` as a linker option. It has the same >> limitations as normal critical calls, namely: upcalls into Java are not >> allowed, and

Re: RFR: 8317993: Add capturing factories to classes in java.util.function package [v5]

2023-10-18 Thread Maurizio Cimadamore
On Wed, 18 Oct 2023 09:00:09 GMT, Per Minborg wrote: >> This PR proposes to add a number of "capturing factories" in classes in the >> `java.util.function` package. >> >> The PR additionally (an optionally) proposes to add a new function >> `UnaryOperator::andThenUnary` to allow composition

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v7]

2023-10-18 Thread Jorn Vernee
> Add the ability to pass heap segments to native code. This requires using > `Linker.Option.critical(true)` as a linker option. It has the same > limitations as normal critical calls, namely: upcalls into Java are not > allowed, and the native function should return relatively quickly. Heap >

Re: RFR: 8311302: Allow for jlinking a custom runtime without packaged modules being present [v6]

2023-10-18 Thread Severin Gehwolf
> Please review this patch which adds a "jmodless" jlink mode to the JDK. > Fundamentally this patch adds an option to use `jlink` even though your JDK > install might not come with the packaged modules (directory `jmods`). This is > particularly useful to further reduce the size of a jlinked

Integrated: 8318458: Update javac and java manpages with restricted method options

2023-10-18 Thread Maurizio Cimadamore
On Wed, 18 Oct 2023 15:32:34 GMT, Maurizio Cimadamore wrote: > This PR updates the man pages for `javac` and `java` to document: > * the new `javac` warning for restricted methods (`-Xlint:restricted`) > * the `java` option to allow access to restricted methods without warnings >

Re: RFR: 8318200: String::newStringNoRepl and String::getBytesNoRepl does not throw CharacterCodingException [v5]

2023-10-18 Thread Alan Bateman
On Wed, 18 Oct 2023 16:27:58 GMT, Roger Riggs wrote: > The new usages that are driving this change would be better served by a > method dedicated to creating latin1 strings from a caller provided byte > array. The JavaLangAccess shared secret interface is already overused, but it > is

Re: RFR: 8318200: String::newStringNoRepl and String::getBytesNoRepl does not throw CharacterCodingException [v5]

2023-10-18 Thread Roger Riggs
On Tue, 17 Oct 2023 14:22:10 GMT, Shaojin Wen wrote: >> When calling String::newStringNoRepl and String::getBytesNoRepl, we need to >> use try...catch to handle CharacterCodingException and throw >> IllegalArgumentException instead of CharacterCodingException to make the >> calling code

Re: RFR: 8318458: Update javac and java manpages with restricted method options

2023-10-18 Thread Iris Clark
On Wed, 18 Oct 2023 15:32:34 GMT, Maurizio Cimadamore wrote: > This PR updates the man pages for `javac` and `java` to document: > * the new `javac` warning for restricted methods (`-Xlint:restricted`) > * the `java` option to allow access to restricted methods without warnings >

Re: RFR: 8317678: Fix up hashCode() for ZipFile.Source.Key [v8]

2023-10-18 Thread Lance Andersen
On Wed, 18 Oct 2023 15:59:13 GMT, Sean Coffey wrote: >> Fix up java.util.zip.ZipFile$Source hashCode() impl so that duplicate Source >> objects aren't created for the same zip file. > > Sean Coffey has updated the pull request incrementally with one additional > commit since the last revision:

Re: RFR: 8318457: Use prefix-less prepend methods directly to reduce branches in String concat expressions

2023-10-18 Thread Claes Redestad
On Wed, 18 Oct 2023 16:04:34 GMT, Jim Laskey wrote: >> In #16006 using `StringConcatFactory` seem to induce a run-to-run variance. >> One idea to reduce this is to generate expression trees with fewer branches >> by looking up and using the prefix-less `prepend` methods directly for cases >>

Re: RFR: 8318457: Use prefix-less prepend methods directly to reduce branches in String concat expressions

2023-10-18 Thread Jim Laskey
On Wed, 18 Oct 2023 11:56:14 GMT, Claes Redestad wrote: > In #16006 using `StringConcatFactory` seem to induce a run-to-run variance. > One idea to reduce this is to generate expression trees with fewer branches > by looking up and using the prefix-less `prepend` methods directly for cases >

Re: RFR: 8318124: JFR: Rewrite instrumentation to use Class-File API [v3]

2023-10-18 Thread Markus Grönlund
On Mon, 16 Oct 2023 11:28:36 GMT, Erik Gahlin wrote: >> Hi, >> >> Could I have a review of an enhancement that replaces the use of ASM with >> the new Class-File API. This change only deals with bytecode that writes >> event data into buffers. Bytecode transformations carried out by classes

Re: RFR: 8315585: Optimization for decimal to string [v7]

2023-10-18 Thread Claes Redestad
On Mon, 16 Oct 2023 15:00:42 GMT, Shaojin Wen wrote: >> I submitted PR #1 before, and there were too many changes. I split it >> into multiple PRs with small changes. This one is one of them. >> >> this PR removed the duplicate code for getChars in >> BigDecimal#StringBuilderHelper, i

Re: RFR: 8318322: Update IANA Language Subtag Registry to Version 2023-10-16

2023-10-18 Thread Steven Loomis
On Tue, 17 Oct 2023 20:06:03 GMT, Justin Lu wrote: > This change updates the IANA subtag registry to the update released on > 2023-10-16. > > Announcement -> > https://mm.icann.org/pipermail/ietf-languages-announcements/2023-October/89.html Marked as reviewed by srl (Committer).

Re: RFR: 8317678: Fix up hashCode() for ZipFile.Source.Key [v8]

2023-10-18 Thread Sean Coffey
> Fix up java.util.zip.ZipFile$Source hashCode() impl so that duplicate Source > objects aren't created for the same zip file. Sean Coffey has updated the pull request incrementally with one additional commit since the last revision: Update lastModifiedTime comment - Changes:

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v6]

2023-10-18 Thread Maurizio Cimadamore
On Wed, 18 Oct 2023 14:29:01 GMT, Jorn Vernee wrote: >> Add the ability to pass heap segments to native code. This requires using >> `Linker.Option.critical(true)` as a linker option. It has the same >> limitations as normal critical calls, namely: upcalls into Java are not >> allowed, and

RFR: 8318457: Use prefix-less prepend methods directly to reduce branches in String concat expressions

2023-10-18 Thread Claes Redestad
In #16006 using `StringConcatFactory` seem to induce a run-to-run variance. One idea to reduce this is to generate expression trees with fewer branches by looking up and using the prefix-less `prepend` methods directly for cases where constant is null/empty so that the prefixed prepender will

Re: RFR: 8317979: Use TZ database style abbreviations in the CLDR locale provider [v4]

2023-10-18 Thread Naoto Sato
> CLDR provides very few short names for time zones, such as PST/PDT. This will > typically end up substituting names from the COMPAT provider. Once the COMPAT > is removed, they will be displayed in the GMT format, i.e., GMT+XX:YY. > Although some of the short names in the COMPAT provider are

Re: RFR: 8317979: Use TZ database style abbreviations in the CLDR locale provider [v3]

2023-10-18 Thread Naoto Sato
On Wed, 18 Oct 2023 15:13:14 GMT, Magnus Ihse Bursie wrote: >> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Delay populating GMT format at runtime. Reflecting review comments. > > make/modules/jdk.localedata/Gensrc.gmk

Re: RFR: 8314891: Additional Zip64 extra header validation [v7]

2023-10-18 Thread Sean Coffey
On Mon, 18 Sep 2023 13:17:25 GMT, Lance Andersen wrote: >> Please review this PR which improves the Zip64 extra header validation: >> >> - Throw a ZipException If the extra len field is 0 and : >> -- size, csize, or loc offset are set to 0x >> -- disk starting number is set to 0x >>

RFR: 8318458: Update javac and java manpages with restricted method options

2023-10-18 Thread Maurizio Cimadamore
This PR updates the man pages for `javac` and `java` to document: * the new `javac` warning for restricted methods (`-Xlint:restricted`) * the `java` option to allow access to restricted methods without warnings (`--enable-native-access`) - Commit messages: - Initial push Changes:

Re: RFR: 8316493: Make immutable maps @ValueBased [v6]

2023-10-18 Thread Per Minborg
> This PR outlines a solution for making immutable maps `@ValueBased` by > removing cacheing of certain values in `AbstractMap`. > > By removing these caching fields in `AbstractMap`, we can make the immutable > maps `@ValueBased` and at the same time, performance is likely improved > because

Re: RFR: 8316493: Make immutable maps @ValueBased [v3]

2023-10-18 Thread Per Minborg
On Fri, 22 Sep 2023 15:31:13 GMT, Chen Liang wrote: >> src/java.base/share/classes/java/util/AbstractMap.java line 524: >> >>> 522: protected Object clone() throws CloneNotSupportedException { >>> 523: AbstractMap result = (AbstractMap)super.clone(); >>> 524: return result;

Re: Request for JCK17 tests exclusion

2023-10-18 Thread Alan Bateman
On 18/10/2023 15:55, Nandagiri, Ramadasu (NSDi) wrote: Hi, Please see the discussion in the following mails. One of the TCK test cases, api/java_net/MulticastSocket/ClassLevel.html is failing on NonStop platform as NonStop doesn't support IP_MULTICAST_ALL option. We would like this test

Re: RFR: 8318322: Update IANA Language Subtag Registry to Version 2023-10-16

2023-10-18 Thread Lance Andersen
On Tue, 17 Oct 2023 20:06:03 GMT, Justin Lu wrote: > This change updates the IANA subtag registry to the update released on > 2023-10-16. > > Announcement -> > https://mm.icann.org/pipermail/ietf-languages-announcements/2023-October/89.html Marked as reviewed by lancea (Reviewer).

Re: RFR: 8316493: Make immutable maps @ValueBased [v5]

2023-10-18 Thread Per Minborg
On Tue, 19 Sep 2023 23:48:07 GMT, Chen Liang wrote: >> src/java.base/share/classes/java/util/AbstractMap.java line 375: >> >>> 373: */ >>> 374: public Collection values() { >>> 375: return new AbstractCollection<>() { >> >> Note that this causes `m.values().equals(m.values())`

Re: RFR: 8316493: Make immutable maps @ValueBased [v5]

2023-10-18 Thread Per Minborg
> This PR outlines a solution for making immutable maps `@ValueBased` by > removing cacheing of certain values in `AbstractMap`. > > By removing these caching fields in `AbstractMap`, we can make the immutable > maps `@ValueBased` and at the same time, performance is likely improved > because

Re: RFR: 8317979: Use TZ database style abbreviations in the CLDR locale provider [v3]

2023-10-18 Thread Magnus Ihse Bursie
On Tue, 17 Oct 2023 16:52:12 GMT, Naoto Sato wrote: >> CLDR provides very few short names for time zones, such as PST/PDT. This >> will typically end up substituting names from the COMPAT provider. Once the >> COMPAT is removed, they will be displayed in the GMT format, i.e., >> GMT+XX:YY.

Re: Request for JCK17 tests exclusion

2023-10-18 Thread Nandagiri, Ramadasu (NSDi)
Hi, Please see the discussion in the following mails. One of the TCK test cases, api/java_net/MulticastSocket/ClassLevel.html is failing on NonStop platform as NonStop doesn't support IP_MULTICAST_ALL option. We would like this test case to be excluded from TCK. Please share your thoughts on

Re: RFR: 8315585: Optimization for decimal to string [v7]

2023-10-18 Thread Claes Redestad
On Mon, 16 Oct 2023 15:00:42 GMT, Shaojin Wen wrote: >> I submitted PR #1 before, and there were too many changes. I split it >> into multiple PRs with small changes. This one is one of them. >> >> this PR removed the duplicate code for getChars in >> BigDecimal#StringBuilderHelper, i

Re: RFR: JDK-8077371: Binary files in JAXP test should be removed [v11]

2023-10-18 Thread Roger Riggs
On Sun, 15 Oct 2023 16:36:33 GMT, Mahendra Chhipa wrote: >> Test is updated to create the binary files during test execution. > > Mahendra Chhipa has updated the pull request incrementally with one > additional commit since the last revision: > > Corrected use of whitespace in text block.

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v5]

2023-10-18 Thread Jorn Vernee
On Wed, 18 Oct 2023 14:38:41 GMT, Martin Doerr wrote: > I wonder if the native_invoker_size_per_arg thing still works good enough. We > may exceed the computed size, now, right? Good point. I'll have a look at enhancing the test we have for this. Intuitively, I think it will be okay. It's

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v5]

2023-10-18 Thread Martin Doerr
On Wed, 18 Oct 2023 13:49:40 GMT, Jorn Vernee wrote: > > Note: This error is not related to this PR. It was broken by > > https://github.com/openjdk/jdk/commit/b12c471a990eb8f789410a20084918368c655659 > > which is incorrect for Big Endian. Should I file a new issue or is that > > already

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v5]

2023-10-18 Thread Martin Doerr
On Wed, 18 Oct 2023 13:13:07 GMT, Martin Doerr wrote: >> Jorn Vernee has updated the pull request incrementally with six additional >> commits since the last revision: >> >> - Add xor benchmark >> - add readOnly heap segment test >> - shorten linker doc >> - use allocateFrom in benchmarks

Re: RFR: 8315585: Optimization for decimal to string [v7]

2023-10-18 Thread Shaojin Wen
On Mon, 16 Oct 2023 15:00:42 GMT, Shaojin Wen wrote: >> I submitted PR #1 before, and there were too many changes. I split it >> into multiple PRs with small changes. This one is one of them. >> >> this PR removed the duplicate code for getChars in >> BigDecimal#StringBuilderHelper, i

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v6]

2023-10-18 Thread Jorn Vernee
> Add the ability to pass heap segments to native code. This requires using > `Linker.Option.critical(true)` as a linker option. It has the same > limitations as normal critical calls, namely: upcalls into Java are not > allowed, and the native function should return relatively quickly. Heap >

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v5]

2023-10-18 Thread Jorn Vernee
On Wed, 18 Oct 2023 13:13:07 GMT, Martin Doerr wrote: >> Jorn Vernee has updated the pull request incrementally with six additional >> commits since the last revision: >> >> - Add xor benchmark >> - add readOnly heap segment test >> - shorten linker doc >> - use allocateFrom in benchmarks

Re: RFR: 8318324: Drop redundant default methods from FFM API [v2]

2023-10-18 Thread Jorn Vernee
On Wed, 18 Oct 2023 13:53:35 GMT, Maurizio Cimadamore wrote: >> This PR moves turns default methods in `MemorySegment` and `MemoryLayout` >> into ordinary abstract methods. >> These interfaces cannot be subclasses by developers (they are sealed), so >> there is no reson for having default

Re: RFR: 8303374: Compiler Implementation for Primitive types in patterns, instanceof, and switch (Preview) [v24]

2023-10-18 Thread Aggelos Biboudis
> This is the proposed patch for Primitive types in patterns, instanceof, and > switch (Preview). > > Draft spec here: > https://cr.openjdk.org/~abimpoudis/instanceof/jep443-20231010/specs/instanceof-jls.html Aggelos Biboudis has updated the pull request incrementally with one additional

Re: RFR: 8318324: Drop redundant default methods from FFM API [v2]

2023-10-18 Thread Maurizio Cimadamore
> This PR moves turns default methods in `MemorySegment` and `MemoryLayout` > into ordinary abstract methods. > These interfaces cannot be subclasses by developers (they are sealed), so > there is no reson for having default methods there. Also, default methods can > have some detrimental

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v5]

2023-10-18 Thread Jorn Vernee
On Wed, 18 Oct 2023 13:13:07 GMT, Martin Doerr wrote: > Note: This error is not related to this PR. It was broken by > https://github.com/openjdk/jdk/commit/b12c471a990eb8f789410a20084918368c655659 > which is incorrect for Big Endian. Should I file a new issue or is that > already known?

Re: RFR: JDK-8318415: Adjust describing comment of os_getChildren after 8315026

2023-10-18 Thread Roger Riggs
On Wed, 18 Oct 2023 08:18:47 GMT, Matthias Baesken wrote: > 8315026 adjusted and improved the describings comments already for AIX/Linux. > But macOS was not adjusted. Thanks for the updates. - Marked as reviewed by rriggs (Reviewer). PR Review:

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v5]

2023-10-18 Thread Martin Doerr
On Wed, 18 Oct 2023 12:45:05 GMT, Jorn Vernee wrote: >> Add the ability to pass heap segments to native code. This requires using >> `Linker.Option.critical(true)` as a linker option. It has the same >> limitations as normal critical calls, namely: upcalls into Java are not >> allowed, and

Re: RFR: 8317868: Add @sealedGraph to MethodHandleDesc and descendants [v2]

2023-10-18 Thread Jorn Vernee
On Wed, 11 Oct 2023 11:18:41 GMT, Per Minborg wrote: >> This PR proposes to add @sealedGraph to MethodHandleDesc and descendants. > > Per Minborg has updated the pull request incrementally with two additional > commits since the last revision: > > - Update copyright year > - Revoke change

Re: RFR: 8316493: Make immutable maps @ValueBased [v4]

2023-10-18 Thread Per Minborg
> This PR outlines a solution for making immutable maps `@ValueBased` by > removing cacheing of certain values in `AbstractMap`. > > By removing these caching fields in `AbstractMap`, we can make the immutable > maps `@ValueBased` and at the same time, performance is likely improved > because

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v4]

2023-10-18 Thread Jorn Vernee
On Wed, 18 Oct 2023 09:42:27 GMT, Jorn Vernee wrote: >> Add the ability to pass heap segments to native code. This requires using >> `Linker.Option.critical(true)` as a linker option. It has the same >> limitations as normal critical calls, namely: upcalls into Java are not >> allowed, and

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v5]

2023-10-18 Thread Jorn Vernee
> Add the ability to pass heap segments to native code. This requires using > `Linker.Option.critical(true)` as a linker option. It has the same > limitations as normal critical calls, namely: upcalls into Java are not > allowed, and the native function should return relatively quickly. Heap >

Re: RFR: 8318324: Drop redundant default methods from FFM API

2023-10-18 Thread Jorn Vernee
On Wed, 18 Oct 2023 12:09:28 GMT, Maurizio Cimadamore wrote: >> src/java.base/share/classes/jdk/internal/foreign/layout/AbstractLayout.java >> line 47: >> >>> 45: import java.util.Optional; >>> 46: import java.util.Set; >>> 47: import java.util.function.Function; >> >> There are quite a few

Re: RFR: 8318324: Drop redundant default methods from FFM API

2023-10-18 Thread Maurizio Cimadamore
On Wed, 18 Oct 2023 04:06:17 GMT, Jorn Vernee wrote: >> This PR moves turns default methods in `MemorySegment` and `MemoryLayout` >> into ordinary abstract methods. >> These interfaces cannot be subclasses by developers (they are sealed), so >> there is no reson for having default methods

Re: RFR: 8317678: Fix up hashCode() for ZipFile.Source.Key [v7]

2023-10-18 Thread Alan Bateman
On Wed, 18 Oct 2023 10:09:29 GMT, Sean Coffey wrote: >> Fix up java.util.zip.ZipFile$Source hashCode() impl so that duplicate Source >> objects aren't created for the same zip file. > > Sean Coffey has updated the pull request incrementally with one additional > commit since the last revision:

RFR: 8318324: Drop redundant default methods from FFM API

2023-10-18 Thread Maurizio Cimadamore
This PR moves turns default methods in `MemorySegment` and `MemoryLayout` into ordinary abstract methods. These interfaces cannot be subclasses by developers (they are sealed), so there is no reson for having default methods there. Also, default methods can have some detrimental effects, as

Re: RFR: 8318324: Drop redundant default methods from FFM API

2023-10-18 Thread Jorn Vernee
On Tue, 17 Oct 2023 17:31:30 GMT, Maurizio Cimadamore wrote: > This PR moves turns default methods in `MemorySegment` and `MemoryLayout` > into ordinary abstract methods. > These interfaces cannot be subclasses by developers (they are sealed), so > there is no reson for having default methods

Re: RFR: 8315585: Optimization for decimal to string [v7]

2023-10-18 Thread Claes Redestad
On Mon, 16 Oct 2023 15:00:42 GMT, Shaojin Wen wrote: >> I submitted PR #1 before, and there were too many changes. I split it >> into multiple PRs with small changes. This one is one of them. >> >> this PR removed the duplicate code for getChars in >> BigDecimal#StringBuilderHelper, i

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v2]

2023-10-18 Thread Jorn Vernee
On Wed, 18 Oct 2023 11:12:43 GMT, Maurizio Cimadamore wrote: >> This had a pretty big impact, actually. Especially on the larger sizes: >> >> >> Benchmark (size) Mode Cnt Score Error >> Units >> CriticalCalls.callNotPinned 100 avgt 30 84.818 �

Re: RFR: 8254693: Add Panama feature to pass heap segments to native code [v2]

2023-10-18 Thread Maurizio Cimadamore
On Wed, 18 Oct 2023 10:48:58 GMT, Jorn Vernee wrote: >> Good point. I made this benchmark a while ago, before we had the more >> optimized allocate variants > > This had a pretty big impact, actually. Especially on the larger sizes: > > > Benchmark (size) Mode Cnt

  1   2   >