[foreign-memaccess+abi] RFR: 8270376: Finalize API for memory copy [v9]

Maurizio Cimadamore mcimadamore at openjdk.java.net
Fri Aug 6 17:51:46 UTC 2021


On Fri, 6 Aug 2021 17:38:30 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

> Now you got me looking at `MemorySegment.fill`! Arguably that is a bulk copy broadcasting a scalar, like `Arrays.fill`.

Yes, it's a memset.

>  If we keep the one arg method i would rename it `copy` and flip the dst/src, and returning dst.

Honestly, `copy` alone sounds too ambiguous when used in instance mode.

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

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


More information about the panama-dev mailing list