ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIOM-354) Potential class loader leak caused by the thread local in org.apache.axiom.util.UIDGenerator
Date Sun, 09 Jan 2011 14:02:45 GMT
Potential class loader leak caused by the thread local in org.apache.axiom.util.UIDGenerator
--------------------------------------------------------------------------------------------

                 Key: AXIOM-354
                 URL: https://issues.apache.org/jira/browse/AXIOM-354
             Project: Axiom
          Issue Type: Bug
          Components: API
    Affects Versions: 1.2.10
            Reporter: Andreas Veithen


UIDGenerator uses a ThreadLocal with a value class that belongs to Axiom (namely UIDGeneratorImpl).
Since the ThreadLocal is never cleaned up explicitly (doing that would break the UIDGenerator),
this may cause a class loader leak (i.e. in a Web application, it may prevent the class loader
from being garbage collected when the application is stopped). Since UIDGeneratorImpl basically
stores 3 values of type long, it should be easy to refactor the code so that the value class
ThreadLocal is not loaded from the application class loader (e.g. by using long[] as value
class). However, I first need to confirm that there is really a class loader leak here.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


Mime
View raw message