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

Function update_common_fix_invalid

ccan/ccan/htable/htable.c:263–275  ·  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

261/* We tried to add this entry, but it looked invalid! We need to
262 * let another pointer bit through mask */
263static COLD void update_common_fix_invalid(struct htable *ht, const void *p, size_t h)
264{
265 uintptr_t maskdiff;
266
267 assert(ht->elems != 0);
268
269 maskdiff = 0;
270 unset_another_common_bit(ht, &maskdiff, p);
271 fixup_table_common(ht, maskdiff);
272
273 /* Now won't recurse */
274 ht_add(ht, p, h);
275}
276
277/* This does not expand the hash table, that's up to caller. */
278static 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