Re: RFR: 8338967: Improve performance for MemorySegment::fill [v10]

2024-08-30 Thread Francesco Nigro
On Fri, 30 Aug 2024 10:51:59 GMT, Per Minborg wrote: >> The performance of the `MemorySegment::fil` can be improved by replacing the >> `checkAccess()` method call with calling `checkReadOnly()` instead (as the >> bounds of the segment itself do not need to be checked). >> >> Also, smaller seg

Re: RFR: 8003887: File.getCanonicalFile() does not resolve symlinks on MS Windows [v2]

2024-08-30 Thread Brian Burkhalter
> Return the final path derived from the string returned by `canonicalize0()`. Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision: 8003887: Free value allocated in and returned by getFinalPath() - Changes: - all: https

Re: RFR: 8338967: Improve performance for MemorySegment::fill [v5]

2024-08-30 Thread Maurizio Cimadamore
On Fri, 30 Aug 2024 15:31:26 GMT, Francesco Nigro wrote: > good point: relatively to the baseline, nope, cause the new version improve > regardless, even when the new version got high branch misses My feeling is that the intrinsic we have under the hood must be doing some similar branching to

Re: RFR: 8003887: File.getCanonicalFile() does not resolve symlinks on MS Windows

2024-08-30 Thread Brian Burkhalter
On Fri, 30 Aug 2024 20:59:18 GMT, Brian Burkhalter wrote: > Return the final path derived from the string returned by `canonicalize0()`. The variable `GetFinalPathNameByHandle_func` is removed from the native code as we no longer care about Windows versions preceding Vista. - PR C

RFR: 8003887: File.getCanonicalFile() does not resolve symlinks on MS Windows

2024-08-30 Thread Brian Burkhalter
Return the final path derived from the string returned by `canonicalize0()`. - Commit messages: - 8003887: File.getCanonicalFile() does not resolve symlinks on MS Windows Changes: https://git.openjdk.org/jdk/pull/20801/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20801&r

Re: RFR: 8328877: [JNI] The JNI Specification needs to address the limitations of integer UTF-8 String lengths [v2]

