further progress on new process memory cache; first pass at visualizing changed watch window rows, based on ctrl process memory cache history

This commit is contained in:
Ryan Fleury
2024-01-25 11:17:16 -08:00
parent 38b113f1d0
commit 168f66cc99
6 changed files with 87 additions and 26 deletions
+2 -2
View File
@@ -142,9 +142,9 @@ hs_submit_data(U128 key, Arena **data_arena, String8 data)
}
if(key_node)
{
if(key_node->hash_history_gen+1 >= ArrayCount(key_node->hash_history))
if(key_node->hash_history_gen >= ArrayCount(key_node->hash_history))
{
key_expired_hash = key_node->hash_history[(key_node->hash_history_gen-1)%ArrayCount(key_node->hash_history)];
key_expired_hash = key_node->hash_history[key_node->hash_history_gen%ArrayCount(key_node->hash_history)];
}
key_node->hash_history[key_node->hash_history_gen%ArrayCount(key_node->hash_history)] = hash;
key_node->hash_history_gen += 1;