make sure we rebuild saved state stuff even if we do not actually enter top-level.

fix bug with some definitions being reset at load time.
This commit is contained in:
Vítor Santos Costa
2010-12-07 15:06:53 +00:00
parent 1deb6d2663
commit 21bbffceda
8 changed files with 56 additions and 12 deletions

View File

@@ -2647,6 +2647,9 @@ YAP_Init(YAP_init_args *yap_init)
else
Yap_AttsSize = 2048*sizeof(CELL);
if (restore_result == DO_ONLY_CODE) {
/* first, initialise the saved state */
Term t_goal = MkAtomTerm(AtomStartupSavedState);
YAP_RunGoalOnce(t_goal);
return YAP_BOOT_FROM_SAVED_CODE;
} else {
return YAP_BOOT_FROM_SAVED_STACKS;