Changes between Initial Version and Version 5 of Ticket #10257


Ignore:
Timestamp:
12/14/14 09:33:45 (7 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10257

    • Property Summary changed from Change malloc to sage_malloc to Improve memory functions
    • Property Milestone changed from sage-5.11 to sage-6.5
  • Ticket #10257 – Description

    initial v5  
    1 In the light of potential future changes to {{{sage_malloc()}}}, we should use {{{sage_malloc()}}} instead of {{{malloc()}}}.
     1We should use `sage_malloc()`/`sage_free()` everywhere instead of plain `malloc()`/`free()`.
     2
     3We should also introduce `_check` variants which `raise MemoryError` upon failure.
     4
     5I also propose to add a BSD-inspired [http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man3/calloc.3?query=reallocarray&arch=i386 sage_reallocarray()] function.