Constant caching could hold objects longer than their referenced lifetime
-------------------------------------------------------------------------

                 Key: JRUBY-3086
                 URL: http://jira.codehaus.org/browse/JRUBY-3086
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
            Reporter: Charles Oliver Nutter
             Fix For: JRuby 1.1.6


We added constant caching in 1.1.5, but it uses all hard references to the 
constant values and the cache sites are passively flushed. This means they 
could easily hold a constant value longer than it would normally survive if it 
is replaced but never referenced from that cache site again. We need to examine 
how likely this is to happen, determine the potential impact, and consider 
using weak references for constant caching.

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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to