aboutsummaryrefslogtreecommitdiff
path: root/py/gc.c
AgeCommit message (Collapse)Author
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-11More GC debugging improvements.Paul Sokolovsky
2014-02-11gc: Don't segfault if gc_realloc() fails.Paul Sokolovsky
2014-02-11gc: Make debug output configurable, revamp test function.Paul Sokolovsky
Test function needs to be called by something else. Test heap size reduced so its dump fits on a screenful of a typical terminal.
2014-01-24Revert "Move gc_collect to py/gc.c"Damien George
This reverts commit a215b09c0dc29b82161092e92ea2e5e004d79468.
2014-01-24Move gc_collect to py/gc.cmux
* Move gc_collect from main to py/gc.c * Define GC's memory boundaries in linker script * Issue #220
2014-01-12Move BITS_PER_BYTE, BITS_PER_WORD to mpconfig.h for reuse.Paul Sokolovsky
2014-01-07Factor and simplify Makefile's and mpconfig, part 2.Damien George
2013-12-21Change object representation from 1 big union to individual structs.Damien
A big change. Micro Python objects are allocated as individual structs with the first element being a pointer to the type information (which is itself an object). This scheme follows CPython. Much more flexible, not necessarily slower, uses same heap memory, and can allocate objects statically. Also change name prefix, from py_ to mp_ (mp for Micro Python).
2013-10-23Call gc_free in gc_realloc after allocating new block.Damien
2013-10-23Fix func decls with no arguments: () -> (void).Damien
2013-10-22gc: reserve first block; lexer: free vstr.Damien
2013-10-22Add gc_free function to force a block to be freed.Damien
2013-10-22Clear ATBs on gc_init; better gc_info.Damien
2013-10-21Add mark-sweep garbage collector.Damien