Re: RFR: 8339364: AIX build fails: various unused variable and function warnings [v2]

2024-09-02 Thread Julian Waters
On Tue, 3 Sep 2024 06:16:06 GMT, David Holmes wrote: >>> Also doesn't a call like this trigger the warning about ignoring a function >>> result, or have we disabled that one? >> >> Such a warning would be horrible to have enable. Then you would have to read >> the value of every function that

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

2024-09-02 Thread David Holmes
On Tue, 3 Sep 2024 06:01:15 GMT, Alan Bateman wrote: >> David Holmes has updated the pull request incrementally with one additional >> commit since the last revision: >> >> The JNI version update was incompete > > Marked as reviewed by alanb (Reviewer). Thanks @AlanBateman ! -

Re: RFR: 8339364: AIX build fails: various unused variable and function warnings [v2]

2024-09-02 Thread David Holmes
On Tue, 3 Sep 2024 05:52:31 GMT, Magnus Ihse Bursie wrote: >> This code is devoid of pretty much all error handling and logging, but I >> agree that a simple fprintf on error would be useful. >> Also doesn't a call like this trigger the warning about ignoring a function >> result, or have we di

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

2024-09-02 Thread Alan Bateman
On Tue, 3 Sep 2024 03:00:56 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 `Integ

Re: RFR: 8339364: AIX build fails: various unused variable and function warnings [v2]

2024-09-02 Thread Magnus Ihse Bursie
On Tue, 3 Sep 2024 02:25:16 GMT, David Holmes wrote: > Also doesn't a call like this trigger the warning about ignoring a function > result, or have we disabled that one? Such a warning would be horrible to have enable. Then you would have to read the value of every function that thought it sh

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

2024-09-02 Thread David Holmes
> 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 `Integer.MAX_VALUE`. But a Java > string can itself consist of `In

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

2024-09-02 Thread David Holmes
On Fri, 30 Aug 2024 20:45:11 GMT, Chris Plummer wrote: >> David Holmes has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Exclude test on 32-bit > > Overall it looks good to me, although I don't have experience adding a new > JNI API (the

Re: RFR: 8339364: AIX build fails: various unused variable and function warnings [v2]

2024-09-02 Thread David Holmes
On Mon, 2 Sep 2024 22:32:34 GMT, Magnus Ihse Bursie wrote: >> Matthias Baesken has updated the pull request incrementally with one >> additional commit since the last revision: >> >> adjust indentation in X11Color.c > > src/java.desktop/unix/native/libsplashscreen/splashscreen_sys.c line 744:

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

2024-09-02 Thread Shaojin Wen
On Tue, 3 Sep 2024 00:38:40 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 two additional > commits since the last revision: > > - code s

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

2024-09-02 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 two additional commits since the last revision: - code style - remove unsafe - Changes: - all: https://g

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

2024-09-02 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: bug fix countGreaterThanZero - Changes: - all: https://gi

Re: RFR: 8339364: AIX build fails: various unused variable and function warnings [v2]

2024-09-02 Thread Magnus Ihse Bursie
On Mon, 2 Sep 2024 13:25:51 GMT, Matthias Baesken wrote: >> We get a couple of warnings as errors on AIX because of unused variables or >> functions , for example : >> /priv/jenkins/client-home/workspace/openjdk-jdk-dev-aix_ppc64-opt/jdk/src/java.base/unix/native/libjava/ProcessHandleImpl_unix.c

Re: RFR: 8339364: AIX build fails: various unused variable and function warnings [v2]

2024-09-02 Thread Magnus Ihse Bursie
On Mon, 2 Sep 2024 20:06:06 GMT, Martin Doerr wrote: >> Matthias Baesken has updated the pull request incrementally with one >> additional commit since the last revision: >> >> adjust indentation in X11Color.c > > src/java.desktop/unix/native/common/awt/X11Color.c line 1234: > >> 1232: awt_a

Re: New candidate JEP: 485: Stream Gatherers

