mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8318737: Fallback linker passes bad JNI handle
Reviewed-by: alanb
This commit is contained in:
parent
9864951dce
commit
3885dc5b9a
7 changed files with 32 additions and 16 deletions
|
@ -43,11 +43,14 @@ final class LibFallback {
|
|||
public Boolean run() {
|
||||
try {
|
||||
System.loadLibrary("fallbackLinker");
|
||||
init();
|
||||
return true;
|
||||
} catch (UnsatisfiedLinkError ule) {
|
||||
return false;
|
||||
}
|
||||
if (!init()) {
|
||||
// library failed to initialize. Do not silently mark as unsupported
|
||||
throw new ExceptionInInitializerError("Fallback library failed to initialize");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -201,7 +204,7 @@ final class LibFallback {
|
|||
}
|
||||
}
|
||||
|
||||
private static native void init();
|
||||
private static native boolean init();
|
||||
|
||||
private static native long sizeofCif();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue