[python/port] Increase stack limit on emscripten, simulator...

The value is quite arbitrary, we just do not want to outperfom the
device but still provide more recursion depth.
This commit is contained in:
Léa Saviot
2019-06-25 14:23:03 +02:00
parent e84783e076
commit 0d03afb3a3

View File

@@ -105,7 +105,7 @@ void MicroPython::init(void * heapStart, void * heapEnd) {
#else
volatile int stackTop;
mp_stack_set_top((void *)(&stackTop));
mp_stack_set_limit(4000);
mp_stack_set_limit(8192);
#endif
gc_init(heapStart, heapEnd);
mp_init();