commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LANG-262) Use of enum prevents a classloader from being garbage collected resuling in out of memory exceptions.
Date Thu, 08 Jun 2006 08:43:36 GMT
     [ http://issues.apache.org/jira/browse/LANG-262?page=all ]

Henri Yandell updated LANG-262:
-------------------------------

    Fix Version: 2.3
                     (was: 2.2)

In an effort to get 2.2 out sooner rather than later, I'm assiging all the Enum issues to
2.3. There's been no work on them currently and might be best to focus on them in a 2.3 release
instead of trying to squeeze them into the 2.2 release.

Hopefully this will keep the 2.3 release scope pretty tight.

> Use of enum prevents a classloader from being garbage collected resuling in out of memory
exceptions.
> -----------------------------------------------------------------------------------------------------
>
>          Key: LANG-262
>          URL: http://issues.apache.org/jira/browse/LANG-262
>      Project: Commons Lang
>         Type: Bug

>  Environment: All
>     Reporter: Neil Redway
>     Priority: Critical
>      Fix For: 2.3

>
> When an enum is created it is placed in the static hashmap - cEnumClasses.  If the enum
is created from a classloader which has a limited lifetime then due to the strong reference
the classloader is never garbage collected resulting in a memory leak.  
> I believe that making the cEnumClasses a WeakHashMap should resolve the problem.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


Mime
View raw message