fix garbage collector and fix LeaveGoal

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1945 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2007-10-05 18:24:30 +00:00
parent a5406ccc02
commit 642b498728
8 changed files with 35 additions and 15 deletions

View File

@@ -1989,14 +1989,14 @@ Yap_InitYaamRegs(void)
/* for slots to work */
Yap_StartSlots();
GlobalArena = TermNil;
#if COROUTINING
h0var = MkVarTerm();
#if COROUTINING
DelayedVars = Yap_NewTimedVar(h0var);
WokenGoals = Yap_NewTimedVar(TermNil);
AttsMutableList = Yap_NewTimedVar(h0var);
GlobalDelayArena = TermNil;
#endif
GcGeneration = Yap_NewTimedVar(MkIntTerm(0));
GcGeneration = Yap_NewTimedVar(h0var);
GcCurrentPhase = 0L;
GcPhase = Yap_NewTimedVar(MkIntTerm(GcCurrentPhase));
#if defined(YAPOR) || defined(THREADS)