#11521: Memleak when resolving the action of Integers on an Elliptic Curve
------------------------+---------------------------------------------------
   Reporter:  jpflori   |          Owner:  robertwb   
       Type:  defect    |         Status:  needs_work 
   Priority:  major     |      Milestone:  sage-4.8   
  Component:  coercion  |       Keywords:  sd35       
Work_issues:            |       Upstream:  N/A        
   Reviewer:            |         Author:  Simon King 
     Merged:            |   Dependencies:  #11900 #715
------------------------+---------------------------------------------------

Comment(by SimonKing):

 Interestingly, the experimental patch for #715 that I have not submitted
 yet (need more tests) seems to be almost enough to fix the memory leak
 from the ticket description!

 Namely:
 {{{
 sage: <the usual loop>
 Traceback
 ...
 KeyboardInterrupt:
 sage: import gc
 sage: gc.collect()
 585
 sage: from sage.schemes.generic.homset import
 SchemeHomsetModule_abelian_variety_coordinates_field
 sage: LE = [x for x in gc.get_objects() if
 isinstance(x,SchemeHomsetModule_abelian_variety_coordinates_field)]
 sage: len(LE)
 2
 }}}

 And the experimental patch is ''not'' using weak references to the values
 of the `TripleDict` - only to the keys! Perhaps this ticket will
 eventually be a duplicate of #715?

 Anyway, I need more tests and will probably submit the patch to #715 later
 today.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11521#comment:104>
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