summaryrefslogtreecommitdiff
path: root/py/modgc.c
AgeCommit message (Collapse)Author
2015-02-07py: Put mp_sys_path, mp_sys_argv and gc_collected in mp_state_ctx_t.Damien George
Without mp_sys_path and mp_sys_argv in the root pointer section of the state, their memory was being incorrectly collected by GC.
2015-01-07py: Put all global state together in state structures.Damien George
This patch consolidates all global variables in py/ core into one place, in a global structure. Root pointers are all located together to make GC tracing easier and more efficient.
2015-01-01py: Move to guarded includes, everywhere in py/ core.Damien George
Addresses issue #1022.
2014-11-29Use MP_DEFINE_CONST_DICT macro to define module dicts.Damien George
This is just a clean-up of the code. Generated code is exactly the same.
2014-10-31py: Make gc.enable/disable just control auto-GC; alloc is still allowed.Damien George
gc.enable/disable are now the same as CPython: they just control whether automatic garbage collection is enabled or not. If disabled, you can still allocate heap memory, and initiate a manual collection.
2014-08-10doc: Document gc, sys, math, cmath.Damien George
2014-07-31py: Make MP_OBJ_NEW_SMALL_INT cast arg to mp_int_t itself.Damien George
Addresses issue #724.
2014-07-03Rename machine_(u)int_t to mp_(u)int_t.Damien George
See discussion in issue #50.
2014-06-25modgc: Add mem_free()/mem_alloc() methods.Paul Sokolovsky
Return free/allocated memory on GC heap.
2014-06-21py: Include mpconfig.h before all other includes.Paul Sokolovsky
It defines types used by all other headers. Fixes #691.
2014-06-19Prefix ARRAY_SIZE with micropython prefix MP_Emmanuel Blot
2014-06-06modgc: Real 64-bit cleanness.Paul Sokolovsky
2014-06-06modgc: 64-bit cleanness.Paul Sokolovsky
2014-06-05modgc: Implement return value for gc.collect(), enable on Unix.Paul Sokolovsky
2014-05-24Rename configuration variables controling Python features.Damien George
Now of the form MICROPY_PY_*. See issue #35.
2014-05-08Add gc.enable, gc.disable; remove pyb.gc.Damien George
2014-05-06modgc: Add new module for GC-related functionality.Paul Sokolovsky