RFR: 8282515: More clean up on NativeLibraries just for JNI library use
Mandy Chung
mchung at openjdk.java.net
Wed Mar 2 17:53:49 UTC 2022
On Wed, 2 Mar 2022 17:04:01 GMT, Mandy Chung <mchung at openjdk.org> wrote:
> This patch further cleans up NativeLibraries just for JNI library use. RawNativeLibraries implements its own native load and unload methods. In addition, this also fixes the implementation of `RawNativeLibraries::load` not to throw UnsatisfiedLinkError if a library cannot be loaded for any reason but instead returns null.
Thanks for the review.
I also think this is better and cleaner separation. The duplicated native code is small and they just call `JVM_LoadLibrary` and `JVM_UnloadLibrary` that makes it very clear what this native method does.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7661
More information about the core-libs-dev
mailing list