Re: RFR: 8297784: Optimize @Stable field for Method.isCallerSensitive

2022-11-29 Thread Alan Bateman
On Tue, 29 Nov 2022 19:39:02 GMT, Aleksey Shipilev wrote: > [JDK-8271820](https://bugs.openjdk.org/browse/JDK-8271820) introduced the > `@Stable private Boolean callerSensitive;` cache in `Method`. That field is > essentially a tri-state `Boolean` that relies on its `null` value to serve as >

Re: RFR: 8295146: Clean up native code with newer C/C++ language features [v3]

2022-11-29 Thread Julian Waters
On Wed, 23 Nov 2022 04:58:38 GMT, Kim Barrett wrote: >> Out of curiosity, is there a way to get the discussion on approving the use >> of alignas back up? I've read through 8250269 briefly and unlike the issues >> that come with C++ attributes, alignas looks relatively straightforward to >>

Re: RFR: 8295146: Clean up native code with newer C/C++ language features [v3]

2022-11-29 Thread David Holmes
On Tue, 29 Nov 2022 17:07:02 GMT, Julian Waters wrote: >> Digging into this some more, the friend declaration exists to provide access >> to the private `os::win32::enum Ept`. >> >> One obvious and cheap solution to that would be to make that enum public. I >> think that would be an

Re: RFR: 8284493: Fix rounding error in computeNextExponential [v16]

2022-11-29 Thread Chris Hennick
On Tue, 4 Oct 2022 17:36:56 GMT, Chris Hennick wrote: >> This PR improves both the performance of `nextExponential` and >> `nextGaussian` and the distribution of output at the tails. It fixes the >> following imperfections: >> >> * Repeatedly adding DoubleZigguratTables.exponentialX0 to extra

Re: RFR: 8295044: Implementation of Foreign Function and Memory API (Second Preview) [v32]

2022-11-29 Thread Joe Darcy
On Mon, 28 Nov 2022 19:29:08 GMT, Maurizio Cimadamore wrote: >> This PR contains the API and implementation changes for JEP-434 [1]. A more >> detailed description of such changes, to avoid repetitions during the review >> process, is included as a separate comment. >> >> [1] -

Re: RFR: 8294278: ForkJoinPool.getAndAddPoolIds should use Unsafe.staticFieldBase

2022-11-29 Thread Martin Buchholz
On Fri, 25 Nov 2022 14:53:57 GMT, Alan Bateman wrote: > Two (since 19) usages of Unsafe.getAndAddInt to update a static field provide > the Class object as the base instead of the base object returned by > Unsafe.staticFieldBase. This doesn't change anything on the HotSpot VM. The

Re: RFR: 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt()) [v5]

