Skip to content

Commit 6a96959

Browse files
committed
Introduce check to see if a library was registered by a loadLibrary call.
1 parent 35e54fe commit 6a96959

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/c/NativeLibraries.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ public boolean isPotentialBuiltinJNILibrary(String library) {
501501

502502
public void markPotentialBuiltinJNILibraryReachable(String library) {
503503
assert potentialBuiltinJNILibraryMap.containsKey(library);
504+
VMError.guarantee(!potentialBuiltinJNILibraryMap.get(library).isReachable(), library);
504505
potentialBuiltinJNILibraryMap.get(library).markReachable();
505506
}
506507

0 commit comments

Comments
 (0)