This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Guile GC behaviour


-----BEGIN PGP SIGNED MESSAGE-----

Christian Lynbech <chl@tbit.dk> writes

   However, the allocation of new heap segments is kind of orthogonal to
   the gc process itself. The process goes something like this: when gc
   is finished it estimates the fraction of the heap cleared up. If this
   is too small, a new heap segment is allocated. 

Of what size?

In libguile/gc.c comments we read

 * SCM_INIT_HEAP_SIZE is the initial size of heap.  If this much heap is
 * allocated initially the heap will grow by half its current size
 * each subsequent time more heap is needed.

but the code is

#define SCM_EXPHEAP(scm_heap_size) (scm_heap_size*2)

So is it half or twice?


-----BEGIN PGP SIGNATURE-----
Version: 2.6.2i

iQB1AwUBN/HbneQ1b28mIGjxAQH2xAL/SEMEKRZrW1GSOkQI6SOh40cabvESnRH6
H8zD6nxm+IC/uDMo+ZwJSsKMsHaRBB0QX+e9WmruenEgRD9nSPIBZILKPQJzkjoB
Dl0o7mccZAhLcVjiDmgFNthhd/YXbx7K
=yrad
-----END PGP SIGNATURE-----

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]