[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
committed by EmilieNumworks
parent cd4260494a
commit 95403c8a91

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();