Tom Tromey writes: > >>>>> "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.
That sounds like an excellent soloution to the problem, and it never occurred to me. I'll re-submit. Andrew. _______________________________________________ Classpath mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpath

