[python] port: add a comment abouth how we use setjmp

This commit is contained in:
Émilie Feral
2020-01-31 15:47:04 +01:00
committed by Léa Saviot
parent 2318019d7b
commit 18b4514412

View File

@@ -176,6 +176,10 @@ void gc_collect(void) {
* regs is the also the last object on the stack so the stack is bound by
* &regs and python_stack_top. */
jmp_buf regs;
/* TODO: we use setjmp to get the registers values to look for python heap
* root. However, the 'setjmp' does not guarantee that it gets all registers
* values. We should check our setjmp implementation for the device and
* ensure that it also works for other platforms. */
setjmp(regs);
void **regs_ptr = (void**)&regs;