MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / Sieve_remove_obj

Function Sieve_remove_obj

libCacheSim/cache/eviction/Sieve.c:234–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234static void Sieve_remove_obj(cache_t *cache, cache_obj_t *obj_to_remove) {
235 DEBUG_ASSERT(obj_to_remove != NULL);
236 Sieve_params_t *params = cache->eviction_params;
237 if (obj_to_remove == params->pointer) {
238 params->pointer = obj_to_remove->queue.prev;
239 }
240 remove_obj_from_list(&params->q_head, &params->q_tail, obj_to_remove);
241 cache_remove_obj_base(cache, obj_to_remove, true);
242}
243
244/**
245 * @brief remove an object from the cache

Callers 1

Sieve_removeFunction · 0.85

Calls 2

remove_obj_from_listFunction · 0.85
cache_remove_obj_baseFunction · 0.85

Tested by

no test coverage detected