From d476e36a9042f7bf61259434ae80a937b4767360 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Thu, 19 Nov 2009 08:25:08 +0000 Subject: [PATCH] initialise LOCAL in system_malloc (obs from Jose Santos). --- C/alloc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/C/alloc.c b/C/alloc.c index 3d67b17d1..5af9fbdb5 100644 --- a/C/alloc.c +++ b/C/alloc.c @@ -253,6 +253,9 @@ static void InitHeap(void) { Yap_heap_regs = (struct various_codes *)calloc(1, sizeof(struct various_codes)); +#if defined(YAPOR) || defined(TABLING) + LOCAL = REMOTE; /* point to the first area */ +#endif /* YAPOR || TABLING */ } void