GNU bug report logs -
#24695
impossible to use weak hash tables inside gc hooks
Previous Next
To reply to this bug, email your comments to 24695 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#24695
; Package
guile
.
(Fri, 14 Oct 2016 18:56:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stefan Israelsson Tampe <stefan.itampe <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Fri, 14 Oct 2016 18:56:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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.
Regards
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-guile <at> gnu.org
:
bug#24695
; Package
guile
.
(Wed, 01 Mar 2017 12:51:02 GMT)
Full text and
rfc822 format available.
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.