https://issues.apache.org/bugzilla/show_bug.cgi?id=48694

--- Comment #10 from pmones...@gmail.com 2010-03-13 05:45:36 UTC ---
So looking at all this I think the problem is as follow:

Thread1

If you call Class.forName in turn You call ClassLoader.loadClassInternal and
this is synchronized on this. Following that you enter WebappClassLoader and
get a lock on string.intern()

Thread2
On another thread you call WebAppClassLoader.loadClass which gets a lock on
string.intern() but also calls defineClass which is synchronized on this .

It seems possible to get a deadlock from the sequence of event.

I'm not sure why I seem to hit this bug more when using JRebel.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to