System.loadLibrary and CLinker.lookup exception
Jack Andrews
effbiae at gmail.com
Wed Apr 27 09:50:57 UTC 2022
On Wed, 27 Apr 2022 at 18:35, Maurizio Cimadamore <
maurizio.cimadamore at oracle.com> wrote:
> The way to search library symbols in Panama is via a SymbolLookup.
>
this could be communicated in sample code. eg. at
https://github.com/openjdk/panama-foreign/blob/foreign-jextract/doc/panama_ffi.md
with demonstrations of (2) rather than the demonstration of (3).
thinking like the user with some extensive sample code could benefit the
project.
2) libraryLookup(Path/String): this loads a library, searches symbols in
> it. When the associated scope is closed, the library is unloaded. Allows
> same library to be loaded in multiple loaders.
>
> 3) system lookup - this is currently exposed by CLinker itself, which
> implements SymbolLookup. The idea behind this being an instance method
> in CLinker is that different linkers might expose different "standard"
> libraries.
>
how does the user benefit from (3)? by having memcpy on hand?
More information about the panama-dev
mailing list