Skip to content

Commit 4bc6240

Browse files
committed
actually record hit offsets in linked list gathering artifact creation!
1 parent 36fadc3 commit 4bc6240

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/eval/eval_types.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2653,6 +2653,15 @@ e_list_gather_artifact_create(String8 key, B32 *cancel_signal, B32 *retry_out, U
26532653
chunk->count += 1;
26542654
total_count += 1;
26552655

2656+
//- rjf: record this offset in our hit-offset table
2657+
{
2658+
U64 hash = u64_hash_from_str8(str8_struct(&off));
2659+
U64 slot_idx = hash%hit_slots_count;
2660+
HitOffsetNode *n = push_array(scratch.arena, HitOffsetNode, 1);
2661+
n->off = off;
2662+
SLLStackPush(hit_slots[slot_idx], n);
2663+
}
2664+
26562665
//- rjf: read next offset, advance
26572666
B32 read_stale = 0;
26582667
B32 read_good = ctrl_process_memory_read(process, r1u64(off + member_element_off, off + member_size), &read_stale, &next_off, 0);

0 commit comments

Comments
 (0)