8242477: (bf) MappedByteBuffer should clarify copying between overlapping mappings

Brian Burkhalter brian.burkhalter at oracle.com
Fri Apr 10 16:47:59 UTC 2020



> On Apr 10, 2020, at 4:10 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> 
> On 09/04/2020 23:26, Brian Burkhalter wrote:
>> To fix [1] this additional verbiage is proposed for the class specification of MappedByteBuffer:
>> 
>> @@ -58,6 +58,9 @@
>>   * avoid the manipulation of a mapped file by this program, or by a
>>   * concurrently running program, except to read or write the file's content.
>>   *
>> + * <p> The result of a bulk copy between two {@code MappedByteBuffer}s is
>> + * unspecified if they are mapped from overlapping regions of the same file.
>> + *
>>   * <p> Mapped byte buffers otherwise behave no differently than ordinary direct
>>   * byte buffers. </p>
>> 
> Looks good, I think this is the right place in the class description for this.

CSR filed: https://bugs.openjdk.java.net/browse/JDK-8242500.

Thanks,

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


More information about the nio-dev mailing list