demon: eliminate redundant access scopes

This commit is contained in:
Ryan Fleury committed 2026-08-07 10:17:01 -06:00
1 parent 5ed398a8b9
commit 7388b757d1
8 files changed
+123 -151

No files matched your search

+4 -7
View File
@@ -2476,14 +2476,11 @@ d_ctrl_thread__entry_point(void *p)
ProfScope("update thread register cache")
{
D_EntityArray threads = d_entity_array_from_kind(D_EntityKind_Thread);
X64_RegBlock *blocks = push_array(scratch.arena, X64_RegBlock, threads.count);
for EachIndex(idx, threads.count)
{
for EachIndex(idx, threads.count)
{
Temp scratch = scratch_begin(0, 0);
d_cached_reg_block_from_thread(scratch.arena, threads.v[idx]->handle);
scratch_end(scratch);
}
Temp scratch = scratch_begin(0, 0);
d_cached_reg_block_from_thread(scratch.arena, threads.v[idx]->handle);
scratch_end(scratch);
}
}