don't do garbage collection while in ErrorMode
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@262 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -2036,7 +2036,12 @@ GetDBTerm(DBRef DBSP)
|
||||
pt = CellPtr(DBSP->Contents);
|
||||
NOf = DBSP->NOfCells;
|
||||
if (H+NOf > ASP-CalculateStackGap()) {
|
||||
return((Term)0);
|
||||
if (PrologMode & InErrorMode) {
|
||||
if (H+NOf > ASP)
|
||||
exit_yap( 1, "No Stack for Error Handling\n");
|
||||
} else {
|
||||
return((Term)0);
|
||||
}
|
||||
}
|
||||
HeapPtr = cpcells(HOld, pt, NOf);
|
||||
pt += HeapPtr - HOld;
|
||||
|
Reference in New Issue
Block a user