[foreign-memaccess] [Rev 03] RFR: JDK-8241154: Clarify the role of MemorySegments

Paul Sandoz psandoz at openjdk.java.net
Tue Mar 24 16:23:17 UTC 2020


On Tue, 24 Mar 2020 12:00:53 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> Uploaded new version which addresses review comments and adds some extra API points to obtain raw address/base object
>> associated with memory source (this makes ForeignUnsafe redundant). Javadoc available here:
>> http://cr.openjdk.java.net/~mcimadamore/panama/8241154_javadoc_v2/javadoc/jdk/incubator/foreign/package-summary.html
>
> Just realized that for this to work properly I need to add reachabilty fences in all the var handle code (at least,
> possibly AB invokers need to do the same). Should I do it as part of this effort, or should I split and deal with
> registerCleaner later?

Drat, those fences are a pain. Might be easier to separate out (esp. for review purposes, i am already loosing track of
what is going on!).

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

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


More information about the panama-dev mailing list