mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-14 17:28:07 +00:00
do not call destroy on caches without a destroy hook :(
This commit is contained in:
@@ -423,7 +423,7 @@ ac_async_tick(void)
|
|||||||
if(str8_match(n->key, r->key, 0))
|
if(str8_match(n->key, r->key, 0))
|
||||||
{
|
{
|
||||||
// rjf: eliminate existing values, if any, if they do not match the current
|
// rjf: eliminate existing values, if any, if they do not match the current
|
||||||
if(!MemoryMatchStruct(&n->val, &val) && ins_atomic_u64_eval(&n->completion_count) > 0) for(;;)
|
if(cache->destroy != 0 && !MemoryMatchStruct(&n->val, &val) && ins_atomic_u64_eval(&n->completion_count) > 0) for(;;)
|
||||||
{
|
{
|
||||||
if(access_pt_is_expired(&n->access_pt, .time = 0, .update_idxs = 0))
|
if(access_pt_is_expired(&n->access_pt, .time = 0, .update_idxs = 0))
|
||||||
{
|
{
|
||||||
@@ -545,7 +545,7 @@ ac_async_tick(void)
|
|||||||
if(str8_match(n->key, r->key, 0))
|
if(str8_match(n->key, r->key, 0))
|
||||||
{
|
{
|
||||||
// rjf: eliminate existing values, if any, if they do not match the current
|
// rjf: eliminate existing values, if any, if they do not match the current
|
||||||
if(!MemoryMatchStruct(&n->val, &val) && ins_atomic_u64_eval(&n->completion_count) > 0) for(;;)
|
if(cache->destroy != 0 && !MemoryMatchStruct(&n->val, &val) && ins_atomic_u64_eval(&n->completion_count) > 0) for(;;)
|
||||||
{
|
{
|
||||||
if(access_pt_is_expired(&n->access_pt, .time = 0, .update_idxs = 0))
|
if(access_pt_is_expired(&n->access_pt, .time = 0, .update_idxs = 0))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user