Re: Gatherers -- conditionalWindowFixed?

2024-01-09 Thread Remi Forax
Hello David, testing the gatherer api, I also wanted a "window" operation as the one you are describing. My use cases is a text file with some sections containing items organized like this :section1 item1 item2 item3 :section2 item1 item2 ... For me the signature of such method, win

Re: [jdk22] RFR: 8322809: SystemModulesMap::classNames and moduleNames arrays do not match the order

2024-01-09 Thread Alan Bateman
On Tue, 9 Jan 2024 22:16:59 GMT, Mandy Chung wrote: > This pull request contains a backport of commit > [f3be138e](https://github.com/openjdk/jdk/commit/f3be138eb80c9e7f6cc21afb75cda9e49b667c8a) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. > > The commit being backported w

[jdk22] RFR: 8310995: missing @since tags in 36 jdk.dynalink classes

2024-01-09 Thread Athijegannathan Sundararajan
backported from jdk mainline "as is" without any modifications. - Commit messages: - Backport 176606d0cb9117ca9080261f898cd57339fa5a85 Changes: https://git.openjdk.org/jdk22/pull/49/files Webrev: https://webrevs.openjdk.org/?repo=jdk22&pr=49&range=00 Issue: https://bugs.openjdk.o

Re: Gatherers -- conditionalWindowFixed?

2024-01-09 Thread David Alayachew
And this may also be better named as a split method instead of the long conditionalWindowFixed. On Wed, Jan 10, 2024 at 1:17 AM David Alayachew wrote: > Oh, I made a mistake. Let me try it again. > > If the predicate is true, add the element to the current list (create list > prior if needed). E

Re: Gatherers -- conditionalWindowFixed?

2024-01-09 Thread David Alayachew
Oh, I made a mistake. Let me try it again. If the predicate is true, add the element to the current list (create list prior if needed). Else if the predicate is false, send the list down to the stream, then add the element to a new list (the new current list, if you will). On Wed, Jan 10, 2024 a

Gatherers -- conditionalWindowFixed?

2024-01-09 Thread David Alayachew
Hello Core Libs Dev Team, I have been reading through JEP 461 (https://openjdk.org/jeps/461) about Gatherers, and I'm really excited for what this will enable for us. By far, the most important functionality that this API facilitates is the ability to create windows. Anytime I needed a window, I

RFR: JDK-8322979: Add informative discussion to Modifier

2024-01-09 Thread Joe Darcy
Add a few apiNote concerning source-level modifiers that are not represented in java.lang.reflect.Modifier. - Commit messages: - JDK-8322979: Add informative discussion to Modifier Changes: https://git.openjdk.org/jdk/pull/17338/files Webrev: https://webrevs.openjdk.org/?repo=jdk&

Re: RFR: 8309218: java/util/concurrent/locks/Lock/OOMEInAQS.java still times out with ZGC, Generational ZGC, and SerialGC [v2]

2024-01-09 Thread David Holmes
On Tue, 9 Jan 2024 11:08:39 GMT, Viktor Klang wrote: >> As per conversation in the issue. > > Viktor Klang has updated the pull request incrementally with two additional > commits since the last revision: > > - Updating copyright year for zgc and zgc-gen problem lists > - Removing OOMEInAQS f

Re: RFR: 8309218: java/util/concurrent/locks/Lock/OOMEInAQS.java still times out with ZGC, Generational ZGC, and SerialGC [v2]

2024-01-09 Thread Jaikiran Pai
On Tue, 9 Jan 2024 11:08:39 GMT, Viktor Klang wrote: >> As per conversation in the issue. > > Viktor Klang has updated the pull request incrementally with two additional > commits since the last revision: > > - Updating copyright year for zgc and zgc-gen problem lists > - Removing OOMEInAQS f

Re: [jdk22] RFR: 8320919: Clarify Locale related system properties

2024-01-09 Thread Iris Clark
On Tue, 9 Jan 2024 23:55:30 GMT, Naoto Sato wrote: > Backporting the document clarification to JDK22 Confirmed that this change corresponds to the changes in main-line and the previously approved CSR. - Marked as reviewed by iris (Reviewer). PR Review: https://git.openjdk.org/jdk

[jdk22] RFR: 8320919: Clarify Locale related system properties

2024-01-09 Thread Naoto Sato
Backporting the document clarification to JDK22 - Commit messages: - Backport 376051a9be95e0e4acf3c59d0eba3e9ef8727d79 Changes: https://git.openjdk.org/jdk22/pull/47/files Webrev: https://webrevs.openjdk.org/?repo=jdk22&pr=47&range=00 Issue: https://bugs.openjdk.org/browse/JDK-83

Re: RFR: 8320788: The system properties page is missing some properties [v3]

2024-01-09 Thread Naoto Sato
> Adding an explanation of the locale-related system properties in the > `System.getProperties()` method. Corresponding CSR has also been drafted. Naoto Sato has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 18 commits: - Merge branch

Re: RFR: 8320788: The system properties page is missing some properties [v2]

2024-01-09 Thread Naoto Sato
On Tue, 9 Jan 2024 20:06:10 GMT, Roger Riggs wrote: >> src/java.base/share/classes/java/lang/System.java line 819: >> >>> 817: * >>> 818: * Additional locale-related system properties defined by the >>> 819: * {@link Locale##default_locale Default Locale} section in the >>> {@co

Re: [jdk22] RFR: 8311218: fatal error: stuck in JvmtiVTMSTransitionDisabler::VTMS_transition_disable

2024-01-09 Thread Serguei Spitsyn
On Wed, 20 Dec 2023 21:28:04 GMT, Serguei Spitsyn wrote: > Hi all, > > This pull request contains a backport of commit > [0f8e4e0a](https://github.com/openjdk/jdk/commit/0f8e4e0a81257c678e948c341a241dc0b810494f) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. > > The commit

Integrated: 8320919: Clarify Locale related system properties

2024-01-09 Thread Naoto Sato
On Mon, 11 Dec 2023 18:54:25 GMT, Naoto Sato wrote: > This is a doc change to clarify what the `Default Locale` is, and how it is > established during the system startup using the system properties. Those > locale-related system properties have existed since the early days of Java, > but have

[jdk22] Integrated: 8321480: ISO 4217 Amendment 176 Update

2024-01-09 Thread Justin Lu
On Tue, 9 Jan 2024 19:27:12 GMT, Justin Lu wrote: > Please review this PR which is the backport of the ISO 4217 Amendment 176 > Update. Commit > [8b24851b](https://github.com/openjdk/jdk/commit/8b24851b9d3619c41c7a6cdb9193ed26a9b732dc) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repo

[jdk22] RFR: 8322809: SystemModulesMap::classNames and moduleNames arrays do not match the order

2024-01-09 Thread Mandy Chung
This pull request contains a backport of commit [f3be138e](https://github.com/openjdk/jdk/commit/f3be138eb80c9e7f6cc21afb75cda9e49b667c8a) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. The commit being backported was authored by Mandy Chung on 9 Jan 2024 and was reviewed by Al

Re: RFR: 8322565 (zipfs) Files.setPosixPermissions should preserve 'external file attributes' bits [v2]

2024-01-09 Thread Christoph Langer
On Tue, 9 Jan 2024 10:22:40 GMT, Eirik Bjørsnøs wrote: >> This PR suggests that `Files.setPosixPermissions`as implemented by >> `ZipFileSystem` should preserve the leading seven bits of the 'external file >> attributes' field. These bits contain the 'file type', 'setuid', 'setgid', >> and 'sti

Integrated: 8322809: SystemModulesMap::classNames and moduleNames arrays do not match the order

2024-01-09 Thread Mandy Chung
On Tue, 9 Jan 2024 00:17:48 GMT, Mandy Chung wrote: > One optimization of Jlink SystemModulesPlugin pre-resolves the module graph > for modules with a main class. It stores the name of the initial module and > the generated `SystemModules` class name in two arrays that can be obtained > from

Re: RFR: JDK-8322878: Including sealing information Class.toGenericString() [v6]

2024-01-09 Thread Joe Darcy
> As recently discussed on core libs, sealed-ness information could be included > in the Class.toGenericString() output, analagous to how "modifiers" that also > correspond to JVM access flags are handled. > > This is the initial spec, implementation, and test updated needed for that > change.

Re: RFR: JDK-8319122: Improve documentation of various Zip-file related APIs [v2]

2024-01-09 Thread Yakov Shafranovich
On Mon, 13 Nov 2023 18:11:12 GMT, Alan Bateman wrote: >> That would probably also involve taking existing documentation such as the >> note about not opening entries with "."/"..", and the POSIX permissions >> mappings? Would it make sense to split the rest of the changes in this PR >> from th

Re: RFR: JDK-8319122: Improve documentation of various Zip-file related APIs [v2]

2024-01-09 Thread Yakov Shafranovich
On Wed, 22 Nov 2023 22:23:18 GMT, Yakov Shafranovich wrote: >> src/java.base/share/classes/java/util/zip/ZipInputStream.java line 77: >> >>> 75: * >>> 76: * Whenever possible, {@linkplain ZipFile} should be used for parsing >>> ZIP >>> 77: * archives since it correctly reads data from the ce

Re: RFR: JDK-8319122: Improve documentation of various Zip-file related APIs [v3]

2024-01-09 Thread Yakov Shafranovich
> The various Zip/Jar-file related Java APIs have some long-standing > differences or peculiarities with respect to the ZIP-file specification or > compared to other implementations which should be documented in the API-doc. > This documents the following: > - Cache of JAR files in JarURLConnect

Re: RFR: 8320788: The system properties page is missing some properties [v2]

2024-01-09 Thread Joe Wang
On Tue, 9 Jan 2024 19:23:53 GMT, Naoto Sato wrote: >> Adding an explanation of the locale-related system properties in the >> `System.getProperties()` method. Corresponding CSR has also been drafted. > > Naoto Sato has updated the pull request incrementally with one additional > commit since th

Re: RFR: 8320788: The system properties page is missing some properties [v2]

2024-01-09 Thread Brian Burkhalter
On Tue, 9 Jan 2024 19:23:53 GMT, Naoto Sato wrote: >> Adding an explanation of the locale-related system properties in the >> `System.getProperties()` method. Corresponding CSR has also been drafted. > > Naoto Sato has updated the pull request incrementally with one additional > commit since th

Re: RFR: 8320788: The system properties page is missing some properties [v2]

2024-01-09 Thread Roger Riggs
On Tue, 9 Jan 2024 19:23:53 GMT, Naoto Sato wrote: >> Adding an explanation of the locale-related system properties in the >> `System.getProperties()` method. Corresponding CSR has also been drafted. > > Naoto Sato has updated the pull request incrementally with one additional > commit since th

Re: RFR: 8320788: The system properties page is missing some properties [v2]

2024-01-09 Thread Roger Riggs
On Tue, 9 Jan 2024 20:01:28 GMT, Joe Wang wrote: >> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Reflects review comments > > src/java.base/share/classes/java/lang/System.java line 819: > >> 817: * >> 818: * Add

Re: RFR: 8320788: The system properties page is missing some properties [v2]

2024-01-09 Thread Iris Clark
On Tue, 9 Jan 2024 19:23:53 GMT, Naoto Sato wrote: >> Adding an explanation of the locale-related system properties in the >> `System.getProperties()` method. Corresponding CSR has also been drafted. > > Naoto Sato has updated the pull request incrementally with one additional > commit since th

Re: RFR: 8320788: The system properties page is missing some properties [v2]

2024-01-09 Thread Joe Wang
On Tue, 9 Jan 2024 19:23:53 GMT, Naoto Sato wrote: >> Adding an explanation of the locale-related system properties in the >> `System.getProperties()` method. Corresponding CSR has also been drafted. > > Naoto Sato has updated the pull request incrementally with one additional > commit since th

Re: RFR: JDK-8322878: Including sealing information Class.toGenericString() [v5]

2024-01-09 Thread Roger Riggs
On Tue, 9 Jan 2024 19:37:54 GMT, Joe Darcy wrote: >> As recently discussed on core libs, sealed-ness information could be >> included in the Class.toGenericString() output, analagous to how "modifiers" >> that also correspond to JVM access flags are handled. >> >> This is the initial spec, imp

Re: [jdk22] RFR: 8321480: ISO 4217 Amendment 176 Update

2024-01-09 Thread Iris Clark
On Tue, 9 Jan 2024 19:27:12 GMT, Justin Lu wrote: > Please review this PR which is the backport of the ISO 4217 Amendment 176 > Update. Commit > [8b24851b](https://github.com/openjdk/jdk/commit/8b24851b9d3619c41c7a6cdb9193ed26a9b732dc) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repo

Re: [jdk22] RFR: 8321480: ISO 4217 Amendment 176 Update

2024-01-09 Thread Naoto Sato
On Tue, 9 Jan 2024 19:27:12 GMT, Justin Lu wrote: > Please review this PR which is the backport of the ISO 4217 Amendment 176 > Update. Commit > [8b24851b](https://github.com/openjdk/jdk/commit/8b24851b9d3619c41c7a6cdb9193ed26a9b732dc) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repo

[jdk22] RFR: 8321480: ISO 4217 Amendment 176 Update

2024-01-09 Thread Justin Lu
Please review this PR which is the backport of the ISO 4217 Amendment 176 Update. Commit [8b24851b](https://github.com/openjdk/jdk/commit/8b24851b9d3619c41c7a6cdb9193ed26a9b732dc) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. - Commit messages: - Backport 8b24851

Re: RFR: JDK-8322878: Including sealing information Class.toGenericString() [v5]

2024-01-09 Thread Joe Darcy
> As recently discussed on core libs, sealed-ness information could be included > in the Class.toGenericString() output, analagous to how "modifiers" that also > correspond to JVM access flags are handled. > > This is the initial spec, implementation, and test updated needed for that > change.

Re: RFR: 8320788: The system properties page is missing some properties [v2]

2024-01-09 Thread Naoto Sato
On Tue, 9 Jan 2024 19:02:39 GMT, Iris Clark wrote: >> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Reflects review comments > > src/java.base/share/classes/java/lang/System.java line 818: > >> 816: * {@link #getProper

Re: RFR: 8320788: The system properties page is missing some properties [v2]

2024-01-09 Thread Naoto Sato
> Adding an explanation of the locale-related system properties in the > `System.getProperties()` method. Corresponding CSR has also been drafted. Naoto Sato has updated the pull request incrementally with one additional commit since the last revision: Reflects review comments -

Re: RFR: 8320788: The system properties page is missing some properties

2024-01-09 Thread Iris Clark
On Tue, 9 Jan 2024 00:51:28 GMT, Naoto Sato wrote: > Adding an explanation of the locale-related system properties in the > `System.getProperties()` method. Corresponding CSR has also been drafted. src/java.base/share/classes/java/lang/System.java line 818: > 816: * {@link #getProperty(St

Re: RFR: 8294961: Convert java.base/java.lang.reflect.ProxyGenerator to use the Classfile API to generate proxy classes [v10]

2024-01-09 Thread Mandy Chung
On Mon, 8 Jan 2024 15:28:50 GMT, Adam Sotona wrote: >> java.base java.lang.reflect.ProxyGenerator uses ASM to generate proxy >> classes. >> >> This patch converts it to use Classfile API. >> >> It is continuation of https://github.com/openjdk/jdk/pull/10991 >> >> Any comments and suggestions

Re: RFR: JDK-8323186: A faster algorithm for MutablebigInteger.divWord(long, int)

2024-01-09 Thread fabioromano1
On Mon, 8 Jan 2024 18:20:09 GMT, Brian Burkhalter wrote: > Do you have any benchmark results demonstrating the increased throughput? I just uploaded a class for random tests. But during the execution, I've found a non banal problem concerning the old implementation's running time. The problem i

Re: RFR: 8275338: Add JFR events for notable serialization situations [v12]

2024-01-09 Thread Daniel Fuchs
On Tue, 9 Jan 2024 10:42:58 GMT, Raffaello Giulietti wrote: >> src/java.base/share/classes/java/io/SerializationMisdeclarationChecker.java >> line 87: >> >>> 85: } >>> 86: if (cl.isEnum()) { >>> 87: commitEvent(cl, SUID_NAME + " in an enum class is not >>> effectiv

Re: RFR: JDK-8323186: A faster algorithm for MutablebigInteger.divWord(long, int) [v3]

2024-01-09 Thread fabioromano1
> The method `MutableBigInteger.divWord(long, int)` can use the algorithm of > Hacker's Delight (2nd ed), section 9.3, the same used in > `Long.divideUnsigned(long, long)` and `Long.remainderUnsigned(long, long)`, > to get the computation faster. fabioromano1 has updated the pull request increm

RFR: 8320788: The system properties page is missing some properties

2024-01-09 Thread Naoto Sato
Adding an explanation of the locale-related system properties in the `System.getProperties()` method. Corresponding CSR has alos been drafted. - Depends on: https://git.openjdk.org/jdk/pull/17065 Commit messages: - initial commit Changes: https://git.openjdk.org/jdk/pull/17317/fil

Re: RFR: 8322809: SystemModulesMap::classNames and moduleNames arrays do not match the order [v3]

2024-01-09 Thread Alan Bateman
On Tue, 9 Jan 2024 18:13:43 GMT, Mandy Chung wrote: >> One optimization of Jlink SystemModulesPlugin pre-resolves the module graph >> for modules with a main class. It stores the name of the initial module and >> the generated `SystemModules` class name in two arrays that can be obtained >> f

Re: RFR: JDK-8323186: A faster algorithm for MutablebigInteger.divWord(long, int) [v2]

2024-01-09 Thread fabioromano1
> The method `MutableBigInteger.divWord(long, int)` can use the algorithm of > Hacker's Delight (2nd ed), section 9.3, the same used in > `Long.divideUnsigned(long, long)` and `Long.remainderUnsigned(long, long)`, > to get the computation faster. fabioromano1 has updated the pull request with a

Re: RFR: 8322809: SystemModulesMap::classNames and moduleNames arrays do not match the order [v3]

2024-01-09 Thread Mandy Chung
> One optimization of Jlink SystemModulesPlugin pre-resolves the module graph > for modules with a main class. It stores the name of the initial module and > the generated `SystemModules` class name in two arrays that can be obtained > from `SystemModulesMap::moduleNames` and `SystemModulesMap:

Re: RFR: 8322809: SystemModulesMap::classNames and moduleNames arrays do not match the order [v2]

2024-01-09 Thread Mandy Chung
> One optimization of Jlink SystemModulesPlugin pre-resolves the module graph > for modules with a main class. It stores the name of the initial module and > the generated `SystemModules` class name in two arrays that can be obtained > from `SystemModulesMap::moduleNames` and `SystemModulesMap:

[jdk22] Integrated: 8322725: (tz) Update Timezone Data to 2023d

2024-01-09 Thread Dan Lutker
On Fri, 5 Jan 2024 17:05:04 GMT, Dan Lutker wrote: > Clean backport tzdata 2023d. > `make test TEST="test/jdk/java/util/TimeZone test/jdk/java/time/test > test/jdk/sun/util/resources test/jdk/sun/text/resources > test/jdk/sun/util/calendar"` is all passing This pull request has now been integr

Re: [jdk22] RFR: 8322725: (tz) Update Timezone Data to 2023d

2024-01-09 Thread Iris Clark
On Fri, 5 Jan 2024 17:05:04 GMT, Dan Lutker wrote: > Clean backport tzdata 2023d. > `make test TEST="test/jdk/java/util/TimeZone test/jdk/java/time/test > test/jdk/sun/util/resources test/jdk/sun/text/resources > test/jdk/sun/util/calendar"` is all passing Marked as reviewed by iris (Reviewer)

Re: [jdk22] RFR: 8322725: (tz) Update Timezone Data to 2023d

2024-01-09 Thread Naoto Sato
On Fri, 5 Jan 2024 17:05:04 GMT, Dan Lutker wrote: > Clean backport tzdata 2023d. > `make test TEST="test/jdk/java/util/TimeZone test/jdk/java/time/test > test/jdk/sun/util/resources test/jdk/sun/text/resources > test/jdk/sun/util/calendar"` is all passing LGTM. Thanks for the backport. -

Re: [jdk22] RFR: 8321786: SegmentAllocator:allocateFrom(ValueLayout, MemorySegment, ValueLayout, long, long) spec mismatch in exception scenario

2024-01-09 Thread Maurizio Cimadamore
On Tue, 9 Jan 2024 08:10:16 GMT, Per Minborg wrote: > 8321786: SegmentAllocator:allocateFrom(ValueLayout, > MemorySegment,ValueLayout,long,long) spec mismatch in exception scenario src/java.base/share/classes/java/lang/foreign/MemorySegment.java line 1944: > 1942: * in the provide

Re: RFR: 8322809: SystemModulesMap::classNames and moduleNames arrays do not match the order

2024-01-09 Thread Mandy Chung
On Tue, 9 Jan 2024 10:06:29 GMT, Alan Bateman wrote: >> One optimization of Jlink SystemModulesPlugin pre-resolves the module graph >> for modules with a main class. It stores the name of the initial module and >> the generated `SystemModules` class name in two arrays that can be obtained >>

Re: RFR: 8303866: Allow ZipInputStream.readEnd to parse small Zip64 ZIP files [v10]

2024-01-09 Thread Eirik Bjørsnøs
On Tue, 9 Jan 2024 13:06:56 GMT, Eirik Bjørsnøs wrote: >> ZipInputStream.readEnd currently assumes a Zip64 data descriptor if the >> number of compressed or uncompressed bytes read from the inflater is larger >> than the Zip64 magic value. >> >> While the ZIP format mandates that the data des

Re: RFR: 8322324: java/foreign/TestStubAllocFailure.java times out while waiting for forked process

2024-01-09 Thread Maurizio Cimadamore
On Tue, 9 Jan 2024 14:18:37 GMT, Jorn Vernee wrote: > The issue with this test, and the test of JDK-8322324, seems to be that the > forked processes write to stderr/stdout, without this output being read > before the process terminates. The buffer might fill up if the output is not > being rea

Re: RFR: 8310813: Simplify and modernize equals, hashCode, and compareTo for BigInteger [v10]

2024-01-09 Thread Roger Riggs
On Tue, 2 Jan 2024 14:37:27 GMT, Pavel Rappo wrote: >> Please review this PR to use modern APIs and language features to simplify >> equals, hashCode, and compareTo for BigInteger. If you have any performance >> concerns, please raise them. >> >> This PR is cherry-picked from a bigger, not-yet

Re: RFR: 8322768: Optimize non-subword vector compress and expand APIs for AVX2 target. [v5]

2024-01-09 Thread Jatin Bhateja
> Hi, > > Patch optimizes non-subword vector compress and expand APIs for x86 AVX2 only > targets. > Upcoming E-core Xeons (Sierra Forest) and Hybrid CPUs only support AVX2 > instruction set. > These are very frequently used APIs in columnar database filter operation. > > Implementation uses a

Re: RFR: 8303866: Allow ZipInputStream.readEnd to parse small Zip64 ZIP files [v9]

2024-01-09 Thread Eirik Bjørsnøs
On Mon, 8 Jan 2024 15:43:34 GMT, Jaikiran Pai wrote: > The crucial part here is that the "current" `ZipEntry` is the one which was > created by a previous call to `ZipInputStream.getNextEntry()` method, which > is a public overridable method. Furthermore, the `ZipEntry.getExtra()` method > too

Re: RFR: 8310813: Simplify and modernize equals, hashCode, and compareTo for BigInteger [v10]

2024-01-09 Thread Raffaello Giulietti
On Tue, 2 Jan 2024 14:37:27 GMT, Pavel Rappo wrote: >> Please review this PR to use modern APIs and language features to simplify >> equals, hashCode, and compareTo for BigInteger. If you have any performance >> concerns, please raise them. >> >> This PR is cherry-picked from a bigger, not-yet

Re: RFR: 8303866: Allow ZipInputStream.readEnd to parse small Zip64 ZIP files [v9]

2024-01-09 Thread Eirik Bjørsnøs
On Mon, 8 Jan 2024 15:04:58 GMT, Jaikiran Pai wrote: >> Eirik Bjørsnøs has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 33 commits: >> >> - Merge branch 'master' into data-descriptor >> - Extract ZIP64_BLOCK_SIZE_OFFSET as a cons

RFR: 8322324: java/foreign/TestStubAllocFailure.java times out while waiting for forked process

2024-01-09 Thread Jorn Vernee
The issue with this test, and the test of JDK-8322324, seems to be that the forked processes write to stderr/stdout, without this output being read before the process terminates. The buffer might fill up if the output is not being read, which means that the process will stall when writing (see s

Re: RFR: JDK-8320448 Accelerate IndexOf using AVX2 [v5]

2024-01-09 Thread Jatin Bhateja
On Thu, 21 Dec 2023 15:21:08 GMT, Scott Gibbons wrote: >> Re-write the IndexOf code without the use of the pcmpestri instruction, only >> using AVX2 instructions. This change accelerates String.IndexOf on average >> 1.3x for AVX2. The benchmark numbers: >> >> >> Benchmark

Re: RFR: JDK-8322878: Including sealing information Class.toGenericString() [v4]

2024-01-09 Thread Pavel Rappo
On Mon, 8 Jan 2024 22:29:47 GMT, Joe Darcy wrote: >>> Since it doesn't seem possible to do so, I did not attempt to relay >>> "non-sealed" information in this PR :-) >> >> Naively, I thought that something like this is possible _in principle_; I >> might be mistaken though: >> >> diff --git a

Re: RFR: JDK-8320448 Accelerate IndexOf using AVX2 [v6]

2024-01-09 Thread Emanuel Peter
On Mon, 8 Jan 2024 20:48:39 GMT, Scott Gibbons wrote: >> Re-write the IndexOf code without the use of the pcmpestri instruction, only >> using AVX2 instructions. This change accelerates String.IndexOf on average >> 1.3x for AVX2. The benchmark numbers: >> >> >> Benchmark

Re: RFR: 8322565 (zipfs) Files.setPosixPermissions should preserve 'external file attributes' bits [v2]

2024-01-09 Thread Alan Bateman
On Tue, 9 Jan 2024 10:22:40 GMT, Eirik Bjørsnøs wrote: >> This PR suggests that `Files.setPosixPermissions`as implemented by >> `ZipFileSystem` should preserve the leading seven bits of the 'external file >> attributes' field. These bits contain the 'file type', 'setuid', 'setgid', >> and 'sti

Re: RFR: 8322768: Optimize non-subword vector compress and expand APIs for AVX2 target. [v2]

2024-01-09 Thread Emanuel Peter
On Tue, 9 Jan 2024 06:13:44 GMT, Jatin Bhateja wrote: >> Yes, IF it is vectorized, then there is no difference between high and low >> density. My concern was more if vectorization is preferrable over the scalar >> alternative in the low-density case, where branch prediction is more stable. > >

Re: RFR: 8322768: Optimize non-subword vector compress and expand APIs for AVX2 target. [v4]

2024-01-09 Thread Emanuel Peter
On Mon, 8 Jan 2024 06:23:46 GMT, Jatin Bhateja wrote: >> Hi, >> >> Patch optimizes non-subword vector compress and expand APIs for x86 AVX2 >> only targets. >> Upcoming E-core Xeons (Sierra Forest) and Hybrid CPUs only support AVX2 >> instruction set. >> These are very frequently used APIs in

Re: RFR: 8323183: ClassFile API performance improvements [v6]

2024-01-09 Thread Adam Sotona
On Tue, 9 Jan 2024 13:30:58 GMT, Adam Sotona wrote: >> ClassFile API performance related improvements have been separated from >> #17121 into this PR. >> >> These improvements are important to minimize performance regression of >> 8294961: Convert java.base/java.lang.reflect.ProxyGenerator to u

Re: RFR: 8323183: ClassFile API performance improvements [v6]

2024-01-09 Thread Adam Sotona
> ClassFile API performance related improvements have been separated from > #17121 into this PR. > > These improvements are important to minimize performance regression of > 8294961: Convert java.base/java.lang.reflect.ProxyGenerator to use the > Classfile API to generate proxy classes #17121 >

Re: RFR: 8303866: Allow ZipInputStream.readEnd to parse small Zip64 ZIP files [v9]

2024-01-09 Thread Eirik Bjørsnøs
On Mon, 8 Jan 2024 14:59:40 GMT, Jaikiran Pai wrote: >> Eirik Bjørsnøs has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 33 commits: >> >> - Merge branch 'master' into data-descriptor >> - Extract ZIP64_BLOCK_SIZE_OFFSET as a cons

Re: RFR: 8303866: Allow ZipInputStream.readEnd to parse small Zip64 ZIP files [v10]

2024-01-09 Thread Eirik Bjørsnøs
> ZipInputStream.readEnd currently assumes a Zip64 data descriptor if the > number of compressed or uncompressed bytes read from the inflater is larger > than the Zip64 magic value. > > While the ZIP format mandates that the data descriptor `SHOULD be stored in > ZIP64 format (as 8 byte values

Re: RFR: 8309218: java/util/concurrent/locks/Lock/OOMEInAQS.java still times out with ZGC, Generational ZGC, and SerialGC

2024-01-09 Thread Viktor Klang
On Tue, 9 Jan 2024 04:15:38 GMT, Jaikiran Pai wrote: >> As per conversation in the issue. > > Hello Viktor, the skara bot very helpfully has noted that this test has been > problemlisted in a couple of files: > >> 8309218 is used in problem lists: [test/jdk/ProblemList-zgc.txt, >> test/jdk/Pro

Re: RFR: 8309218: java/util/concurrent/locks/Lock/OOMEInAQS.java still times out with ZGC, Generational ZGC, and SerialGC [v2]

2024-01-09 Thread Viktor Klang
> As per conversation in the issue. Viktor Klang has updated the pull request incrementally with two additional commits since the last revision: - Updating copyright year for zgc and zgc-gen problem lists - Removing OOMEInAQS from zgc and zgc-gen problem lists - Changes: - all:

Re: RFR: 8275338: Add JFR events for notable serialization situations [v12]

2024-01-09 Thread Raffaello Giulietti
On Mon, 8 Jan 2024 18:15:36 GMT, Roger Riggs wrote: >> Raffaello Giulietti 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 15 >> additional comm

Re: RFR: 8275338: Add JFR events for notable serialization situations [v12]

2024-01-09 Thread Raffaello Giulietti
On Mon, 8 Jan 2024 18:38:52 GMT, Roger Riggs wrote: >> Raffaello Giulietti 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 15 >> additional comm

Re: RFR: 8322565 (zipfs) Files.setPosixPermissions should preserve 'external file attributes' bits [v2]

2024-01-09 Thread Eirik Bjørsnøs
On Tue, 9 Jan 2024 10:22:40 GMT, Eirik Bjørsnøs wrote: >> This PR suggests that `Files.setPosixPermissions`as implemented by >> `ZipFileSystem` should preserve the leading seven bits of the 'external file >> attributes' field. These bits contain the 'file type', 'setuid', 'setgid', >> and 'sti

Re: RFR: 8322565 (zipfs) Files.setPosixPermissions should preserve 'external file attributes' bits [v2]

2024-01-09 Thread Eirik Bjørsnøs
> This PR suggests that `Files.setPosixPermissions`as implemented by > `ZipFileSystem` should preserve the leading seven bits of the 'external file > attributes' field. These bits contain the 'file type', 'setuid', 'setgid', > and 'sticky' bits. These are unrelated to permissions and should not

Re: RFR: 8318971: Better Error Handling for Jar Tool Processing of "@File" [v5]

2024-01-09 Thread Jaikiran Pai
On Tue, 28 Nov 2023 12:18:23 GMT, Ryan Wallace wrote: >> Hi all, >> >> Please review this fix for jar tool not producing an archive if there is a >> missing file supplied. >> The current behaviour will recognise missing files as an error but continue >> processing, >> creating a temporary arch

Re: RFR: 8322809: SystemModulesMap::classNames and moduleNames arrays do not match the order

2024-01-09 Thread Alan Bateman
On Tue, 9 Jan 2024 00:17:48 GMT, Mandy Chung wrote: > One optimization of Jlink SystemModulesPlugin pre-resolves the module graph > for modules with a main class. It stores the name of the initial module and > the generated `SystemModules` class name in two arrays that can be obtained > from

Re: RFR: 8323183: ClassFile API performance improvements [v5]

2024-01-09 Thread Adam Sotona
> ClassFile API performance related improvements have been separated from > #17121 into this PR. > > These improvements are important to minimize performance regression of > 8294961: Convert java.base/java.lang.reflect.ProxyGenerator to use the > Classfile API to generate proxy classes #17121 >

[jdk22] RFR: 8321786: SegmentAllocator:allocateFrom(ValueLayout, MemorySegment,ValueLayout,long,long) spec mismatch in exception scenario

2024-01-09 Thread Per Minborg
8321786: SegmentAllocator:allocateFrom(ValueLayout, MemorySegment,ValueLayout,long,long) spec mismatch in exception scenario - Commit messages: - Backport 7edd10e5fa71dafbbad2343b7f5ff0a75ac9 Changes: https://git.openjdk.org/jdk22/pull/42/files Webrev: https://webrevs.openjdk.