2024-09-02 Thread David Alayachew
Thanks. Glad to see this finally land. That slidingWindow and other related functions are extremely powerful. On Mon, Sep 2, 2024 at 3:13 PM Mark Reinhold wrote: > https://openjdk.org/jeps/485 > > Summary: Enhance the Stream API to support custom intermediate > operations. This will allow s

Re: RFR: 8339364: AIX build fails: various unused variable and function warnings [v2]

2024-09-02 Thread Martin Doerr
On Mon, 2 Sep 2024 13:25:51 GMT, Matthias Baesken wrote: >> We get a couple of warnings as errors on AIX because of unused variables or >> functions , for example : >> /priv/jenkins/client-home/workspace/openjdk-jdk-dev-aix_ppc64-opt/jdk/src/java.base/unix/native/libjava/ProcessHandleImpl_unix.c

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

2024-09-02 Thread Claes Redestad
On Mon, 2 Sep 2024 15:27:59 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: > > typo Th

New candidate JEP: 485: Stream Gatherers

2024-09-02 Thread Mark Reinhold
https://openjdk.org/jeps/485 Summary: Enhance the Stream API to support custom intermediate operations. This will allow stream pipelines to transform data in ways that are not easily achievable with the existing built-in intermediate operations. - Mark

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

2024-09-02 Thread Claes Redestad
On Mon, 2 Sep 2024 15:27:59 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: > > typo sr

Re: RFR: 8336274: MutableBigInteger.leftShift(int) optimization [v5]

2024-09-02 Thread Raffaello Giulietti
On Mon, 2 Sep 2024 16:19:01 GMT, fabioromano1 wrote: >> This implementation of MutableBigInteger.leftShift(int) optimizes the >> current version, avoiding unnecessary copy of the MutableBigInteger's value >> content and performing the primitive shifting only in the original portion >> of the v

Re: RFR: 8336274: MutableBigInteger.leftShift(int) optimization [v4]

2024-09-02 Thread Raffaello Giulietti
On Sun, 1 Sep 2024 16:32:00 GMT, fabioromano1 wrote: >> This implementation of MutableBigInteger.leftShift(int) optimizes the >> current version, avoiding unnecessary copy of the MutableBigInteger's value >> content and performing the primitive shifting only in the original portion >> of the v

Re: RFR: 8336274: MutableBigInteger.leftShift(int) optimization [v5]

2024-09-02 Thread fabioromano1
On Mon, 2 Sep 2024 16:34:07 GMT, Raffaello Giulietti wrote: > Right, I didn't remember that `BigInteger` has its own implementation. > > However, reducing `MutableBigIntegerBox` to just a bunch of accessors to use > in the unit test and the benchmarks should still be possible. Then having two

Re: RFR: 8336274: MutableBigInteger.leftShift(int) optimization [v5]

2024-09-02 Thread fabioromano1
> This implementation of MutableBigInteger.leftShift(int) optimizes the current > version, avoiding unnecessary copy of the MutableBigInteger's value content > and performing the primitive shifting only in the original portion of the > value array rather than in the value yet extended with trail

Re: RFR: 8336274: MutableBigInteger.leftShift(int) optimization [v5]

2024-09-02 Thread Raffaello Giulietti
On Mon, 2 Sep 2024 16:19:01 GMT, fabioromano1 wrote: >> This implementation of MutableBigInteger.leftShift(int) optimizes the >> current version, avoiding unnecessary copy of the MutableBigInteger's value >> content and performing the primitive shifting only in the original portion >> of the v

Re: RFR: 8336274: MutableBigInteger.leftShift(int) optimization [v4]

2024-09-02 Thread fabioromano1
On Mon, 2 Sep 2024 16:04:14 GMT, Raffaello Giulietti wrote: > * I wonder if `MutableBigIntegerBox` can be reduced to just a set of > accessors for the `MutableBigInteger` fields. Also, I guess that the > benchmarks can be written to use the public class `BigInteger` to avoid > having two copi

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

2024-09-02 Thread Andrew John Hughes
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: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v3]

