[foreign-abi] [Rev 01] RFR: JDK-8243669: Improve library loading for Panama libraries

Mandy Chung mchung at openjdk.java.net
Thu Apr 30 03:16:29 UTC 2020


On Tue, 28 Apr 2020 17:11:12 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   * addressed review comments
>>   * enhanced test to also try loading same library from multiple class loaders
>
> Marked as reviewed by jvernee (Committer).

I like this simpler solution to let GC manage the native library unloading as in `System::loadLibrary`.   I'm happy to
see that `LibraryLookup::ofLibrary` and other factory methods no longer need the `Lookup` parameter as the context.

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

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


More information about the panama-dev mailing list