Jump and Throw need to store the term away, if they try to use arena

the term will hang in the stack (#152).
This commit is contained in:
Vitor Santos Costa
2009-12-02 21:59:41 +00:00
parent 8213d52af4
commit 06d30b9fc9
9 changed files with 61 additions and 14 deletions

View File

@@ -1199,6 +1199,7 @@ InitCodes(void)
Yap_heap_regs->wl.consultbase = Yap_heap_regs->wl.consultsp =
Yap_heap_regs->wl.consultlow + Yap_heap_regs->wl.consultcapacity;
#endif /* YAPOR */
Yap_heap_regs->wl.ball_term = NULL;
/* make sure no one else can use these two atoms */
CurrentModule = 0;