#14304: New implementation of unramified p-adics using FLINT and templates
-------------------------------------+-------------------------------------
       Reporter:  roed               |        Owner:  roed
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.1
      Component:  padics             |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Julian Rueth,      |    Reviewers:  David Roe, Julian
  David Roe                          |  Rueth
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/roed/ticket/14304                |  60975a4eed6b9bc665219709e337f801eb2b264d
   Dependencies:  #12555, #12173     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jpflori):

 I see that there is some smartness added to sage_mpir_malloc/... functions
 in src/c_lib/memory.c, and these functions are hopefully called when
 mpir_init is (instead of plain malloc/...).

 But as far as I now, nothing similar was done for flint, and if that's the
 case, a failed memory allocation would go undetected anyway (and Sage
 crash quite quickly with null pointer dereference or similar delicious
 stuff).

 I just looked at flint memory allocation code (flfint_malloc/...), and a
 failed allocation by malloc would call the flint_memory_error function
 which calls abort().

--
Ticket URL: <http://trac.sagemath.org/ticket/14304#comment:38>
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.

Reply via email to