[foreign-memaccess] RFR: Investigate ways to make handoff-like operation more explicit (foreign-memacess edition)
Jorn Vernee
jvernee at openjdk.java.net
Thu Oct 1 13:13:20 UTC 2020
On Thu, 1 Oct 2020 12:40:54 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> This is a subset of the patch proposed here:
> https://git.openjdk.java.net/panama-foreign/pull/361
>
> I'd like to integrate the memory access bits first and then merge the changes into PR 361.
Looks good. Though, I think we should mention somewhere on handoff/share/registerCleaner, or maybe on the class, that
attachments, cleanup actions, and cleaners are transferred to the new segment when doing these operations.
src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/MemorySegment.java line 411:
> 409: * @param thread the new owner thread
> 410: * @return a new confined memory segment whose owner thread is set to {@code thread}.
> 411: * characteristics have been modified, according to the supplied {@code handoffTransform}.
This is still talking about handoffTransform
-------------
Marked as reviewed by jvernee (Committer).
PR: https://git.openjdk.java.net/panama-foreign/pull/363
More information about the panama-dev
mailing list