#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: Add doctest | Upstream: N/A
Reviewer: | Author: Nathann Cohen
Merged: | Dependencies:
----------------------------------+-----------------------------------------
Comment(by ncohen):
Hellooooooo !!!!
Well, the first reason is that with this line added between the two, the
answer is 0 whether the patch is applied or not. Using gc.collect() was
actually Volker's first answer to the sage-devel thread which totally
solved the problem : the instances of MixedIntegerLinearProgram are indeed
deallocated by the garbage collector when it is *called*, which is not
done systematically when the function ends. Robert Bradshaw and William
then said that if there was no cyclic dependency the work would be done
without the garbage collector's help at the end of the function, which is
actually the case.
Hence, in this situation, the doctest fails when the patch is not applied,
and according to their answers (and experience until now) has no reason to
fail when the patch is applied. What do you advise ?
Nathann
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12616#comment:7>
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.