Review Request JDK-8164512: Replace ClassLoader use of finalizer with phantom reference to unload native library
mandy.chung at oracle.com
Wed Oct 4 23:24:15 UTC 2017
JNI FindClass change has been separated from this patch . I made
further clean up to the NativeLibrary implementation and replaced the
use of Vector/Stack. I also added a native test to verify the native
library can be unloaded and reloaded.
Summary: The patch replaces the ClassLoader use of finalizer with
phantom reference, specifically Cleaner, for unloading native
libraries. It registers the class loader for cleanup only if it's not a
builtin class loader which will never be unloaded.
More information about the core-libs-dev