From 6b43be23cfaebee06fd5e1a038464eecf4decd72 Mon Sep 17 00:00:00 2001 From: vsc Date: Mon, 13 Sep 2004 21:18:35 +0000 Subject: [PATCH] growatomtable should not test for HeapTop if using standard malloc. git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1134 b08c6af1-5177-4d33-ba66-4b1c6b8b522a --- C/grow.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/C/grow.c b/C/grow.c index 2fca41a16..bb790f883 100644 --- a/C/grow.c +++ b/C/grow.c @@ -886,6 +886,9 @@ growatomtable(void) fprintf(Yap_stderr, "%% took %g sec\n", (double)growth_time/1000); fprintf(Yap_stderr, "%% Total of %g sec expanding atom table \n", (double)total_atom_table_overflow_time/1000); } +#if USE_SYSTEM_MALLOC + return TRUE; +#else if (HeapTop + sizeof(YAP_SEG_SIZE) < HeapLim) { /* make sure there is no heap overflow */ int res; @@ -896,6 +899,7 @@ growatomtable(void) } else { return TRUE; } +#endif }