static void record_btrace_frame_dealloc_cache (struct frame_info *self, void *this_cache) { struct btrace_frame_cache *cache; void **slot; cache = this_cache; slot = htab_find_slot (bfcache, cache, NO_INSERT); gdb_assert (slot != NULL); htab_remove_elt (bfcache, cache); }
static void cache_unref (struct tailcall_cache *cache) { gdb_assert (cache->refc > 0); if (!--cache->refc) { gdb_assert (htab_find_slot (cache_htab, cache, NO_INSERT) != NULL); htab_remove_elt (cache_htab, cache); xfree (cache->chain); xfree (cache); } }