make sure to recover stack before copying exception term.
This commit is contained in:
parent
3ae6f583ec
commit
b4ff9b492a
4
C/exec.c
4
C/exec.c
@ -1620,10 +1620,12 @@ JumpToEnv(Term t) {
|
||||
B->cp_env = (CELL *)env[E_E];
|
||||
B->cp_ap = NEXTOP(PredHandleThrow->CodeOfPred,l);
|
||||
/* can recover Heap thanks to copy term :-( */
|
||||
B->cp_h = H;
|
||||
/* B->cp_h = H; */
|
||||
/* I could backtrack here, but it is easier to leave the unwinding
|
||||
to the emulator */
|
||||
P = (yamop *)FAILCODE;
|
||||
/* try to recover space */
|
||||
H = B->cp_h;
|
||||
t = clean_trail(t, dbt, B->cp_a1);
|
||||
B->cp_a3 = t;
|
||||
if (first_func != NULL) {
|
||||
|
Reference in New Issue
Block a user