protect heapgc.c
This commit is contained in:
parent
a05bad3bf0
commit
b36e607cb4
@ -4130,9 +4130,11 @@ call_gc(UInt gc_lim, Int predarity, CELL *current_env, yamop *nextop USES_REGS)
|
|||||||
if (ASP - H < gc_margin/sizeof(CELL) ||
|
if (ASP - H < gc_margin/sizeof(CELL) ||
|
||||||
effectiveness < 20) {
|
effectiveness < 20) {
|
||||||
LeaveGCMode( PASS_REGS1 );
|
LeaveGCMode( PASS_REGS1 );
|
||||||
|
#ifdef YAPOR
|
||||||
if (gc_margin < 2*CalculateStackGap())
|
if (gc_margin < 2*CalculateStackGap())
|
||||||
gc_margin = 2*CalculateStackGap();
|
gc_margin = 2*CalculateStackGap();
|
||||||
return Yap_growstack(gc_margin);
|
return Yap_growstack(gc_margin);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* debug for(save_total=1; save_total<=N; ++save_total)
|
* debug for(save_total=1; save_total<=N; ++save_total)
|
||||||
|
Reference in New Issue
Block a user