#12357: Make groupoids garbage collectable
------------------------------------------------+---------------------------
       Reporter:  SimonKing                     |         Owner:  rlm           
   
           Type:  defect                        |        Status:  needs_work    
   
       Priority:  major                         |     Milestone:  sage-pending  
   
      Component:  memleak                       |    Resolution:                
   
       Keywords:  groupoid cache Cernay2012     |   Work issues:                
   
Report Upstream:  N/A                           |     Reviewers:  Jean-Pierre 
Flori
        Authors:  Simon King                    |     Merged in:                
   
   Dependencies:  #715, #11521, #12313, #11943  |      Stopgaps:                
   
------------------------------------------------+---------------------------

Comment (by SimonKing):

 PS: In unpatched sage-5.6.rc0, one would obtain
 {{{
 sage: P = Parent()
 sage: import gc
 sage: m = id(P)
 sage: n = id(Groupoid(P))
 sage: m in map(id, gc.get_objects())
 True
 sage: n in map(id, gc.get_objects())
 True
 sage: del P
 sage: _ = gc.collect()
 sage: m in map(id, gc.get_objects())
 True
 sage: n in map(id, gc.get_objects())
 True
 }}}
 And this is even ''without'' using a cache for P!!

 Hence, the tests does demonstrate that some leak was fixed.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12357#comment:26>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to