2024-09-02 Thread Shaojin Wen
On Fri, 30 Aug 2024 18:46:08 GMT, Chen Liang wrote: >> Shaojin Wen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Suggestions from @cl4es, rename hasNegativeOrZeros to >> isLatin1GreaterThanZero > > If a non-ascii is in the middle or t

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

2024-09-02 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: typo - Changes: - all: https://git.openjdk.org/jdk/pull/2

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

2024-09-02 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: suggestion from @liach - Changes: - all: https://git.open

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

2024-09-02 Thread Chen Liang
On Mon, 2 Sep 2024 15:11:56 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: > > suggesti

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

2024-09-02 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: suggestion from @liach - Changes: - all: https://git.open

Re: RFR: 8339401: Optimize ClassFile load and store instructions [v2]

2024-09-02 Thread Chen Liang
On Mon, 2 Sep 2024 14:50:33 GMT, Shaojin Wen wrote: >> BytecodeHelpers' loadOpcode and storeOpcode are large methods with code size >> greater than 325, break it into multiple small methods and call them >> directly in DirectCodeBuilder > > Shaojin Wen has updated the pull request incrementally

Re: RFR: 8339401: Optimize ClassFile load and store instructions [v2]

2024-09-02 Thread Shaojin Wen
> BytecodeHelpers' loadOpcode and storeOpcode are large methods with code size > greater than 325, break it into multiple small methods and call them directly > in DirectCodeBuilder Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: sug

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

2024-09-02 Thread Chen Liang
On Mon, 2 Sep 2024 14:06:42 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 with a new target base due to a > merge or a rebase. The incremental webrev exclude

Re: RFR: 8339401: Optimize ClassFile load and store instructions

