-
Beta Was this translation helpful? Give feedback.
Answered by
ptitSeb
Sep 12, 2023
Replies: 1 comment 1 reply
-
This change would defeat the purpose of those jumpbuf. First thing to note, is that the jumpbuf is not initialized at every while loop. Only in rare occasion (check the "if" in front of it). |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ShanZeHu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This change would defeat the purpose of those jumpbuf.
First thing to note, is that the jumpbuf is not initialized at every while loop. Only in rare occasion (check the "if" in front of it).
Now, the purpose of this jumpbuff is to provide a "rollback" mecanism when a ssignal is restoring the execution to another address. That way, the execution stack on native side is a sane (because the signal might occur anywhere, and so maybe in some native function call).