bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: possible gc/weak hash table bug


From: Ludovic Courtès
Subject: Re: possible gc/weak hash table bug
Date: Fri, 18 Mar 2011 12:51:03 +0100
User-agent: Gnus/5.110013 (No Gnus v0.13) Emacs/23.3 (gnu/linux)

Hi,

michaelawells <address@hidden> writes:

>>   size_t len = SCM_HASHTABLE_N_ITEMS (table);
>> 
>>   while (k--)
>>     {
>>       size_t removed;
>>       SCM alist = SCM_SIMPLE_VECTOR_REF (buckets, k);
>>       alist = scm_fixup_weak_alist (alist, &removed);  <<<**** FAILS HERE
>>       assert (removed <= len);

Andy, isn’t this assertion bogus since N_ITEMS is updated lazily and
thus may not correspond to the current number of items?

Thanks,
Ludo’.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]