From f56b9ab426c4523299c666dbe962788e26f1ce09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Manuel=20de=20Morais=20Santos=20Costa?= Date: Fri, 29 Jan 2010 12:28:00 +0000 Subject: [PATCH] each OPTYap worker needs its own auxiliary stack! --- C/c_interface.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/C/c_interface.c b/C/c_interface.c index ee3efd5ee..f5f69a35f 100644 --- a/C/c_interface.c +++ b/C/c_interface.c @@ -2406,6 +2406,9 @@ YAP_Init(YAP_init_args *yap_init) */ Yap_InitYaamRegs(); #endif /* SBA */ +#ifndef THREADS + Yap_InitPreAllocCodeSpace(); +#endif /* slaves, waiting for work */ CurrentModule = USER_MODULE; P = GETWORK_FIRST_TIME;