[jboss-dev-forums] [Design of POJO Server] - Re: Strange classloading behavior -- thread stuck
adrian@jboss.org
do-not-reply at jboss.com
Tue Feb 3 10:09:30 EST 2009
But where I do see a problem is in ClassLoadingTask.getThreadTaskCount().
This is incremented and decremented as ThreadTasks within the
overall classloading request (the ClassLoadingTask) are done (possibly by other threads).
Those increments and decrements are in synchronized blocks but the getter is not
synchronized.
So the ClassLoaderManager.process() and ClassLoaderManager.nextTask()
could prematurely leave their loops if it is seeing a stale value.
I'm not so confident that this is the real problem since I would expect the stale value
to go either way and hence see problems with it not leaving the loop if that was the real issue.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4206586#4206586
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4206586
More information about the jboss-dev-forums
mailing list