#12616: The LP are not deallocated because of cyclic references !
----------------------------------+-----------------------------------------
Reporter: ncohen | Owner: ncohen
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.0
Component: linear programming | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author: Nathann Cohen
Merged: | Dependencies:
----------------------------------+-----------------------------------------
Comment(by SimonKing):
In the ticket description, you mention a few reports on memory leaks. Is
the objective of this ticket to fix all of them?
If this ticket fixes at least one of them, then it can be turned into a
doc test (by the same blahblah with `gc.get_objects()` as before).
For instance, does your patch fix the following memory leak (sorry, can't
test it myself right now)?
{{{
g = graphs.PetersenGraph()
for count in [1..100000]:
if count % 5000 == 0:
print count
print get_memory_usage()
gc.collect()
print get_memory_usage()
test = g.independent_set()
}}}
Here, you are just calling `g.independent_set()` repeatedly - but
apparently some objects won't be garbage collected. That would really be a
memory leak.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12616#comment:11>
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.