Changes between Initial Version and Version 1 of Ticket #11521, comment 149


Ignore:
Timestamp:
08/16/12 17:55:36 (8 years ago)
Author:
SimonKing
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11521, comment 149

    initial v1  
    11OK, the additional patch has been posted. It removes the explicit weak reference to the category (`TripleDict` uses a weak reference anyway), adds a callback to the weak reference to the homset, so that an item of the homset cache gets deleted if the homset is garbage collected, and it replaces "if H:" by "if H is not None:".
    22
    3 I doctested sage/schemes/ (heuristics: If there is a problem with one of my patches, then a segfault occurs in sage/schemes :), sage/structure/ and sage/categories/homset.py (hence, the memory leak remains fixed).
     3I doctested sage/schemes/ (heuristics: Most bugs I ever authored resulted in a segfault in sage/schemes :), sage/structure/ and sage/categories/homset.py (hence, the memory leak remains fixed).
    44
    55Apply #715 trac_11521_homset_weakcache_combined.patch trac_11521_callback.patch