-
- Downloads
py/runtime: mp_stack_ctrl_init() should be called immediately on startup.
Calling it from mp_init() is too late for some ports (like Unix), and leads to incomplete stack frame being captured, with following GC issues. So, now each port should call mp_stack_ctrl_init() on its own, ASAP after startup, and taking special precautions so it really was called before stack variables get allocated (because if such variable with a pointer is missed, it may lead to over-collecting (typical symptom is segfaulting)).
Showing
- py/runtime.c 0 additions, 1 deletionpy/runtime.c
- qemu-arm/main.c 1 addition, 0 deletionsqemu-arm/main.c
- qemu-arm/test_main.c 1 addition, 0 deletionsqemu-arm/test_main.c
- stmhal/main.c 1 addition, 0 deletionsstmhal/main.c
- teensy/main.c 1 addition, 0 deletionsteensy/main.c
- unix/main.c 12 additions, 0 deletionsunix/main.c
- unix/mpconfigport.h 4 additions, 0 deletionsunix/mpconfigport.h
- windows/mpconfigport.h 5 additions, 0 deletionswindows/mpconfigport.h
Loading
Please register or sign in to comment