mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-29 17:13:20 -08:00
push purged item to the free list
This commit is contained in:
1 parent
ae89d8ea88
commit
ff1877dfa2
1 file changed
+1
@@ -334,6 +334,7 @@ hash_table_purge_item(HashTable *ht, U64 hash, BucketNode *node)
|
|||||||
{
|
{
|
||||||
U64 bucket_idx = hash % ht->cap;
|
U64 bucket_idx = hash % ht->cap;
|
||||||
DLLRemove(ht->buckets[bucket_idx].first, ht->buckets[bucket_idx].last, node);
|
DLLRemove(ht->buckets[bucket_idx].first, ht->buckets[bucket_idx].last, node);
|
||||||
|
SLLQueuePush(ht->free_buckets.first, ht->free_buckets.last, node);
|
||||||
ht->count -= 1;
|
ht->count -= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user