8219014: (bf) Add absolute bulk put methods which accept a source Buffer

Brian Burkhalter brian.burkhalter at oracle.com
Wed Feb 12 23:02:33 UTC 2020


> On Feb 12, 2020, at 2:43 PM, Paul Sandoz <paul.sandoz at oracle.com> wrote:
> 
> I’ll let Brian decide on that from the perspective of Buffers, given IIRC it does not mention anything about overlapping regions.

It only mentions about overlap when the source and target buffers are the same Buffer. That needs to be generalized to “share the same storage” or some such.

> However, the incubating memory segment API does:
> 
>   https://hg.openjdk.java.net/jdk/jdk/file/tip/src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/MemoryAddress.java#l98 <https://hg.openjdk.java.net/jdk/jdk/file/tip/src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/MemoryAddress.java#l98>
This gives a nice, concrete description of what is going on. In the context of buffers an intermediate temporary buffer for when the memory overlaps would be something new I think.

Brian

> We can capture something here first.  My preference is an api note.  Care to propose something?
> 
> Paul.
> 
>> On Feb 11, 2020, at 9:34 AM, Florian Weimer <fweimer at redhat.com <mailto:fweimer at redhat.com>> wrote:
>> 
>> * Paul Sandoz:
>> 
>>> Thanks for the clarification. I see what you are getting at now.  
>>> 
>>> Yes, under those aliased circumstances there is not much we can do.
>>> All we can talk about is overlapping regions in virtual memory.
>> 
>> Is there a way to capture this in the specification?
>> 
>> Thanks,
>> Florian
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20200212/f0306244/attachment-0001.htm>


More information about the nio-dev mailing list