From 6c4cb8ab74ca04a8c8b07a9de106253725c02917 Mon Sep 17 00:00:00 2001 From: ricroc Date: Sat, 29 Apr 2006 15:54:56 +0000 Subject: [PATCH] restore startup when not defined YAP_MEMORY_ALLOC_SCHEME. git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1621 b08c6af1-5177-4d33-ba66-4b1c6b8b522a --- C/save.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/C/save.c b/C/save.c index dfe076556..a0dedbecf 100644 --- a/C/save.c +++ b/C/save.c @@ -471,14 +471,14 @@ save_heap(void) { int j; /* Then save the whole heap */ -#if defined(YAPOR) || defined(TABLING) && !defined(YAP_MEMORY_ALLOC_SCHEME) +#if (defined(YAPOR) || defined(TABLING)) && !defined(YAP_MEMORY_ALLOC_SCHEME) /* skip the local and global data structures */ j = Unsigned(&GLOBAL) - Unsigned(Yap_HeapBase); putout(j); mywrite(splfild, (char *) Yap_HeapBase, j); - j = Unsigned(HeapTop) - Unsigned(&HashChain); + j = Unsigned(HeapTop) - Unsigned(REMOTE+MAX_WORKERS); putout(j); - mywrite(splfild, (char *) &HashChain, j); + mywrite(splfild, (char *) &(REMOTE[MAX_WORKERS]), j); #else j = Unsigned(HeapTop) - Unsigned(Yap_HeapBase); /* store 10 more cells because of the memory manager */ @@ -913,7 +913,7 @@ CopyCode(void) j = get_cell(); if (Yap_ErrorMessage) return -1; - if (myread(splfild, (char *) &HashChain, j) < 0) + if (myread(splfild, (char *) &(REMOTE[MAX_WORKERS]), j) < 0) return -1; #else if (myread(splfild, (char *) Yap_HeapBase,