Re: [jdk16] RFR: 8259634: MemorySegment::asByteBuffer does not respect spatial bounds

2021-01-12 Thread Chris Hegarty
On Tue, 12 Jan 2021 15:28:20 GMT, Maurizio Cimadamore wrote: > The byte buffers created from heap segments do not honor the javadoc - which > says that the resulting buffer size should be equal to > MemorySegment::byteSize, and that the buffer position should be zero. > > The issue is that th

Re: [jdk16] RFR: 8259634: MemorySegment::asByteBuffer does not respect spatial bounds

2021-01-12 Thread Alan Bateman
On Tue, 12 Jan 2021 15:28:20 GMT, Maurizio Cimadamore wrote: > The byte buffers created from heap segments do not honor the javadoc - which > says that the resulting buffer size should be equal to > MemorySegment::byteSize, and that the buffer position should be zero. > > The issue is that th

[jdk16] RFR: 8259634: MemorySegment::asByteBuffer does not respect spatial bounds

2021-01-12 Thread Maurizio Cimadamore
The byte buffers created from heap segments do not honor the javadoc - which says that the resulting buffer size should be equal to MemorySegment::byteSize, and that the buffer position should be zero. The issue is that the NIO routine we have added to create heap buffers is using the wrong con