[foreign-preview] RFR: 8282873: Bring back SymbolLookup [v2]
Paul Sandoz
psandoz at openjdk.java.net
Thu Mar 10 22:04:05 UTC 2022
On Thu, 10 Mar 2022 21:43:31 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> This cannot call the path version. Note that `dlopen` has its own "known" library names. On linux I can open `libc.so.6` by name, and the correct file fill be found, using the linker cache. MacOS also has some notion of libraries that are not really files: https://developer.apple.com/forums/thread/655588
>
> In other words, note that the two methods are using different methods in the `RawNativeLibraries` class.
Ah, i see. So they are not interchangeable as i thought, and the Path variant has to refer to an actual file location (relative or otherwise), where as the String might not? Might be worth clarifying that, and for the String variant it is not constrained as is the case for `System.loadLibrary`?
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/666
More information about the panama-dev
mailing list