Unifying memory addresses and memory segments
Glavo
zjx001202 at gmail.com
Thu Aug 25 07:51:22 UTC 2022
It looks good in terms of simplifying API design, but this seems to have
some detrimental effects on performance optimization as well as memory
management.
Do we have some benchmarks to show changes in performance and memory overhead
(number of temporary objects created)?
On Tue, Jul 19, 2022 at 10:05 PM Maurizio Cimadamore <
maurizio.cimadamore at oracle.com> wrote:
> Hi,
> The Java 19 Foreign Function and Memory API (FFM API) uses zero-length
> memory segments to encode pointers that are temporally safe (this
> replaces the NativeSymbol abstraction that was available in Java 18).
> It turns out that there's more to this approach than meets the eye, as
> memory segments can (with few tweaks) be used as a replacement for
> memory address everywhere in the FFM API, which leads to a simpler and
> more symmetric API.
>
> We have captured our findings in the following document:
>
> http://cr.openjdk.java.net/~mcimadamore/panama/segment_address.html
>
> Cheers
> Maurizio
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20220825/b07d9616/attachment-0001.htm>
More information about the panama-dev
mailing list