don't trust that X+200 is > X
This commit is contained in:
parent
3a212944fb
commit
76d7a1d5e5
@ -3943,7 +3943,7 @@ do_gc(Int predarity, CELL *current_env, yamop *nextop USES_REGS)
|
|||||||
LOCAL_discard_trail_entries = 0;
|
LOCAL_discard_trail_entries = 0;
|
||||||
alloc_sz = (CELL *)LOCAL_TrailTop-(CELL*)LOCAL_GlobalBase;
|
alloc_sz = (CELL *)LOCAL_TrailTop-(CELL*)LOCAL_GlobalBase;
|
||||||
LOCAL_bp = Yap_PreAllocCodeSpace();
|
LOCAL_bp = Yap_PreAllocCodeSpace();
|
||||||
while (LOCAL_bp+alloc_sz > (char *)AuxSp) {
|
while (IN_BETWEEN(LOCAL_bp, AuxSp, LOCAL_bp+alloc_sz)) {
|
||||||
/* not enough space */
|
/* not enough space */
|
||||||
*--ASP = (CELL)current_env;
|
*--ASP = (CELL)current_env;
|
||||||
LOCAL_bp = (char *)Yap_ExpandPreAllocCodeSpace(alloc_sz, NULL, TRUE);
|
LOCAL_bp = (char *)Yap_ExpandPreAllocCodeSpace(alloc_sz, NULL, TRUE);
|
||||||
|
Reference in New Issue
Block a user