#15432: Use a callback with a weak reference to WeakValueDictionary
-------------------------------------+-------------------------------------
Reporter: nbruin | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.0
Component: memleak | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/nbruin/ticket/15432 | 8b70d1d8f68fdfe6ae020c37a43e91031c6fe952
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by nbruin):
And of course there is another circular reference from the
`_IterationContext`. Making that weak as well makes the thing collectable,
so with the new branch we get that `TestTcollect` works as desired.
Note that if you have objects chained by keys in a `WeakValueDictionary`,
immediate collectibility of the chain could depend on the
WeakValueDictionary not keeping circular references to itself.
So, I think this patch could have real effect of memory footprint in sage
code.
--
Ticket URL: <http://trac.sagemath.org/ticket/15432#comment:6>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.