make sure to save absmi registers before longjmp.
This commit is contained in:
3
C/exec.c
3
C/exec.c
@@ -1473,6 +1473,9 @@ JumpToEnv(Term t USES_REGS) {
|
||||
/* just keep the throwed object away, we don't need to care about it */
|
||||
if (!(LOCAL_BallTerm = Yap_StoreTermInDB(t, 0))) {
|
||||
/* fat chance */
|
||||
#if PUSH_REGS
|
||||
restore_absmi_regs(&Yap_standard_regs);
|
||||
#endif
|
||||
siglongjmp(LOCAL_RestartEnv,1);
|
||||
}
|
||||
/* careful, previous step may have caused a stack shift,
|
||||
|
Reference in New Issue
Block a user