>>>>> "Andrew" == Andrew Haley <[EMAIL PROTECTED]> writes:

Andrew> What happens is that one thread does ClassLoader.loadClass, which is
Andrew> synchronized on the loader, and then URLClassLoader calls toString(),
Andrew> which is synchronized on urlloaders.

Another choice would be to simply synchronize on the loader and never
synchronize on urlloaders.  There doesn't seem to be a particular
advantage to having two different locks here.

Tom


_______________________________________________
Classpath mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath

Reply via email to