Should the ClassLoader to be thread-safe? Does it make sense to cache the loaded classes?
In Java there is such a thing as a's Classloader, but the method defineClass() it is not synchronized, as well as methods findClass() and loadClass(), which is strange, because different threads can access these methods at the same time, resulting in re-downloading for example.
Is it worth doing a custom loader is thread-safe?
And, I think this should be closely linked: whether to create a custom loader nesiruosiu if the download class — long process?