[foreign-memaccess+abi] RFR: Refresh FFM API documents

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Feb 24 18:39:39 UTC 2023


On Fri, 24 Feb 2023 16:42:02 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> This patch refreshes the FFM API documents to reflect the latest API changes. There has been some reshuffling: I realized that we had two sections on unsafe memory segments, one at the end of the memory document, another at the beginning of the FFI document. Since unsafe segments are more common when interacting with native functions, I just kept the latter (and enhanced to explain the options in more details).
> 
> I also moved (and rewrote) the segment allocator section from the FFI doc to the memory document, as I think working with allocators and using custom arenas is more generally useful, even outside FFI support.
> 
> I also cleaned up a lot of minor incongruences in the code snippets, text and footnotes which still referred to old API names and concepts.

Documents can be viewed here:
https://github.com/mcimadamore/panama-foreign/blob/foreign_doc_refresh/doc/panama_memaccess.md
https://github.com/mcimadamore/panama-foreign/blob/foreign_doc_refresh/doc/panama_ffi.md

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

PR: https://git.openjdk.org/panama-foreign/pull/805


More information about the panama-dev mailing list