We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3956a6 + 21caf34 commit fa36855Copy full SHA for fa36855
test/jdk/java/lang/ClassLoader/nativeLibrary/NativeLibraryTest.java
@@ -97,6 +97,8 @@ static void runTest() throws Exception {
97
throw new RuntimeException("should fail to load the native library" +
98
" by another class loader");
99
} catch (UnsatisfiedLinkError e) {}
100
+ // keep Runnable r strongly reachable so that it is not reclaimable by GC
101
+ java.lang.ref.Reference.reachabilityFence(r);
102
}
103
104
/*
0 commit comments