Changes between Initial Version and Version 1 of Ticket #11521, comment 149
 Timestamp:
 08/16/12 17:55:36 (10 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

Ticket #11521, comment 149
initial v1 1 1 OK, 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:". 2 2 3 I doctested sage/schemes/ (heuristics: If there is a problem with one of my patches, then a segfault occursin sage/schemes :), sage/structure/ and sage/categories/homset.py (hence, the memory leak remains fixed).3 I 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). 4 4 5 5 Apply #715 trac_11521_homset_weakcache_combined.patch trac_11521_callback.patch