I am writing my custom classloader and wondering if I should make it thread safe? As you can easily see, not all native Java class loaders are thread safe, only sun.misc.Launcher.AppClassLoader does (and yet I checked the OpenJDK sources, but this is not the case in OpenJDK).
Is there a reason java class loaders are out of sync? Should custom classloaders be thread safe?
java classloader
Oleksiy khilkevich
source share