Even after fix for JDK-8200102 the test is still failing:
#section:main
----------messages:(4/195)----------
command: main -Xcheck:jni NativeLibraryTest
reason: User specified action: run main/othervm/native -Xcheck:jni NativeLibraryTest
Mode: othervm [/othervm specified]
elapsed time (seconds): 0.313
----------configuration:(0/0)----------
----------System.out:(11/55)----------
gc 0
gc 0
gc 0
gc 0
gc 0
gc 0
gc 0
gc 0
gc 0
gc 0
gc 0
----------System.err:(13/837)----------
java.lang.RuntimeException: Expected unloaded=2 but got=1
at NativeLibraryTest.main(NativeLibraryTest.java:71)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:831)