[foreign-memaccess+abi] RFR: 8268743: Require a better way for copying data between MemorySegments and on-heap arrays
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Wed Jun 16 11:16:57 UTC 2021
On Wed, 16 Jun 2021 10:53:19 GMT, Uwe Schindler <uschindler at openjdk.org> wrote:
> I will just check both branches separately. First this pull request, if it makes the allocations go away (which looks like it won't). Then the other one.
You might also wanna try the one in:
https://github.com/openjdk/panama-foreign/pull/555
As you said, the fact that the copy is wrapped in a `@ForceInline` might help. Also, I realized (and that's probably what you were referring to) that the single static copy method would still require wrapping the array in a segment.
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/560
More information about the panama-dev
mailing list