try to make sure we always have slots

This commit is contained in:
Vitor Santos Costa 2012-10-08 18:25:42 +01:00
parent 26b5173a33
commit a4acb6a806
2 changed files with 4 additions and 1 deletions

View File

@ -856,7 +856,10 @@ Yap_absmi(int inp)
BOp(Ystop, l);
SET_ASP(YREG, E_CB*sizeof(CELL));
/* make sure ASP is initialised */
Yap_StartSlots();
saveregs();
#if PUSH_REGS
restore_absmi_regs(old_regs);
#endif

View File

@ -2566,8 +2566,8 @@ YAP_RestartGoal(void)
LOCAL_PrologMode = UserCCallMode;
if (out == FALSE) {
/* cleanup */
Yap_CloseSlots( PASS_REGS1 );
Yap_trust_last();
Yap_CloseSlots( PASS_REGS1 );
LOCAL_AllowRestart = FALSE;
}
} else {