- slots should be considered as always live for gc.

- make sure slots do not die when they should be live, and vice-versa.
- improve a little on foreign_frame
This commit is contained in:
Vítor Santos Costa
2010-06-01 00:40:58 +01:00
parent 7e1692bdb0
commit 247d59f0ef
15 changed files with 146 additions and 76 deletions

View File

@@ -1955,6 +1955,7 @@ YAP_RestartGoal(void)
Yap_PrologMode = UserCCallMode;
if (out == FALSE) {
/* cleanup */
Yap_CloseSlots();
Yap_trust_last();
Yap_AllowRestart = FALSE;
}
@@ -2719,6 +2720,7 @@ YAP_Predicate(Atom a, UInt arity, Term m)
} else {
Functor f = Yap_MkFunctor(a, arity);
return((void *)RepPredProp(PredPropByFunc(f,m)));
fprintf(stderr,"here\n");
}
}