[Gc] Re: Weak hash tables and cycles
ludo at gnu.org
Tue Nov 4 02:39:54 PST 2008
Ivan Maidanski <ivmai at mail.ru> writes:
> ludo at gnu.org (Ludovic CourtХs) wrote:
>> This is not necessarily the desired behavior when V is the only
>> reference to K.
>> Under Guile's current GC, which is "weak hash table aware", K becomes
>> unreachable when V is the only reference to it. To achieve this, the GC
>> marks values of weak-key hash tables only once it has determined which
>> keys are reachable.
> Then just make V->K reference disappearing.
The V->K reference is potentially created at the application level.
More information about the Gc