2024-09-02 Thread Chen Liang
On Mon, 2 Sep 2024 14:01:36 GMT, Shaojin Wen wrote: >> src/java.base/share/classes/jdk/internal/classfile/impl/BytecodeHelpers.java >> line 61: >> >>> 59: return switch (tk) { >>> 60: case INT, SHORT, BYTE, CHAR, BOOLEAN >>> 61:-> iload(slot); >>

Re: RFR: 8339401: Optimize ClassFile load and store instructions

2024-09-02 Thread Chen Liang
On Wed, 28 Aug 2024 04:14:53 GMT, Shaojin Wen wrote: > BytecodeHelpers' loadOpcode and storeOpcode are large methods with code size > greater than 325, break it into multiple small methods and call them directly > in DirectCodeBuilder src/java.base/share/classes/jdk/internal/classfile/impl/Dir

Re: RFR: 8339401: Optimize ClassFile load and store instructions

2024-09-02 Thread Chen Liang
On Wed, 28 Aug 2024 04:14:53 GMT, Shaojin Wen wrote: > BytecodeHelpers' loadOpcode and storeOpcode are large methods with code size > greater than 325, break it into multiple small methods and call them directly > in DirectCodeBuilder src/java.base/share/classes/jdk/internal/classfile/impl/Byt

Re: RFR: 8339401: Optimize ClassFile load and store instructions

2024-09-02 Thread Shaojin Wen
On Mon, 2 Sep 2024 13:02:40 GMT, Chen Liang wrote: >> BytecodeHelpers' loadOpcode and storeOpcode are large methods with code size >> greater than 325, break it into multiple small methods and call them >> directly in DirectCodeBuilder > > src/java.base/share/classes/jdk/internal/classfile/impl

Re: RFR: 8339401: Optimize ClassFile load and store instructions

2024-09-02 Thread Shaojin Wen
On Wed, 28 Aug 2024 04:14:53 GMT, Shaojin Wen wrote: > BytecodeHelpers' loadOpcode and storeOpcode are large methods with code size > greater than 325, break it into multiple small methods and call them directly > in DirectCodeBuilder @cl4es @liach Is there a better way to ensure that Opcode h

RFR: 8339401: Optimize ClassFile load and store instructions

2024-09-02 Thread Shaojin Wen
BytecodeHelpers' loadOpcode and storeOpcode are large methods with code size greater than 325, break it into multiple small methods and call them directly in DirectCodeBuilder - Commit messages: - suggestion from @liach - copyright - direct call - Break up large methods into sma

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

2024-09-02 Thread Shaojin Wen
On Fri, 30 Aug 2024 19:39:32 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: > > optimiz

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

2024-09-02 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 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

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

2024-09-02 Thread ExE Boss
On Mon, 2 Sep 2024 14:03:55 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 with a new target base due to a > merge or a rebase. The incremental webrev exclude

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

2024-09-02 Thread Claes Redestad
On Fri, 30 Aug 2024 19:39:32 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: > > optimiz

Re: RFR: 8339364: AIX build fails: various unused variable and function warnings [v2]

2024-09-02 Thread Matthias Baesken
On Mon, 2 Sep 2024 12:17:57 GMT, Christoph Langer wrote: >> Matthias Baesken has updated the pull request incrementally with one >> additional commit since the last revision: >> >> adjust indentation in X11Color.c > > src/java.desktop/unix/native/common/awt/X11Color.c line 1236: > >> 1234:

Re: RFR: 8339364: AIX build fails: various unused variable and function warnings

2024-09-02 Thread Matthias Baesken
On Mon, 2 Sep 2024 11:43:20 GMT, Matthias Baesken wrote: > We get a couple of warnings as errors on AIX because of unused variables or > functions , for example : > /priv/jenkins/client-home/workspace/openjdk-jdk-dev-aix_ppc64-opt/jdk/src/java.base/unix/native/libjava/ProcessHandleImpl_unix.c:66

Re: RFR: 8339364: AIX build fails: various unused variable and function warnings [v2]

2024-09-02 Thread Matthias Baesken
> We get a couple of warnings as errors on AIX because of unused variables or > functions , for example : > /priv/jenkins/client-home/workspace/openjdk-jdk-dev-aix_ppc64-opt/jdk/src/java.base/unix/native/libjava/ProcessHandleImpl_unix.c:665:10: > error: unused variable 'exePath' [-Werror,-Wunused

Re: RFR: 8339368: Switch targets are not inflated in CodeModel if no StackMap

2024-09-02 Thread Chen Liang
On Mon, 2 Sep 2024 10:03:59 GMT, Adam Sotona wrote: > ClassFile API use an alternate labels inflation method for class versions < > 50 (where StackMapTable attribute is optional). > The alternate method missed label inflation of lookup switch and table switch > instructions. > This patch fixes

Re: RFR: 8339364: AIX build fails: various unused variable and function warnings

2024-09-02 Thread Matthias Baesken
On Mon, 2 Sep 2024 12:30:43 GMT, Julian Waters wrote: > Ah, the joys of supporting a platform that isn't covered by the Actions > compile and test safety net :) A Linux/clang build in the GHA would have probably shown at least a part of those errors. - PR Comment: https://git.ope

Re: RFR: 8339364: AIX build fails: various unused variable and function warnings

2024-09-02 Thread Julian Waters
On Mon, 2 Sep 2024 11:43:20 GMT, Matthias Baesken wrote: > We get a couple of warnings as errors on AIX because of unused variables or > functions , for example : > /priv/jenkins/client-home/workspace/openjdk-jdk-dev-aix_ppc64-opt/jdk/src/java.base/unix/native/libjava/ProcessHandleImpl_unix.c:66

Re: RFR: 8338021: Support saturating vector operators in VectorAPI [v2]

2024-09-02 Thread Jatin Bhateja
On Wed, 28 Aug 2024 16:05:45 GMT, Sandhya Viswanathan wrote: >> Wonder if it would have been simpler if we added unsigned vector operators >> like Op_SaturatingUnsignedAddVB etc. We are not adding unsigned data types >> to Java, only supporting unsigned (saturating) operations on existing sign

Re: RFR: 8338021: Support saturating vector operators in VectorAPI [v4]

2024-09-02 Thread Jatin Bhateja
On Mon, 26 Aug 2024 22:17:55 GMT, Sandhya Viswanathan wrote: >> Jatin Bhateja has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Review comments resolutions. > > src/hotspot/cpu/x86/assembler_x86.cpp line 10229: > >> 10227: InstructionM

Re: RFR: 8338021: Support saturating vector operators in VectorAPI [v5]

2024-09-02 Thread Jatin Bhateja
> Hi All, > > As per the discussion on panama-dev mailing list[1], patch adds the support > following new vector operators. > > > . SUADD : Saturating unsigned addition. > . SADD: Saturating signed addition. > . SUSUB : Saturating unsigned subtraction. > . SSUB:

Re: RFR: 8339364: AIX build fails: various unused variable and function warnings

2024-09-02 Thread Christoph Langer
On Mon, 2 Sep 2024 11:43:20 GMT, Matthias Baesken wrote: > We get a couple of warnings as errors on AIX because of unused variables or > functions , for example : > /priv/jenkins/client-home/workspace/openjdk-jdk-dev-aix_ppc64-opt/jdk/src/java.base/unix/native/libjava/ProcessHandleImpl_unix.c:66

RFR: 8339364: AIX build fails: various unused variable and function warnings

2024-09-02 Thread Matthias Baesken
We get a couple of warnings as errors on AIX because of unused variables or functions , for example : /priv/jenkins/client-home/workspace/openjdk-jdk-dev-aix_ppc64-opt/jdk/src/java.base/unix/native/libjava/ProcessHandleImpl_unix.c:665:10: error: unused variable 'exePath' [-Werror,-Wunused-variabl

RFR: 8339368: Switch targets are not inflated in CodeModel if no StackMap

2024-09-02 Thread Adam Sotona
ClassFile API use an alternate labels inflation method for class versions < 50 (where StackMapTable attribute is optional). The alternate method missed label inflation of lookup switch and table switch instructions. This patch fixes the label inflation method for for class versions < 50 and adds

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

2024-09-02 Thread David Holmes
On Mon, 2 Sep 2024 09:05:17 GMT, Alan Bateman wrote: >> David Holmes has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Exclude test on 32-bit > > Deprecating the existing function and introducing the new function looks okay. > > The test

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

2024-09-02 Thread Maurizio Cimadamore
On Mon, 2 Sep 2024 08:56:47 GMT, Per Minborg 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

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

2024-09-02 Thread Maurizio Cimadamore
On Mon, 2 Sep 2024 08:53:57 GMT, Per Minborg wrote: > Here is the performance improvement for Linux a64. Looks like a significant > improvement. This looks good. Again, the goal of this PR is not to squeeze every nanosecond out - but, rather, to achieve a performance model that is "sensible" -

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

2024-09-02 Thread Maurizio Cimadamore
On Fri, 30 Aug 2024 22:04:39 GMT, Francesco Nigro wrote: > All of these strategies are better than what we have now, probably because > the existing instrinsics still perform some poor decision, but I haven't dug > yet into perfasm out to see what it does wrong; maybe is something which > coul

Integrated: 8338768: Introduce runtime lookup to check for static builds

2024-09-02 Thread Magnus Ihse Bursie
On Wed, 21 Aug 2024 21:53:39 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 once,

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

2024-09-02 Thread Alan Bateman
On Fri, 30 Aug 2024 21:39:47 GMT, Brian Burkhalter wrote: >> 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

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

2024-09-02 Thread Alan Bateman
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: 8338967: Improve performance for MemorySegment::fill [v10]

2024-09-02 Thread Per Minborg
On Fri, 30 Aug 2024 14:15:24 GMT, Maurizio Cimadamore wrote: >> src/java.base/share/classes/jdk/internal/foreign/AbstractMemorySegmentImpl.java >> line 208: >> >>> 206: } >>> 207: final long u = Byte.toUnsignedLong(value); >>> 208: final long longValue = u <

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

2024-09-02 Thread Per Minborg
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: [External] : Re: Stream Gatherers (JEP 473) feedback

2024-09-02 Thread Viktor Klang
Hi Anthony, Thank you for your patience, I needed some time to experiment and think about your feedback. >* how realistic is it for type inference to be improved to the point that >usage of the Gatherers API wouldn't require type arguments? Both technically >and in terms of cost-benefit? If l