Re: Incorrect return value for Java_jdk_internal_loader_NativeLibraries_load() in java.base/share/native/libjava/NativeLibraries.c

2022-02-24 Thread Mandy Chung
This is not an issue and does not affect the runtiime.  When it fails to load a native library, the VM will throw UnsatisfiedLinkError (see JVM_LoadLibrary).   The return value is only important for the JNI case and calling System::loadLibrary on the system with dynamic linker cache (Big Sur)

Incorrect return value for Java_jdk_internal_loader_NativeLibraries_load() in java.base/share/native/libjava/NativeLibraries.c

2022-02-23 Thread Cheng Jin
Hi there, The return value from Java_jdk_internal_loader_NativeLibraries_load() at https://github.com/openjdk/jdk/blob/master/src/java.base/share/native/libjava/NativeLibraries.c seems incorrect according to the code logic in there. Looking at the calling path from loadLibrary() to load() at