GNU bug report logs -
#24695
impossible to use weak hash tables inside gc hooks
Previous Next
Full log
Message #8 received at 24695 <at> debbugs.gnu.org (full text, mbox):
On Fri 14 Oct 2016 20:54, Stefan Israelsson Tampe <stefan.itampe <at> gmail.com> writes:
> For more advanced gc concepts it would be nice to keep a set a objects
> in a weak key hash table and at gc loop over the alive ones the
> various gc hooks that is available for the c
> coder.
>
> The problem is that current guile data structure would hang on folding
> because inside the guile weak folder gc is assumed to be
> prevented. Not sure what to do here. This might be a
> feature request or a bug report dependning on how you view it.
What does "at GC" mean? After GC? Before GC is a pretty tense
situation as you can't allocate memory. Also I suspect you could do
this with a weak vector (or other structure with disappearing links) and
a before_gc C hook. WDYT?
I am tempted to just close this one as out of scope for Guile :)
Andy
This bug report was last modified 8 years and 106 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.