make sure that condor version always grows trail!

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1137 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2004-09-14 03:30:06 +00:00
parent 7e9c32fd52
commit 70f9c1176d
2 changed files with 67 additions and 47 deletions

View File

@@ -845,7 +845,9 @@ growatomtable(void)
UNLOCK(SignalLock);
while ((ntb = (AtomHashEntry *)Yap_AllocCodeSpace(nsize*sizeof(AtomHashEntry))) == NULL) {
/* leave for next time */
#if !USE_SYSTEM_MALLOC
if (!do_growheap(FALSE, nsize*sizeof(AtomHashEntry), NULL))
#endif
return FALSE;
}
atom_table_overflows++;
@@ -1184,6 +1186,9 @@ static int do_growtrail(long size)
UInt start_growth_time = Yap_cputime(), growth_time;
int gc_verbose = Yap_is_gc_verbose();
/* at least 64K for trail */
if (size < 64*1024)
size = 64*1024;
/* adjust to a multiple of 256) */
size = AdjustPageSize(size);
trail_overflows++;