#18868: a MemoryAllocator object for easier Cython memory management
-------------------------+-------------------------------------------------
Reporter: | Owner:
ncohen | Status: needs_work
Type: | Milestone: sage-6.8
enhancement | Resolution:
Priority: major | Merged in:
Component: | Reviewers:
cython | Work issues:
Keywords: | Commit:
Authors: | 27231756748e4743df056783f524c66099189ccf
Nathann Cohen | Stopgaps:
Report Upstream: N/A |
Branch: |
public/18868 |
Dependencies: |
-------------------------+-------------------------------------------------
Comment (by jdemeyer):
Can you please support all memory-allocation functions, like `calloc`,
`realloc`, `(re)allocarray` and replace the dangerous(*) calls like
{{{
mem.malloc( n * sizeof(unsigned short *))
}}}
by
{{{
mem.allocarray(n, sizeof(unsigned short *))
}}}
(*) the multiplication can overflow.
--
Ticket URL: <http://trac.sagemath.org/ticket/18868#comment:4>
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.