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:
5
C/grow.c
5
C/grow.c
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user