2024-08-30 Thread Chris Plummer
On Fri, 30 Aug 2024 05:21:54 GMT, David Holmes wrote: >> This is the implementation of a new method added to the JNI specification. >> >> From the CSR request: >> >> The `GetStringUTFLength` function returns the length as a `jint` (`jsize`) >> value and so is limited to returning at most `Inte

Re: RFR: 8338694: x86_64 intrinsic for tanh using libm [v2]

2024-08-30 Thread Srinivas Vamsi Parasa
On Wed, 28 Aug 2024 13:14:22 GMT, Yudi Zheng wrote: >> Srinivas Vamsi Parasa has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Add stub initialization and extra tanh tests > > src/hotspot/share/jvmci/jvmciCompilerToVM.hpp line 114: > >> 1

Re: RFR: 8338694: x86_64 intrinsic for tanh using libm

2024-08-30 Thread Srinivas Vamsi Parasa
On Tue, 27 Aug 2024 22:44:43 GMT, Joe Darcy wrote: >>> This PR doesn't include any additional tests. It is often appropriate to >>> add more regression testing when introducing a new implementation of a >>> method. >> >> Thank You Joe for the suggestion. Will add more tests. (This PR passes th

Re: RFR: 8338694: x86_64 intrinsic for tanh using libm [v2]

2024-08-30 Thread Srinivas Vamsi Parasa
> The goal of this PR is to implement an x86_64 intrinsic for > java.lang.Math.tanh() using libm > > Benchmark (ops/ms) | Stock JDK | Tanh intrinsic | Speedup > -- | -- | -- | -- > MathBench.tanhDouble | 70900 | 95618 | 1.35x Srinivas Vamsi Parasa has updated the pull request incrementally with

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v4]

2024-08-30 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: optimize Utf8EntryImpl#writeTo(UTF) - Changes: - all: htt

Re: RFR: 8339260: Move rarely used constants out of ClassFile [v2]

2024-08-30 Thread Chen Liang
> Many constants are cluttered in `ClassFile`. However, only a few of them are > ever used by regular users, most notably `ACC_` flags and `JAVA_X_VERSION` > constants. All other constants are specific and should live in more local > locations, such as getters that return these constants. > > T

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v3]

2024-08-30 Thread Chen Liang
On Fri, 30 Aug 2024 17:08:33 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > Suggest

Integrated: 8338882: Clarify matching order of MessageFormat subformat factory styles

2024-08-30 Thread Justin Lu
On Fri, 23 Aug 2024 19:58:08 GMT, Justin Lu wrote: > Please review this PR which clarifies that the matching order of format > styles for MessageFormat sub formats is not guaranteed. A corresponding CSR > has also been drafted. > > This is relevant when a locale provides equivalent patterns fo

Re: RFR: 8339329: ConstantPoolBuilder#constantValueEntry method doc typo and clarifications [v2]

2024-08-30 Thread David M . Lloyd
> Please review this small documentation change to ConstantPoolBuilder to fix a > typo and clarify the usage of the `constantValueEntry` method. David M. Lloyd has updated the pull request incrementally with one additional commit since the last revision: Review comments - Change

Integrated: 8339115: Rename TypeKind enum constants to follow code style

2024-08-30 Thread Chen Liang
On Tue, 27 Aug 2024 22:15:17 GMT, Chen Liang wrote: > `TypeKind` enum constants are named in wrong code style; correct them before > finalization. > > Also improved `TypeKind` specification to talk about not mentioned > `returnType`, `void`, and subword types being erased to int (and how). See

Re: RFR: 8339329: ConstantPoolBuilder#constantValueEntry method doc typo and clarifications

2024-08-30 Thread Chen Liang
On Fri, 30 Aug 2024 15:08:20 GMT, David M. Lloyd wrote: > Please review this small documentation change to ConstantPoolBuilder to fix a > typo and clarify the usage of the `constantValueEntry` method. src/java.base/share/classes/java/lang/classfile/constantpool/ConstantPoolBuilder.java line 47

Integrated: 6426678: (spec) File.createTempFile(prefix, suffix, dir) needs clarification for illegal symbols in suffix

2024-08-30 Thread Brian Burkhalter
On Fri, 2 Aug 2024 00:21:28 GMT, Brian Burkhalter wrote: > Add some verbiage indicating that an `IOException` will be thrown if a file > with a name generated from the supplied prefix and suffix according to the > described algorithm cannot be generated by the underlying system, whether > that

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v3]

2024-08-30 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: Suggestions from @cl4es, rename hasNegativeOrZeros to isLatin1GreaterThan

Integrated: 8339156: Use more fine-granular clang unused warnings

2024-08-30 Thread Magnus Ihse Bursie
On Thu, 29 Aug 2024 13:14:35 GMT, Magnus Ihse Bursie wrote: > Currently, we issue -Wno-unused for all files in clang, which is a rather big > sledgehammer to get rid of some warnings that proliferate in a few areas of > the build. > > We should instead leave -Wunused turned on (as done by -Wal

Re: RFR: 8339156: Use more fine-granular clang unused warnings [v2]

2024-08-30 Thread Erik Joelsson
On Fri, 30 Aug 2024 11:35:51 GMT, Magnus Ihse Bursie wrote: >> Currently, we issue -Wno-unused for all files in clang, which is a rather >> big sledgehammer to get rid of some warnings that proliferate in a few areas >> of the build. >> >> We should instead leave -Wunused turned on (as done by

Re: RFR: 8338967: Improve performance for MemorySegment::fill [v5]

2024-08-30 Thread Maurizio Cimadamore
On Fri, 30 Aug 2024 12:15:36 GMT, Per Minborg wrote: >> @minborg Hi! I didn't checked the numbers with the benchmark I've written at >> https://github.com/openjdk/jdk/pull/20712#discussion_r1732802685 which is >> meant to stress the branch predictor (without enough `samples` i.e. past >> 128K

Re: RFR: 8338967: Improve performance for MemorySegment::fill [v5]

2024-08-30 Thread Francesco Nigro
On Fri, 30 Aug 2024 15:21:52 GMT, Maurizio Cimadamore wrote: > in this case, we can't optimize as well, because we have different branches > which get taken or not in a less predictable fashion. Exactly - It has been designed to show the case when the conditions materialize (because are take

Re: RFR: 8338967: Improve performance for MemorySegment::fill [v5]

2024-08-30 Thread Maurizio Cimadamore
On Fri, 30 Aug 2024 12:15:36 GMT, Per Minborg wrote: >> @minborg Hi! I didn't checked the numbers with the benchmark I've written at >> https://github.com/openjdk/jdk/pull/20712#discussion_r1732802685 which is >> meant to stress the branch predictor (without enough `samples` i.e. past >> 128K

Re: RFR: 8338017: Add AOT command-line flag aliases [v3]

2024-08-30 Thread Vladimir Kozlov
On Thu, 29 Aug 2024 22:11:36 GMT, Ioi Lam wrote: >> This is the 1st PR for [JEP 483: Ahead-of-Time Class Loading & >> Linking](https://bugs.openjdk.org/browse/JDK-8315737). >> >> Add the following command-line options as specified in JEP 483: >> >> >> - `-XX:AOTMode=off/record/create/auto/on`

RFR: 8339329: ConstantPoolBuilder#constantValueEntry method doc typo and clarifications

2024-08-30 Thread David M . Lloyd
Please review this small documentation change to ConstantPoolBuilder to fix a typo and clarify the usage of the `constantValueEntry` method. - Commit messages: - 8339329: ConstantPoolBuilder#constantValueEntry method doc typo and clarifications Changes: https://git.openjdk.org/jdk

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v2]

2024-08-30 Thread Claes Redestad
On Fri, 30 Aug 2024 05:24:58 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > add com

Re: RFR: 8338023: Support two vector selectFrom API [v7]

2024-08-30 Thread Emanuel Peter
On Fri, 30 Aug 2024 13:17:26 GMT, Emanuel Peter wrote: >> Jatin Bhateja has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Adding descriptive comments > > src/hotspot/cpu/x86/matcher_x86.hpp line 215: > >> 213: } >> 214: >> 215: stati

Re: RFR: 8338023: Support two vector selectFrom API [v7]

2024-08-30 Thread Emanuel Peter
On Thu, 29 Aug 2024 05:42:58 GMT, Jatin Bhateja wrote: >> Hi All, >> >> As per the discussion on panama-dev mailing list[1], patch adds the support >> for following new two vector permutation APIs. >> >> >> Declaration:- >> Vector.selectFrom(Vector v1, Vector v2) >> >> >> Semantics:- >>

Re: RFR: 8338967: Improve performance for MemorySegment::fill [v10]

2024-08-30 Thread Maurizio Cimadamore
On Fri, 30 Aug 2024 10:51:59 GMT, Per Minborg wrote: >> The performance of the `MemorySegment::fil` can be improved by replacing the >> `checkAccess()` method call with calling `checkReadOnly()` instead (as the >> bounds of the segment itself do not need to be checked). >> >> Also, smaller seg

Re: RFR: 8334048: -Xbootclasspath can not read some ZIP64 zip files [v3]

2024-08-30 Thread fitzsim
On Wed, 31 Jul 2024 21:54:15 GMT, fitzsim wrote: >> 8334048: -Xbootclasspath can not read some ZIP64 zip files > > fitzsim has updated the pull request incrementally with one additional commit > since the last revision: > > BootClassPathZipFileTest: Switch to createClassBytes, createZip stati

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-08-30 Thread Severin Gehwolf
On Fri, 30 Aug 2024 11:40:45 GMT, Severin Gehwolf wrote: >> src/hotspot/share/prims/whitebox.cpp line 2507: >> >>> 2505: WB_END >>> 2506: >>> 2507: // Physical cpus of the host machine (including containers), Linux >>> only. >> >> Isn't the comment a bit misleading ? From what I see , ` >>

