#11521: Use weak references to cache homsets
--------------------------------------------------+-------------------------
       Reporter:  jpflori                         |         Owner:  robertwb    
                                          
           Type:  defect                          |        Status:  needs_work  
                                          
       Priority:  major                           |     Milestone:  sage-5.4    
                                          
      Component:  coercion                        |    Resolution:              
                                          
       Keywords:  sd35                            |   Work issues:  Test 
activity of weak references if addresses coincide
Report Upstream:  N/A                             |     Reviewers:  Jean-Pierre 
Flori, Nils Bruin                         
        Authors:  Simon King                      |     Merged in:              
                                          
   Dependencies:  #12969; to be merged with #715  |      Stopgaps:              
                                          
--------------------------------------------------+-------------------------
Changes (by SimonKing):

  * status:  positive_review => needs_work
  * work_issues:  => Test activity of weak references if addresses coincide


Comment:

 See my comment at
 [http://trac.sagemath.org/sage_trac/ticket/13370#comment:17 13370]: To be
 on the safe side, i.e., in order to avoid that a key is deallocated but
 its callback function isn't called, one could/should first look at the
 memory address, and then (if the addresses coincide) test whether the
 stored weak reference is still active. Namely, if it isn't then the new
 key is ''really'' new, even though using an old address.

 Hence, I'd like to put this and #715 to "needs work".

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