mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 13:28:40 +00:00
fix lru eviction in async name match store
This commit is contained in:
+2
-2
@@ -1545,8 +1545,8 @@ di_match_store_begin(DI_MatchStore *store, DI_KeyArray keys)
|
|||||||
{
|
{
|
||||||
for(DI_MatchNameNode *node = store->last_lru_match_name, *prev = 0; node != 0; node = prev)
|
for(DI_MatchNameNode *node = store->last_lru_match_name, *prev = 0; node != 0; node = prev)
|
||||||
{
|
{
|
||||||
prev = node->prev;
|
prev = node->lru_prev;
|
||||||
if(node->last_gen_touched+64 < store->gen)
|
if(node->last_gen_touched+8 < store->gen)
|
||||||
{
|
{
|
||||||
node->alloc_gen += 1;
|
node->alloc_gen += 1;
|
||||||
U64 slot_idx = node->hash%store->match_name_slots_count;
|
U64 slot_idx = node->hash%store->match_name_slots_count;
|
||||||
|
|||||||
Reference in New Issue
Block a user