8219014: (bf) Add absolute bulk put methods which accept a source Buffer
brian.burkhalter at oracle.com
Fri Jun 26 00:42:36 UTC 2020
Reviving  from April.
> On Apr 1, 2020, at 8:57 AM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
>> Hmm. This part
>> + * of both buffers are unchanged. If the source buffer and this buffer share
>> + * the same backing storage and the source and destination ranges overlap,
>> + * then the transfer is performed as if the elements at positions
>> still references “backing storage”? Should it say “backing array”
>> I don't think you can make such a promise for direct buffers.
> I think the fallback code that does put(j, get(i)) instead of using arraycopy() or Unsafe needs to be checked for this, but the latter two approaches insofar as we know will handle overlaps.
If we are interested in resolving , then it is much easier after the fix for . A possible change is . If this seems reasonable then testing will be added and a CSR filed; if not, then perhaps withdraw the issue.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nio-dev