don't follow as if code slots that point to the local stack.

This commit is contained in:
Vitor Santos Costa 2016-09-30 17:04:58 -05:00
parent 3f4fe6815f
commit ef38613229

View File

@ -1552,7 +1552,7 @@ mark_external_reference(CELL *ptr USES_REGS) {
#endif
mark_variable(ptr PASS_REGS);
POPSWAP_POINTER(old, ptr PASS_REGS);
} else {
} else if (ptr < H0 || ptr > (CELL*)LOCAL_TrailTop) {
MARK(ptr);
mark_code(ptr, next PASS_REGS);
}