Carsten Ziegeler wrote:
Vadim Gritsenko wrote:
So as you can see there is a strong reference from ContextMap class to the
ThreadLocal which prevents GC of the WebAppClassLoader :-) See also [1] and
referenced BugParade entry.
Ah, ok - what a crap; so actually this means that one should clear all
ThreadLocal variables. Are only static thread locals effected or also
instance variables using thread locals?
Unless you do something like foo.tLocal.set(foo) - which creates reference from
ThreadLocalMap.Entry.value back to tLocal - you should be ok :-) Rule is, there
should be no strong reference from value of the thread local back to thread local.
Vadim
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]