adjust pre-emptive conversion heuristics; fix deadlock scenario in match work

This commit is contained in:
Ryan Fleury
2024-11-14 09:10:07 -08:00
parent 4c0ebc851c
commit fa4f9621b0
2 changed files with 9 additions and 10 deletions
+3 -1
View File
@@ -826,6 +826,7 @@ ASYNC_WORK_DEF(di_parse_work)
//
DI_Key key = {0};
di_u2p_dequeue_key(scratch.arena, &key);
ProfBegin("di_parse_work: %.*s", str8_varg(key.path));
String8 og_path = key.path;
U64 min_timestamp = key.min_timestamp;
@@ -1117,6 +1118,7 @@ ASYNC_WORK_DEF(di_parse_work)
scratch_end(scratch);
ProfEnd();
ProfEnd();
return 0;
}
@@ -1723,7 +1725,7 @@ ASYNC_WORK_DEF(di_match_work)
{
DI_Scope *di_scope = di_scope_open();
DI_Key key = params_keys.v[dbgi_idx];
RDI_Parsed *rdi = di_rdi_from_key(di_scope, &key, max_U64);
RDI_Parsed *rdi = di_rdi_from_key(di_scope, &key, os_now_microseconds()+1000);
for EachElement(name_map_kind_idx, name_map_kinds)
{
RDI_NameMap *name_map = rdi_element_from_name_idx(rdi, NameMaps, name_map_kinds[name_map_kind_idx]);