MCPcopy Create free account
hub / github.com/ElementsProject/lightning / update_common_fix_invalid

Function update_common_fix_invalid

ccan/ccan/htable/htable.c:275–287  ·  view source on GitHub ↗

We tried to add this entry, but it looked invalid! We need to * let another pointer bit through mask */

Source from the content-addressed store, hash-verified

273/* We tried to add this entry, but it looked invalid! We need to
274 * let another pointer bit through mask */
275static COLD void update_common_fix_invalid(struct htable *ht, const void *p, size_t h)
276{
277 uintptr_t maskdiff;
278
279 assert(ht->elems != 0);
280
281 maskdiff = 0;
282 unset_another_common_bit(ht, &maskdiff, p);
283 fixup_table_common(ht, maskdiff);
284
285 /* Now won't recurse */
286 ht_add(ht, p, h);
287}
288
289/* This does not expand the hash table, that's up to caller. */
290static void ht_add(struct htable *ht, const void *new, size_t h)

Callers 1

ht_addFunction · 0.85

Calls 3

unset_another_common_bitFunction · 0.85
fixup_table_commonFunction · 0.85
ht_addFunction · 0.85

Tested by

no test coverage detected