aboutsummaryrefslogtreecommitdiff
path: root/py/gc.c
AgeCommit message (Collapse)Author
2014-04-09gc.c: Remove superfluous typedef (bute defined in misc.h).Paul Sokolovsky
2014-04-08py: Improve GC locking/unlocking, and make it part of the API.Damien George
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-05Move del to localsmux
2014-04-03Implement delmux
2014-04-02gc: Uses uint defined in misc.h.Paul Sokolovsky
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-03-12py: Cosmetic changes.Damien George
2014-03-12Fix reallocmux
2014-03-07py: Revert to old gc_realloc for now.Damien George
2014-03-06py: Add comments to new gc_realloc, it has some bugs.Damien George
2014-03-06py: Small cosmetic changes to gc_realloc.Damien George
2014-03-05Fix gc_realloc to expand in placemux
* Issue #322
2014-02-26GC: Fix printf formats for debugging; add gc_dump_alloc_table.Damien George
2014-02-26py: Remove more var arg names fro 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-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