Re: RFR: 8333446: Add tests for hierarchical container support [v7]

2024-08-30 Thread Severin Gehwolf
On Fri, 30 Aug 2024 14:14:05 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8338967: Improve performance for MemorySegment::fill [v10]

2024-08-30 Thread Maurizio Cimadamore
On Fri, 30 Aug 2024 13:53:37 GMT, Francesco Nigro wrote: > this can be u * 0xL if value != 0 and just 0L if not: not sure if > fast(er), need to measure. > > Most of the time filling is happy with 0 since zeroing is the most common case It's a clever trick. However, I was looking a

Re: RFR: 8338967: Improve performance for MemorySegment::fill [v5]

2024-08-30 Thread Francesco Nigro
On Fri, 30 Aug 2024 12:15:36 GMT, Per Minborg wrote: >> @minborg Hi! I didn't checked the numbers with the benchmark I've written at >> https://github.com/openjdk/jdk/pull/20712#discussion_r1732802685 which is >> meant to stress the branch predictor (without enough `samples` i.e. past >> 128K

Re: RFR: 8339115: Rename TypeKind enum constants to follow code style [v4]

2024-08-30 Thread Adam Sotona
On Thu, 29 Aug 2024 22:33:34 GMT, Chen Liang wrote: >> `TypeKind` enum constants are named in wrong code style; correct them before >> finalization. >> >> Also improved `TypeKind` specification to talk about not mentioned >> `returnType`, `void`, and subword types being erased to int (and how)

