summaryrefslogtreecommitdiff
path: root/py/malloc.c
AgeCommit message (Collapse)Author
2014-04-05Improve GC finalisation code; add option to disable it.Damien George
2014-04-05Merge pull request #425 from iabdalkader/delDamien George
Implement del
2014-04-04py: Add m_malloc_fail function to handle memory allocation error.Damien George
A malloc/realloc fail now throws MemoryError.
2014-04-03Implement delmux
2014-04-02py: Fix up so that it can compile without float.Damien George
2014-03-17py: Clean up includes.xbe
Remove unnecessary includes. Add includes that improve portability.
2014-02-26py: Remove name of var arg from macros with var args.Damien George
2014-02-16Make DEBUG_printf() a proper function, implementation is port-dependent.Paul Sokolovsky
In particular, unix outputs to stderr, to allow to run testsuite against micropython built with debug output (by redirecting stderr to /dev/null).
2014-02-12Replace global "static" -> "STATIC", to allow "analysis builds". Part 2.Paul Sokolovsky
2014-02-11Generalize malloc-via-gc-heap support, make it available to unix port.Paul Sokolovsky
2014-02-10Get rid of calloc().Paul Sokolovsky
If there's malloc and memset, then there's no need for calloc, especially if we need to implement it ourselves.
2014-01-30realloc(): Log original memory ptr too.Paul Sokolovsky
To alloc complete memory alloc flow tracing.
2014-01-29stm: Add optional memory debugging output.Damien George
2014-01-03Rename default config file to mpconfig.h, and port's to mpconfigport.h.Paul Sokolovsky
mpconfig.h will automatically pull mpconfigport.h.
2014-01-03Make it possible to turn off collecting memory stats (MICROPY_MEM_STATS).Paul Sokolovsky
2014-01-03Add new alloc metric: peak_bytes_allocated.Paul Sokolovsky
This is just max value of current_bytes_allocated seen.
2014-01-03Add new alloc metric: current_bytes_allocated.Paul Sokolovsky
Unlike total_bytes_allocated, this tracks m_free()'s too.
2014-01-03m_realloc: Account only allocation size difference in total_bytes_allocated.Paul Sokolovsky
2013-12-29Change memory allocation API to require size for free and realloc.Damien
2013-10-23Fix func decls with no arguments: () -> (void).Damien
2013-10-04Initial commit.Damien