[foreign-memaccess] RFR: JDK-8241849: Add unsafe way to create unconfined memory segment view

Athijegannathan Sundararajan sundar at openjdk.java.net
Mon Mar 30 14:26:41 UTC 2020


On Mon, 30 Mar 2020 13:48:06 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> This patch adds an extra foreign unsafe static method to create an unconfined view of an existing segment. Following
> JDK-8241772, the acquire() entry point has been removed; while the common divide and conquer use cases are still
> supported (via spliterator), it might be the case that some of the clients want a truly unconfined (and unsafe)
> segment. This patch adds that. The new API is more powerful than just acquire() and more in sync with what existing
> clients might already doing in certain cases, by calling Unsafe::invokeCleaner when working with direct buffers.

Marked as reviewed by sundar (Committer).

Marked as reviewed by sundar (Committer).

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

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


More information about the panama-dev mailing list