On Wed, 2 Mar 2022 17:04:01 GMT, Mandy Chung <mch...@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