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
This commit is contained in:
vsc 2004-09-13 21:18:35 +00:00
parent e47679aa01
commit 6b43be23cf

View File

@ -886,6 +886,9 @@ growatomtable(void)
fprintf(Yap_stderr, "%% took %g sec\n", (double)growth_time/1000); 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); 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) { if (HeapTop + sizeof(YAP_SEG_SIZE) < HeapLim) {
/* make sure there is no heap overflow */ /* make sure there is no heap overflow */
int res; int res;
@ -896,6 +899,7 @@ growatomtable(void)
} else { } else {
return TRUE; return TRUE;
} }
#endif
} }