2022-11-29 Thread Brent Christian
> [JDK-8290036](https://bugs.openjdk.org/browse/JDK-8290036) documented the > shutdown sequence, noting that calling Runtime.halt() skips the shutdown > sequence and immediately terminates the VM. Thus, "threads' current methods > do not complete normally or abruptly; no finally clause of any

Integrated: 8294321: Fix typos in files under test/jdk/java, test/jdk/jdk, test/jdk/jni

2022-11-29 Thread Jaikiran Pai
On Mon, 28 Nov 2022 08:58:29 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which fixes the typos in the test > packages? @mernst submitted this as a separate PR > https://github.com/openjdk/jdk/pull/10029 but given the number of areas and > files that other PR touches,

Re: RFR: 8294321: Fix typos in files under test/jdk/java, test/jdk/jdk, test/jdk/jni [v2]

2022-11-29 Thread Jaikiran Pai
On Mon, 28 Nov 2022 10:02:47 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which fixes the typos in the test >> packages? @mernst submitted this as a separate PR >> https://github.com/openjdk/jdk/pull/10029 but given the number of areas and >> files that other PR

Re: RFR: JDK-8297298 - SequenceInputStream should override transferTo [v2]

2022-11-29 Thread Brian Burkhalter
On Sun, 20 Nov 2022 09:41:47 GMT, Markus KARG wrote: >> Since JDK 18 some implementations of InputStream.transferTo, namely >> FileInputStream and ChannelInputStream, offload work to lower layers using >> NIO channels. This provides shorter execution time and reduced resource >> consumption.

Re: RFR: 8297784: Optimize @Stable field for Method.isCallerSensitive

2022-11-29 Thread Jorn Vernee
On Tue, 29 Nov 2022 19:39:02 GMT, Aleksey Shipilev wrote: > [JDK-8271820](https://bugs.openjdk.org/browse/JDK-8271820) introduced the > `@Stable private Boolean callerSensitive;` cache in `Method`. That field is > essentially a tri-state `Boolean` that relies on its `null` value to serve as >

Re: RFR: 8297728: Cache invocation type rather than invoker in NamedFunction

2022-11-29 Thread Jorn Vernee
On Tue, 29 Nov 2022 21:57:09 GMT, Claes Redestad wrote: > `java.lang.invoke.LambdaForm.NamedFunction` has an `invoker` field acting as > a cache, but this field is only used for lambda form interpretation, thus not > very performance sensitive. > > Since the invoker is already cached in the

Re: RFR: 8297271: AccessFlags should be specific to class file version

2022-11-29 Thread Joe Darcy
On Tue, 29 Nov 2022 15:33:44 GMT, Roger Riggs wrote: > Yes, the location information via > `AccessFlags.locations(ClassFileFormatVersion)` provides the needed > information. And the tests verify that information. My objective was to make > the AccessFlags returned for a class reflect the

Re: RFR: 8297784: Optimize @Stable field for Method.isCallerSensitive

2022-11-29 Thread Claes Redestad
On Tue, 29 Nov 2022 19:39:02 GMT, Aleksey Shipilev wrote: > [JDK-8271820](https://bugs.openjdk.org/browse/JDK-8271820) introduced the > `@Stable private Boolean callerSensitive;` cache in `Method`. That field is > essentially a tri-state `Boolean` that relies on its `null` value to serve as >

Re: RFR: 8297736: test/jdk/java/foreign/TestMatrix.java is broken

2022-11-29 Thread Maurizio Cimadamore
On Mon, 28 Nov 2022 21:03:33 GMT, Jorn Vernee wrote: > - Fix tests that try to run `TestDowncall` which was split into > TestDowncallScope and TestDowncallStack > - Fix use of obsolete system properties to control specilization > - Add test to run TestVarArgs in un-sampled mode. > > Testing:

Re: RFR: 8240567: MethodTooLargeException thrown while creating a jlink image [v5]

2022-11-29 Thread Oliver Kopp
> Fix for [JDK-8240567](https://bugs.openjdk.org/browse/JDK-8240567): > "MethodTooLargeException thrown while creating a jlink image". > > Java still has a 64kb limit: A method may not be longer than 64kb. The idea > of the fix is to split up the generated methods in several smaller methods

Re: RFR: 8297733: Refactor Cast binding to enum

2022-11-29 Thread Maurizio Cimadamore
On Mon, 28 Nov 2022 20:13:35 GMT, Jorn Vernee wrote: > Refactor the cast binding to an enum, which clearly enumerates all supported > conversions. > > This also fixes a bug where `java/foreign/normalize/TestNormalize` was > failing when running in interpreted mode >

Re: RFR: JDK-8297298 - SequenceInputStream should override transferTo [v2]

2022-11-29 Thread Markus KARG
On Tue, 29 Nov 2022 19:39:49 GMT, Brian Burkhalter wrote: > Please take note of the changes proposed in #11403. It might make sense to merge *this* PR as-is *first*, but then add the needed fix to #11403 afterwards? Otherwise it might be confusing for a reader, why #11403 is not covering SIS

Re: RFR: 8296546: Add @spec tags to API [v3]

2022-11-29 Thread Michael StJohns
Hi - I need to repeat again.  Please avoid using www.ietf.org as the URL base for referencing RFCs.  The appropriate location is www.rfc-editor.org and is going to be more stable in the long run than any reference to an RFC that runs through the IETF's website.  These two websites have

Re: RFR: JDK-8297731: Remove redundant check in MutableBigInteger.divide [v2]

2022-11-29 Thread Joe Darcy
> Remove redundant code reported in > > https://mail.openjdk.org/pipermail/core-libs-dev/2022-November/097163.html Joe Darcy has updated the pull request incrementally with one additional commit since the last revision: Remove whitespace. - Changes: - all:

Re: RFR: JDK-8297731: Remove redundant check in MutableBigInteger.divide

2022-11-29 Thread Joe Darcy
On Tue, 29 Nov 2022 07:39:59 GMT, Andrey Turbanov wrote: > IDEA now highlights unnecessary `rem.offset=1` assignments, which are above > modified code. Now we always overwrite it with `0` anyway. > >

RFR: 8297784: Optimize @Stable field for Method.isCallerSensitive

2022-11-29 Thread Aleksey Shipilev
[JDK-8271820](https://bugs.openjdk.org/browse/JDK-8271820) introduced the `@Stable private Boolean callerSensitive;` cache in `Method`. That field is essentially a tri-state `Boolean` that relies on its `null` value to serve as "not initialized" value for `@Stable`. This works well when the

Re: RFR: JDK-8297298 - SequenceInputStream should override transferTo [v2]

2022-11-29 Thread Brian Burkhalter
On Sun, 20 Nov 2022 09:41:47 GMT, Markus KARG wrote: >> Since JDK 18 some implementations of InputStream.transferTo, namely >> FileInputStream and ChannelInputStream, offload work to lower layers using >> NIO channels. This provides shorter execution time and reduced resource >> consumption.

Re: RFR: 8297632: InputStream.transferTo() method should specify what the return value should be when the number of bytes transfered is larger than Long.MAX_VALUE [v3]

2022-11-29 Thread Brian Burkhalter
> `java.io.InputStream::transferTo` could conceivably return a negative value > if the count of bytes transferred overflows a `long`. Modify the method to > limit the number of bytes transferred to `Long.MAX_VALUE` per invocation. Brian Burkhalter has updated the pull request incrementally with

Re: RFR: 8295729: Add jcheck whitespace checking for properties files [v3]

2022-11-29 Thread Magnus Ihse Bursie
On Mon, 24 Oct 2022 19:21:07 GMT, Magnus Ihse Bursie wrote: >> Properties files is essentially source code. It should have the same >> whitespace checks as all other source code, so we don't get spurious >> trailing whitespace changes. >> >> With the new Skara jcheck, it is possible to

Re: RFR: 8290231: java/foreign/malloc/TestMixedMallocFree.java crashed in JDK19 ATR run

2022-11-29 Thread Maurizio Cimadamore
On Tue, 29 Nov 2022 15:40:53 GMT, Jorn Vernee wrote: > This test allocates on the native side with `malloc`, and then tries to free > that memory on the Java side. The library that we look up on the Java side is > either ucrtbase.dll, or msvcrt.dll as a fallback if we don't find it. The >

Re: RFR: 8297632: InputStream.transferTo() method should specify what the return value should be when the number of bytes transfered is larger than Long.MAX_VALUE [v2]

2022-11-29 Thread Brian Burkhalter
On Tue, 29 Nov 2022 18:52:23 GMT, Brian Burkhalter wrote: > > I assume this will require adjustments to SequenceInputStream.transferTo > > proposed in pull/11248. > > I will scan for all overrides. Correction: yes, that one has the same problem. - PR:

Re: RFR: 8297632: InputStream.transferTo() method should specify what the return value should be when the number of bytes transfered is larger than Long.MAX_VALUE [v2]

2022-11-29 Thread Brian Burkhalter
On Tue, 29 Nov 2022 18:47:35 GMT, Alan Bateman wrote: > I assume this will require adjustments to SequenceInputStream.transferTo > proposed in pull/11248. I will scan for all overrides. - PR: https://git.openjdk.org/jdk/pull/11403

Re: RFR: 8297632: InputStream.transferTo() method should specify what the return value should be when the number of bytes transfered is larger than Long.MAX_VALUE [v2]

2022-11-29 Thread Alan Bateman
On Tue, 29 Nov 2022 18:26:03 GMT, Brian Burkhalter wrote: >> `java.io.InputStream::transferTo` could conceivably return a negative value >> if the count of bytes transferred overflows a `long`. Modify the method to >> limit the number of bytes transferred to `Long.MAX_VALUE` per invocation. >

Re: RFR: 8297632: InputStream.transferTo() method should specify what the return value should be when the number of bytes transfered is larger than Long.MAX_VALUE [v2]

2022-11-29 Thread Alan Bateman
On Tue, 29 Nov 2022 18:26:03 GMT, Brian Burkhalter wrote: >> `java.io.InputStream::transferTo` could conceivably return a negative value >> if the count of bytes transferred overflows a `long`. Modify the method to >> limit the number of bytes transferred to `Long.MAX_VALUE` per invocation. >

Re: RFR: 8297632: InputStream.transferTo() method should specify what the return value should be when the number of bytes transfered is larger than Long.MAX_VALUE [v2]

2022-11-29 Thread Brian Burkhalter
On Tue, 29 Nov 2022 18:35:40 GMT, Alan Bateman wrote: > I assume Reader.transferTo will need similar treatment. Looks like it. I will re-scan for other places as well. - PR: https://git.openjdk.org/jdk/pull/11403

Integrated: 8297685: Typo in NullPointerException description specified by Locale.lookup

2022-11-29 Thread Justin Lu
On Mon, 28 Nov 2022 17:53:43 GMT, Justin Lu wrote: > Problem: Javadoc in Locale.lookup is incorrect. Javadoc should match the > parameter arguments. See lines 3562-3563. > > Fix: For `@throws NullPointerException` replace `if priorityList or tags is > null` with `if priorityList or locales is

Re: RFR: 8297632: InputStream.transferTo() method should specify what the return value should be when the number of bytes transfered is larger than Long.MAX_VALUE

2022-11-29 Thread Brian Burkhalter
On Tue, 29 Nov 2022 00:56:58 GMT, Brian Burkhalter wrote: > `java.io.InputStream::transferTo` could conceivably return a negative value > if the count of bytes transferred overflows a `long`. Modify the method to > limit the number of bytes transferred to `Long.MAX_VALUE` per invocation.

Re: RFR: 8297632: InputStream.transferTo() method should specify what the return value should be when the number of bytes transfered is larger than Long.MAX_VALUE [v2]

2022-11-29 Thread Brian Burkhalter
> `java.io.InputStream::transferTo` could conceivably return a negative value > if the count of bytes transferred overflows a `long`. Modify the method to > limit the number of bytes transferred to `Long.MAX_VALUE` per invocation. Brian Burkhalter has updated the pull request incrementally with

Re: RFR: 8296024: Usage of DIrectBuffer::address should be guarded [v17]

2022-11-29 Thread Brian Burkhalter
On Tue, 29 Nov 2022 09:40:58 GMT, Per Minborg wrote: >> This PR proposes the introduction of **guarding** of the use of >> `DirectBuffer::address` within the JDK. With the introduction of the Foreign >> Function and Memory access, it is possible to derive Buffer instances that >> are backed

Re: RFR: 8296710: Update to use jtreg 7.1

2022-11-29 Thread Erik Joelsson
On Tue, 29 Nov 2022 14:44:12 GMT, Christian Stein wrote: > Please review the change to update to using jtreg `7.1`. > > The primary change is to the `jib-profiles.js` file, which specifies the > version of jtreg to use, for those systems that rely on this file. In > addition, the

Re: RFR: JDK-8296149: Start of release updates for JDK 21

2022-11-29 Thread Vicente Romero
On Tue, 1 Nov 2022 05:49:25 GMT, Joe Darcy wrote: > Usual start-of-release updates. Symbol updates in initial version reflect JDK > 20 build 21. looks good - Marked as reviewed by vromero (Reviewer). PR: https://git.openjdk.org/jdk/pull/10924

Re: RFR: 8295146: Clean up native code with newer C/C++ language features [v3]

2022-11-29 Thread Julian Waters
On Wed, 23 Nov 2022 21:36:24 GMT, Kim Barrett wrote: >> I think the problem here is the friend declaration, which doesn't look like >> it's needed and could be deleted. > > Digging into this some more, the friend declaration exists to provide access > to the private `os::win32::enum Ept`. > >

Re: RFR: 8297295: Remove ThreadGroup.allowThreadSuspension

2022-11-29 Thread Joe Darcy
On Fri, 25 Nov 2022 18:54:28 GMT, Alan Bateman wrote: > Another small step in the multi-release/multi-year effort to remove cruft > from Thread/ThreadGroup. > > java.lang.ThreadGroup.allowThreadSuspension(boolean) dates from JDK 1.1 and > the Classic VM. The method controlled whether threads

Re: RFR: 8294278: ForkJoinPool.getAndAddPoolIds should use Unsafe.staticFieldBase

2022-11-29 Thread Alan Bateman
On Tue, 29 Nov 2022 16:26:54 GMT, Bernhard Urban-Forster wrote: >> Two (since 19) usages of Unsafe.getAndAddInt to update a static field >> provide the Class object as the base instead of the base object returned by >> Unsafe.staticFieldBase. This doesn't change anything on the HotSpot VM. >

Re: RFR: 8294278: ForkJoinPool.getAndAddPoolIds should use Unsafe.staticFieldBase

2022-11-29 Thread Bernhard Urban-Forster
On Fri, 25 Nov 2022 14:53:57 GMT, Alan Bateman wrote: > Two (since 19) usages of Unsafe.getAndAddInt to update a static field provide > the Class object as the base instead of the base object returned by > Unsafe.staticFieldBase. This doesn't change anything on the HotSpot VM. LGTM, thank

Re: RFR: 8294278: ForkJoinPool.getAndAddPoolIds should use Unsafe.staticFieldBase

2022-11-29 Thread Chris Hegarty
On Fri, 25 Nov 2022 14:53:57 GMT, Alan Bateman wrote: > Two (since 19) usages of Unsafe.getAndAddInt to update a static field provide > the Class object as the base instead of the base object returned by > Unsafe.staticFieldBase. This doesn't change anything on the HotSpot VM. LGTM

Re: RFR: 8296024: Usage of DIrectBuffer::address should be guarded [v17]

2022-11-29 Thread Paul Sandoz
On Tue, 29 Nov 2022 09:40:58 GMT, Per Minborg wrote: >> This PR proposes the introduction of **guarding** of the use of >> `DirectBuffer::address` within the JDK. With the introduction of the Foreign >> Function and Memory access, it is possible to derive Buffer instances that >> are backed

RFR: 8290231: java/foreign/malloc/TestMixedMallocFree.java crashed in JDK19 ATR run

2022-11-29 Thread Jorn Vernee
This test allocates on the native side with `malloc`, and then tries to free that memory on the Java side. The library that we look up on the Java side is either ucrtbase.dll, or msvcrt.dll as a fallback if we don't find it. The fact that we're seeing this crash likely means that the test

RFR: 8294278: ForkJoinPool.getAndAddPoolIds should use Unsafe.staticFieldBase

2022-11-29 Thread Alan Bateman
Two (since 19) usages of Unsafe.getAndAddInt to update a static field provide the Class object as the base instead of the base object returned by Unsafe.staticFieldBase. This doesn't change anything on the HotSpot VM. - Commit messages: - Initial commit Changes:

Re: RFR: 8296710: Update to use jtreg 7.1

2022-11-29 Thread Alan Bateman
On Tue, 29 Nov 2022 14:44:12 GMT, Christian Stein wrote: > Please review the change to update to using jtreg `7.1`. > > The primary change is to the `jib-profiles.js` file, which specifies the > version of jtreg to use, for those systems that rely on this file. In > addition, the

Re: RFR: 8297271: AccessFlags should be specific to class file version

2022-11-29 Thread Roger Riggs
On Mon, 28 Nov 2022 22:56:27 GMT, Roger Riggs wrote: > The accessFlags() methods added (in JDK 20, the current release) to > java.lang.Class, java.lang.reflect.Executable, and java.lang.reflect.Field > assume the access flags are from the current/most recent class file format > version. For

RFR: 8296710: Update to use jtreg 7.1

2022-11-29 Thread Christian Stein
Please review the change to update to using jtreg `7.1`. The primary change is to the `jib-profiles.js` file, which specifies the version of jtreg to use, for those systems that rely on this file. In addition, the requiredVersion has been updated in the various `TEST.ROOT` files. This pull

Re: RFR: 8296024: Usage of DIrectBuffer::address should be guarded [v17]

2022-11-29 Thread Alan Bateman
On Tue, 29 Nov 2022 09:40:58 GMT, Per Minborg wrote: >> This PR proposes the introduction of **guarding** of the use of >> `DirectBuffer::address` within the JDK. With the introduction of the Foreign >> Function and Memory access, it is possible to derive Buffer instances that >> are backed

RFR: 8297733: Refactor Cast binding to enum

2022-11-29 Thread Jorn Vernee
Refactor the cast binding to an enum, which clearly enumerates all supported conversions. This also fixes a bug where `java/foreign/normalize/TestNormalize` was failing when running in interpreted mode (`-Djdk.internal.foreign.DowncallLinker.USE_SPEC=false`), for conversions from `int` to

RFR: 8297736: test/jdk/java/foreign/TestMatrix.java is broken

2022-11-29 Thread Jorn Vernee
- Fix tests that try to run `TestDowncall` which was split into TestDowncallScope and TestDowncallStack - Fix use of obsolete system properties to control specilization - Add test to run TestVarArgs in un-sampled mode. Testing: Manual runs of TestMatrix.java (it's a manual test) on Windows and

Re: RFR: JDK-8296149: Start of release updates for JDK 21

2022-11-29 Thread Erik Joelsson
On Tue, 1 Nov 2022 05:49:25 GMT, Joe Darcy wrote: > Usual start-of-release updates. Symbol updates in initial version reflect JDK > 20 build 21. Marked as reviewed by erikj (Reviewer). - PR: https://git.openjdk.org/jdk/pull/10924

Re: RFR: 8297295: Remove ThreadGroup.allowThreadSuspension

2022-11-29 Thread Chris Hegarty
On Fri, 25 Nov 2022 18:54:28 GMT, Alan Bateman wrote: > Another small step in the multi-release/multi-year effort to remove cruft > from Thread/ThreadGroup. > > java.lang.ThreadGroup.allowThreadSuspension(boolean) dates from JDK 1.1 and > the Classic VM. The method controlled whether threads

Re: RFR: JDK-8286666: JEP 429: Implementation of Scoped Values (Incubator) [v33]

2022-11-29 Thread Andrew Haley
On Thu, 24 Nov 2022 14:05:41 GMT, Andrew Haley wrote: >> JEP 429 implementation. > > Andrew Haley has updated the pull request incrementally with one additional > commit since the last revision: > > Unused variable

Integrated: 8296645: org.openjdk.bench.javax.tools.Javac leaves class files in current directory

2022-11-29 Thread Aleksey Shipilev
On Wed, 9 Nov 2022 09:00:14 GMT, Aleksey Shipilev wrote: > $ java -jar > ../build/linux-x86_64-server-release/images/test/micro/benchmarks.jar > org.openjdk.bench.javax.tools.Javac.testCompile -f 1 -r 1s -w 1s > ... > > $ ls > Apan.class > ``` > > Additional testing: > - [x] Eyeballing CWD

Re: RFR: 8296645: org.openjdk.bench.javax.tools.Javac leaves class files in current directory [v2]

2022-11-29 Thread Aleksey Shipilev
On Tue, 15 Nov 2022 13:53:23 GMT, Aleksey Shipilev wrote: >> $ java -jar >> ../build/linux-x86_64-server-release/images/test/micro/benchmarks.jar >> org.openjdk.bench.javax.tools.Javac.testCompile -f 1 -r 1s -w 1s >> ... >> >> $ ls >> Apan.class >> ``` >> >> Additional testing: >> - [x]

Re: RFR: 8296546: Add @spec tags to API [v3]

2022-11-29 Thread Daniel Fuchs
We hear you Mike :-) I have logged https://bugs.openjdk.org/browse/JDK-8297755 to update the links in java.net / java.net.http API documentation. best regards, -- daniel On 29/11/2022 03:14, Michael StJohns wrote: Hi - I need to repeat again.  Please avoid using www.ietf.org as the URL base

Re: RFR: 8296024: Usage of DIrectBuffer::address should be guarded [v17]

2022-11-29 Thread Maurizio Cimadamore
On Tue, 29 Nov 2022 09:40:58 GMT, Per Minborg wrote: >> This PR proposes the introduction of **guarding** of the use of >> `DirectBuffer::address` within the JDK. With the introduction of the Foreign >> Function and Memory access, it is possible to derive Buffer instances that >> are backed

Re: RFR: 8296024: Usage of DIrectBuffer::address should be guarded [v17]

2022-11-29 Thread Per Minborg
> This PR proposes the introduction of **guarding** of the use of > `DirectBuffer::address` within the JDK. With the introduction of the Foreign > Function and Memory access, it is possible to derive Buffer instances that > are backed by native memory that, in turn, can be closed asynchronously

Re: RFR: 8297632: InputStream.transferTo() method should specify what the return value should be when the number of bytes transfered is larger than Long.MAX_VALUE

2022-11-29 Thread Alan Bateman
On Tue, 29 Nov 2022 00:56:58 GMT, Brian Burkhalter wrote: > `java.io.InputStream::transferTo` could conceivably return a negative value > if the count of bytes transferred overflows a `long`. Modify the method to > limit the number of bytes transferred to `Long.MAX_VALUE` per invocation.