diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-01 23:30:53 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-07 20:33:00 +0000 |
commit | b4b10fd350852e321624d74983cca286091b55a1 (patch) | |
tree | 7ac4aa40d70be0170a61f649e9d73c42faa4ba33 /esp8266/main.c | |
parent | ad2307c92c15f0aa90dbd0741fd2538719d0b5e1 (diff) |
py: Put all global state together in state structures.
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.
Diffstat (limited to 'esp8266/main.c')
-rw-r--r-- | esp8266/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/esp8266/main.c b/esp8266/main.c index 4bb183df2..da2f852eb 100644 --- a/esp8266/main.c +++ b/esp8266/main.c @@ -32,6 +32,7 @@ #include "py/compile.h" #include "py/runtime0.h" #include "py/runtime.h" +#include "py/stackctrl.h" #include "py/gc.h" #include "pyexec.h" #include "gccollect.h" @@ -39,7 +40,7 @@ void user_init(void) { soft_reset: - //mp_stack_set_limit((char*)&_ram_end - (char*)&_heap_end - 1024); + mp_stack_set_limit(10240); mp_hal_init(); gc_init(&_heap_start, &_heap_end); gc_collect_init(); |