don't keep on growing gc threshold.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1224 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc 2005-01-05 05:22:40 +00:00
parent b7a44d3808
commit 4a3f7a2b2f

View File

@ -3556,8 +3556,10 @@ call_gc(UInt gc_lim, Int predarity, CELL *current_env, yamop *nextop)
gc_margin <<= GcCalls;
else {
/* next grow linearly */
gc_margin <<= 8;
gc_margin *= GcCalls;
/* don't do this: it forces the system to ask for ever more stack!!
gc_margin <<= 8;
gc_margin *= GcCalls;
*/
}
}
if (gc_margin < gc_lim)