#18905: fix more leaks found in #18897
---------------------------+------------------------
       Reporter:  dimpase  |        Owner:
           Type:  defect   |       Status:  new
       Priority:  major    |    Milestone:  sage-6.8
      Component:  memleak  |   Resolution:
       Keywords:           |    Merged in:
        Authors:           |    Reviewers:
Report Upstream:  N/A      |  Work issues:
         Branch:           |       Commit:
   Dependencies:  #18897   |     Stopgaps:
---------------------------+------------------------
Changes (by SimonKing):

 * dependencies:   => #18897


Old description:

> In #18897 one leak is fixed, but there are more left, see comments 27 and
> later.

New description:

 In #18897 one leak is fixed, but there are more left, see comments 27 and
 later:
 {{{
 sage: L = [1,1,0,1,0,1,2,1,1,0,0,1,2,0,0,1,1,0,2,0,0,0,0,0,1]
 sage: def test(L, dim):
 ....:     import gc
 ....:     from collections import Counter
 ....:     gc.collect()
 ....:     pre={id(c) for c in gc.get_objects()}
 ....:     m = matrix(dim, L)
 ....:     for p in range(2,102):
 ....:         m.change_ring(GF(nth_prime(p))).eigenvalues()
 ....:     gc.collect()
 ....:     post=Counter(type(o) for o in gc.get_objects() if id(o) not in
 pre)
 ....:     return [(k,v) for (k,v) in post.iteritems() if v>10]
 ....:
 sage: test(L, 5)
 [(<class
 
'sage.rings.algebraic_closure_finite_field.AlgebraicClosureFiniteField_pseudo_conway_with_category'>,
   100),
 ...
  (<class 'sage.rings.homset.RingHomset_quo_ring_with_category'>, 100),
 ...
  (<type 'sage.rings.finite_rings.integer_mod.NativeIntStruct'>, 100),
  (<type 'sage.rings.finite_rings.integer_mod.Int_to_IntegerMod'>, 200),
 ...
  (<class 'sage.rings.homset.RingHomset_generic_with_category'>, 100),
 ...]
 }}}

--

--
Ticket URL: <http://trac.sagemath.org/ticket/18905#comment:1>
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/d/optout.

Reply via email to