Hi Mikael,
On Tue 15 Apr 2008 00:16, "Mikael Djurfeldt" <[EMAIL PROTECTED]> writes:
> 2008/4/14, Andy Wingo <[EMAIL PROTECTED]>:
>> Regarding memory consumption. Currently, structs are double-cells: one
>> word for the vtable, one for the data, one empty, and one for the
>> "STRUCT_GC_CHAIN", used (please correct me) during GC to ensure that
>> structs are freed before their vtables.
>
> I wash my hands. :-) When I left, structs where two words.
commit 08c880a36746289330f3722522960ea21fe4ddc8
Author: Mikael Djurfeldt <[EMAIL PROTECTED]>
Date: Wed Aug 9 18:29:31 2000 +0000
* struct.c (scm_make_struct, scm_make_vtable_vtable): Structs
handles are now double cells; Initialize SCM_STRUCT_GC_CHAIN to
0.
(scm_struct_gc_init, scm_free_structs): New GC C hooks.
(scm_struct_prehistory): Install them.
It is natural for our memory to fade over this much time ;-)
But if at any point something sparks in your brain to figure out a way
around the GC chain, I'd certainly be interested. Otherwise we could put
that empty third word to good use.
Andy
--
http://wingolog.org/