#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):

 I got it!!

 By #715, both the keys and the value of
 `sage.structure.coerce_dict.TripleDict` are by weak reference -- if
 possible. If the value does not allow for a weak reference, then (to
 simplify code) a constant function is used instead.

 Actions are stored in such `TripleDict`s. However, an `IntegerMulAction`
 can not be weakly referenced. Hence, there is a strong reference, and no
 garbage collection can occur (the value points back to the keys, hence,
 they can't be collected either).

 Solution: Make `IntegerMulAction` weakly referenceable! That should
 suffice.

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