Re: RFR: 8338967: Improve performance for MemorySegment::fill [v10]

2024-08-30 Thread Maurizio Cimadamore
On Fri, 30 Aug 2024 10:51:59 GMT, Per Minborg wrote: >> The performance of the `MemorySegment::fil` can be improved by replacing the >> `checkAccess()` method call with calling `checkReadOnly()` instead (as the >> bounds of the segment itself do not need to be checked). >> >> Also, smaller seg

Re: RFR: 8333446: Add tests for hierarchical container support [v7]

2024-08-30 Thread Severin Gehwolf
> Please review this PR which adds test support for systemd slices so that bugs > like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be > verified. The added test, `SystemdMemoryAwarenessTest` currently passes on > cgroups v1 and fails on cgroups v2 due to the way how > [JDK-82

Re: RFR: 8338967: Improve performance for MemorySegment::fill [v10]

2024-08-30 Thread Francesco Nigro
On Fri, 30 Aug 2024 10:51:59 GMT, Per Minborg wrote: >> The performance of the `MemorySegment::fil` can be improved by replacing the >> `checkAccess()` method call with calling `checkReadOnly()` instead (as the >> bounds of the segment itself do not need to be checked). >> >> Also, smaller seg

Re: RFR: 8339115: Rename TypeKind enum constants to follow code style [v4]

2024-08-30 Thread Chen Liang
On Thu, 29 Aug 2024 22:33:34 GMT, Chen Liang wrote: >> `TypeKind` enum constants are named in wrong code style; correct them before >> finalization. >> >> Also improved `TypeKind` specification to talk about not mentioned >> `returnType`, `void`, and subword types being erased to int (and how)

Re: RFR: 8322256: Define and document GZIPInputStream concatenated stream semantics [v2]

2024-08-30 Thread Lance Andersen
On Fri, 30 Aug 2024 11:44:09 GMT, Alan Bateman wrote: > > The gnu.org docs cover this(concatenating gzip files) as part of its > > [advanced usage of > > gzip](https://github.com/openjdk/jdk/pull/20787#issuecomment-2320873616), > > so I don'r think we need to do any more archeology > > Okay,

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-08-30 Thread Severin Gehwolf
On Fri, 30 Aug 2024 11:46:51 GMT, Severin Gehwolf wrote: > > Not saying that this is a very bad thing, maybe it is just the way it is, > > that 'root' is needed ? > > I'll do some more research whether or not that is a hard requirement. Thanks > for the comments so far. It turns out it works

Re: RFR: 8339320: Optimize ClassFile Utf8EntryImpl#inflate

2024-08-30 Thread Chen Liang
On Thu, 29 Aug 2024 16:03:31 GMT, Chen Liang wrote: >> A very small optimization, split the large method inflate, split the >> infrequently used paths into a method inflateCHAR > > src/java.base/share/classes/jdk/internal/classfile/impl/AbstractPoolEntry.java > line 402: > >> 400:

Re: RFR: 8339320: Optimize ClassFile Utf8EntryImpl#inflate

2024-08-30 Thread Chen Liang
On Thu, 29 Aug 2024 11:44:50 GMT, Shaojin Wen wrote: > A very small optimization, split the large method inflate, split the > infrequently used paths into a method inflateCHAR Java's UTF8 entry cannot use the 4-byte format in regular UTF8. You can check out how DataInputStream read UTF8 string

Re: RFR: 8339320: Optimize ClassFile Utf8EntryImpl#inflate

2024-08-30 Thread ExE Boss
On Thu, 29 Aug 2024 11:44:50 GMT, Shaojin Wen wrote: > A very small optimization, split the large method inflate, split the > infrequently used paths into a method inflateCHAR Typo (`HCAR` → `CHAR`): src/java.base/share/classes/jdk/internal/classfile/impl/AbstractPoolEntry.java line 235: > 2

RFR: 8339320: Optimize ClassFile Utf8EntryImpl#inflate

2024-08-30 Thread Shaojin Wen
A very small optimization, split the large method inflate, split the infrequently used paths into a method inflateCHAR - Commit messages: - Update src/java.base/share/classes/jdk/internal/classfile/impl/AbstractPoolEntry.java - Update src/java.base/share/classes/jdk/internal/clas

Re: RFR: 8339317: Optimize ClassFile writeBuffer

2024-08-30 Thread Claes Redestad
On Thu, 29 Aug 2024 21:49:58 GMT, Shaojin Wen wrote: > A small optimization, optimize the BufferWriter implementation and use of > ClassFile, provide faster patchInt and skip src/java.base/share/classes/jdk/internal/classfile/impl/AbstractAttributeMapper.java line 68: > 66: BufWriterI

Re: RFR: 8339317: Optimize ClassFile writeBuffer

2024-08-30 Thread Shaojin Wen
On Thu, 29 Aug 2024 21:49:58 GMT, Shaojin Wen wrote: > A small optimization, optimize the BufferWriter implementation and use of > ClassFile, provide faster patchInt and skip I debugged the code and watched the compile log, patchInt calls are frequent. For example, the following call stack:

Re: RFR: 8339317: Optimize ClassFile writeBuffer

2024-08-30 Thread Chen Liang
On Thu, 29 Aug 2024 21:49:58 GMT, Shaojin Wen wrote: > A small optimization, optimize the BufferWriter implementation and use of > ClassFile, provide faster patchInt and skip `patchInt` isn't that frequently used in workloads. I doubt this specialized version provides much value; maybe @cl4es

RFR: 8339317: Optimize ClassFile writeBuffer

2024-08-30 Thread Shaojin Wen
A small optimization, optimize the BufferWriter implementation and use of ClassFile, provide faster patchInt and skip - Commit messages: - Suggestions from @cl4es - fix build error - remove BufWriter#patchInt - optimize BufWriterImpl#patchInt Changes: https://git.openjdk.org/jdk

Re: RFR: 8338967: Improve performance for MemorySegment::fill [v5]

2024-08-30 Thread Per Minborg
On Wed, 28 Aug 2024 15:32:40 GMT, Francesco Nigro wrote: >>> How fast do we need to be here given we are measuring in a few nanoseconds >>> per operation? >>> >>> What if the goal is not to regress from say explicitly filling in a small >>> sized segment or a comparable array (e.g., < 8 bytes)

Re: RFR: 8339131: Remove rarely-used accessor methods from Opcode

2024-08-30 Thread Adam Sotona
On Wed, 28 Aug 2024 22:41:59 GMT, Chen Liang wrote: > In offline discussion, we agreed that current fields of `Opcode` violate data > oriented design to a large extent. The attributes not generic to all opcode > are removed. > > Up for preliminary review; needs to be reworked for #20737. Look

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-08-30 Thread Severin Gehwolf
On Fri, 30 Aug 2024 11:05:24 GMT, Matthias Baesken wrote: > Not saying that this is a very bad thing, maybe it is just the way it is, > that 'root' is needed ? I'll do some more research whether or not that is a hard requirement. Thanks for the comments so far. - PR Comment: http

Re: RFR: 8322256: Define and document GZIPInputStream concatenated stream semantics [v2]

2024-08-30 Thread Alan Bateman
On Fri, 30 Aug 2024 11:18:41 GMT, Lance Andersen wrote: > The gnu.org docs cover this(concatenating gzip files) as part of its > [advanced usage of > gzip](https://github.com/openjdk/jdk/pull/20787#issuecomment-2320873616), so > I don'r think we need to do any more archeology Okay, but just v

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-08-30 Thread Severin Gehwolf
On Fri, 30 Aug 2024 11:02:52 GMT, Matthias Baesken wrote: >> Severin Gehwolf 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 10 additional >> co

Re: RFR: 8322256: Define and document GZIPInputStream concatenated stream semantics [v2]

2024-08-30 Thread Lance Andersen
On Fri, 30 Aug 2024 11:18:41 GMT, Lance Andersen wrote: >> I wonder if we can dig up the discussion on JDK-4691425. I can't find the >> CSR (or "CCC" at the time) that would have captured the reasoning for >> supporting this. > >> I wonder if we can dig up the discussion on JDK-4691425. I can't

Re: RFR: 8339214: Remove misleading CodeBuilder.loadConstant(Opcode, ConstantDesc) [v2]

2024-08-30 Thread Adam Sotona
On Thu, 29 Aug 2024 21:46:52 GMT, Chen Liang wrote: >> `CodeBuilder::loadConstant(Opcode, ConstantDesc)` is error-prone and >> confusing. Users should almost always use `loadConstant(ConstantDesc)` for >> optimized instructions, or use specific factories `iconst_0` etc. or >> `bipush` with arg

Re: RFR: 8339156: Use more fine-granular clang unused warnings

2024-08-30 Thread Magnus Ihse Bursie
On Thu, 29 Aug 2024 13:14:35 GMT, Magnus Ihse Bursie wrote: > Currently, we issue -Wno-unused for all files in clang, which is a rather big > sledgehammer to get rid of some warnings that proliferate in a few areas of > the build. > > We should instead leave -Wunused turned on (as done by -Wal

Re: RFR: 8339156: Use more fine-granular clang unused warnings [v2]

2024-08-30 Thread Magnus Ihse Bursie
> Currently, we issue -Wno-unused for all files in clang, which is a rather big > sledgehammer to get rid of some warnings that proliferate in a few areas of > the build. > > We should instead leave -Wunused turned on (as done by -Wall) and use a much > more fine-grained approach to disabling s

Re: RFR: 8322256: Define and document GZIPInputStream concatenated stream semantics [v2]

2024-08-30 Thread Lance Andersen
On Fri, 30 Aug 2024 11:07:40 GMT, Alan Bateman wrote: > I wonder if we can dig up the discussion on JDK-4691425. I can't find the CSR > (or "CCC" at the time) that would have captured the reasoning for supporting > this. The gnu.org docs cover this(concatenating gzip files) as part of its [ad

Re: RFR: 8322256: Define and document GZIPInputStream concatenated stream semantics [v2]

2024-08-30 Thread Alan Bateman
On Fri, 30 Aug 2024 10:50:37 GMT, Eirik Bjørsnøs wrote: >> Please review this PR with picks up on the excellent work done by >> @archiecobbs in #18385 >> >> The proposed changes aim to solve two issues with the current >> `java.util.zip.GZIPInputStream`: >> >> * The class parses multiple con

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-08-30 Thread Matthias Baesken
On Wed, 28 Aug 2024 16:13:07 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8333446: Add tests for hierarchical container support [v6]

2024-08-30 Thread Matthias Baesken
On Wed, 28 Aug 2024 16:13:07 GMT, Severin Gehwolf wrote: >> Please review this PR which adds test support for systemd slices so that >> bugs like [JDK-8217338](https://bugs.openjdk.org/browse/JDK-8217338) can be >> verified. The added test, `SystemdMemoryAwarenessTest` currently passes on >> c

Re: RFR: 8338768: Introduce runtime lookup to check for static builds [v2]

2024-08-30 Thread Magnus Ihse Bursie
On Mon, 26 Aug 2024 02:07:39 GMT, David Holmes wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Also update build to link properly > > I understand the cost overhead experienced by any individual Java run may

Re: RFR: 8338967: Improve performance for MemorySegment::fill [v10]

2024-08-30 Thread Per Minborg
> The performance of the `MemorySegment::fil` can be improved by replacing the > `checkAccess()` method call with calling `checkReadOnly()` instead (as the > bounds of the segment itself do not need to be checked). > > Also, smaller segments can be handled directly by Java code rather than > tr

Re: RFR: 8322256: Define and document GZIPInputStream concatenated stream semantics [v2]

2024-08-30 Thread Eirik Bjørsnøs
> Please review this PR with picks up on the excellent work done by > @archiecobbs in #18385 > > The proposed changes aim to solve two issues with the current > `java.util.zip.GZIPInputStream`: > > * The class parses multiple concatenated GZIP files as a single stream. This > behavior is not

RFR: 8322256: Define and document GZIPInputStream concatenated stream semantics

2024-08-30 Thread Eirik Bjørsnøs
Please review this PR with picks up on the excellent work done by @archiecobbs in #18385 The proposed changes aim to solve two issues with the current `java.util.zip.GZIPInputStream`: * The class parses multiple concatenated GZIP files as a single stream. This behavior is not documented in th

Re: RFR: 8322256: Define and document GZIPInputStream concatenated stream semantics

2024-08-30 Thread Eirik Bjørsnøs
On Fri, 30 Aug 2024 07:27:11 GMT, Eirik Bjørsnøs wrote: > Please review this PR with picks up on the excellent work done by > @archiecobbs in #18385 > > The proposed changes aim to solve two issues with the current > `java.util.zip.GZIPInputStream`: > > * The class parses multiple concatenat

Re: RFR: 8339166: java/lang/String/concat/HiddenClassUnloading.java fails on AIX and Linux ppc64le after JDK-8336856

2024-08-30 Thread Matthias Baesken
On Thu, 29 Aug 2024 13:55:25 GMT, Matthias Baesken wrote: > We see HiddenClassUnloading.java failing on the ppc64 based platforms. On AIX > it seems to fail always; Linux ppc64le sometimes. > Failure output : > java.lang.RuntimeException: unloadedClassCount is zero > at HiddenClassUnloading.main

Integrated: 8339166: java/lang/String/concat/HiddenClassUnloading.java fails on AIX and Linux ppc64le after JDK-8336856

2024-08-30 Thread Matthias Baesken
On Thu, 29 Aug 2024 13:55:25 GMT, Matthias Baesken wrote: > We see HiddenClassUnloading.java failing on the ppc64 based platforms. On AIX > it seems to fail always; Linux ppc64le sometimes. > Failure output : > java.lang.RuntimeException: unloadedClassCount is zero > at HiddenClassUnloading.main

Re: RFR: 8338967: Improve performance for MemorySegment::fill [v9]

2024-08-30 Thread Maurizio Cimadamore
On Fri, 30 Aug 2024 09:09:57 GMT, Per Minborg wrote: >> The performance of the `MemorySegment::fil` can be improved by replacing the >> `checkAccess()` method call with calling `checkReadOnly()` instead (as the >> bounds of the segment itself do not need to be checked). >> >> Also, smaller seg

Re: RFR: 8338768: Introduce runtime lookup to check for static builds [v2]

2024-08-30 Thread Alan Bateman
On Wed, 21 Aug 2024 22:14:40 GMT, Magnus Ihse Bursie wrote: >> As a preparation for Hermetic Java, we need to have a way to look up during >> runtime if we are using a statically linked library or not. >> >> This change will be the first step needed towards compiling the object files >> only o

Re: RFR: 8339166: java/lang/String/concat/HiddenClassUnloading.java fails on AIX and Linux ppc64le after JDK-8336856

2024-08-30 Thread Martin Doerr
On Thu, 29 Aug 2024 13:55:25 GMT, Matthias Baesken wrote: > We see HiddenClassUnloading.java failing on the ppc64 based platforms. On AIX > it seems to fail always; Linux ppc64le sometimes. > Failure output : > java.lang.RuntimeException: unloadedClassCount is zero > at HiddenClassUnloading.main

Re: RFR: 8338967: Improve performance for MemorySegment::fill [v9]

2024-08-30 Thread Francesco Nigro
On Fri, 30 Aug 2024 09:09:57 GMT, Per Minborg wrote: >> The performance of the `MemorySegment::fil` can be improved by replacing the >> `checkAccess()` method call with calling `checkReadOnly()` instead (as the >> bounds of the segment itself do not need to be checked). >> >> Also, smaller seg

Re: RFR: 8338967: Improve performance for MemorySegment::fill [v9]

2024-08-30 Thread Per Minborg
> The performance of the `MemorySegment::fil` can be improved by replacing the > `checkAccess()` method call with calling `checkReadOnly()` instead (as the > bounds of the segment itself do not need to be checked). > > Also, smaller segments can be handled directly by Java code rather than > tr

Re: RFR: 8338967: Improve performance for MemorySegment::fill [v8]

2024-08-30 Thread Per Minborg
> The performance of the `MemorySegment::fil` can be improved by replacing the > `checkAccess()` method call with calling `checkReadOnly()` instead (as the > bounds of the segment itself do not need to be checked). > > Also, smaller segments can be handled directly by Java code rather than > tr