classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deadlock in java.net.URLClassLoader


From: Tom Tromey
Subject: Re: Deadlock in java.net.URLClassLoader
Date: 22 Aug 2005 11:43:23 -0600
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Andrew" == Andrew Haley <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]