[foreign-jextract] RFR: Improve NIO channel support for buffer views over segments [v3]

Chris Hegarty chegar at openjdk.java.net
Thu Apr 22 11:39:47 UTC 2021


On Wed, 21 Apr 2021 15:09:51 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> Chris Hegarty has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Resolve outstanding TODO in MemoryScope spec
>
> src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/MemorySegment.java line 385:
> 
>> 383:      * an unspecified exception being thrown. Examples of such problematic operations are {@link FileChannel#read(ByteBuffer)},
>> 384:      * {@link FileChannel#write(ByteBuffer)}, {@link java.nio.channels.SocketChannel#read(ByteBuffer)} and
>> 385:      * {@link java.nio.channels.SocketChannel#write(ByteBuffer)}.  TODO HERE Fix this comment
> 
> TODO comment here.

I removed this reminder TODO, and updated the spec to refer to async I/O operations with byte buffer views over segments associated with a confined scope.

-------------

PR: https://git.openjdk.java.net/panama-foreign/pull/512


More information about the panama-dev mailing list