call the garbage collector properly.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@783 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
bca74cd190
commit
1709fbded4
@ -11897,7 +11897,7 @@ Yap_absmi(int inp)
|
|||||||
if (CFREG != CalculateStackGap())
|
if (CFREG != CalculateStackGap())
|
||||||
goto creep;
|
goto creep;
|
||||||
saveregs();
|
saveregs();
|
||||||
if (!Yap_gc(((PredEntry *)SREG)->ArityOfPE, YREG, NEXTOP(PREG, sla))) {
|
if (!Yap_gc(((PredEntry *)SREG)->ArityOfPE, ENV, NEXTOP(PREG, sla))) {
|
||||||
Yap_Error(OUT_OF_STACK_ERROR,TermNil,Yap_ErrorMessage);
|
Yap_Error(OUT_OF_STACK_ERROR,TermNil,Yap_ErrorMessage);
|
||||||
}
|
}
|
||||||
setregs();
|
setregs();
|
||||||
@ -12124,7 +12124,7 @@ Yap_absmi(int inp)
|
|||||||
if (ASP > (CELL *)B)
|
if (ASP > (CELL *)B)
|
||||||
ASP = (CELL *)B;
|
ASP = (CELL *)B;
|
||||||
saveregs();
|
saveregs();
|
||||||
if (!Yap_gc(((PredEntry *)SREG)->ArityOfPE, YREG, NEXTOP(PREG, sla))) {
|
if (!Yap_gc(((PredEntry *)SREG)->ArityOfPE, ENV, NEXTOP(PREG, sla))) {
|
||||||
Yap_Error(OUT_OF_STACK_ERROR,TermNil,Yap_ErrorMessage);
|
Yap_Error(OUT_OF_STACK_ERROR,TermNil,Yap_ErrorMessage);
|
||||||
}
|
}
|
||||||
setregs();
|
setregs();
|
||||||
|
Reference in New Issue
Block a user