garbage collector got confused about attributed variables if it also
had to do heap expansion! git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1200 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
8437a80a1d
commit
55c4f87043
@ -3341,6 +3341,7 @@ do_gc(Int predarity, CELL *current_env, yamop *nextop)
|
|||||||
Yap_Error(OUT_OF_STACK_ERROR, TermNil, Yap_ErrorMessage);
|
Yap_Error(OUT_OF_STACK_ERROR, TermNil, Yap_ErrorMessage);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
max = (CELL *)Yap_ReadTimedVar(DelayedVars);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
max = NULL;
|
max = NULL;
|
||||||
@ -3402,6 +3403,7 @@ do_gc(Int predarity, CELL *current_env, yamop *nextop)
|
|||||||
}
|
}
|
||||||
current_env = (CELL *)*ASP;
|
current_env = (CELL *)*ASP;
|
||||||
ASP++;
|
ASP++;
|
||||||
|
max = (CELL *)Yap_ReadTimedVar(DelayedVars);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
time_start = Yap_cputime();
|
time_start = Yap_cputime();
|
||||||
@ -3420,6 +3422,7 @@ do_gc(Int predarity, CELL *current_env, yamop *nextop)
|
|||||||
bp = (char *)Yap_ExpandPreAllocCodeSpace(alloc_sz, NULL);
|
bp = (char *)Yap_ExpandPreAllocCodeSpace(alloc_sz, NULL);
|
||||||
current_env = (CELL *)*ASP;
|
current_env = (CELL *)*ASP;
|
||||||
ASP++;
|
ASP++;
|
||||||
|
max = (CELL *)Yap_ReadTimedVar(DelayedVars);
|
||||||
}
|
}
|
||||||
if (!bp)
|
if (!bp)
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user