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