adjust new call stack artifact cache hooks to work gracefully with terminated threads/processes

This commit is contained in:
Ryan Fleury
2025-09-24 16:06:46 -07:00
parent 3dc3707b22
commit 10e8a10d9b
5 changed files with 17 additions and 18 deletions
+1 -3
View File
@@ -184,7 +184,7 @@ fs_artifact_create(String8 key, B32 *retry_out)
}
MemoryZeroStruct(node);
node->path = str8_copy(stripe->arena, path);
DLLPushBack(slot->first, slot->last, node);
SLLQueuePush(slot->first, slot->last, node);
}
node->last_modified_timestamp = pre_props.modified;
node->size = pre_props.size;
@@ -207,7 +207,6 @@ fs_artifact_destroy(AC_Artifact artifact)
{
C_Key key = {0};
MemoryCopyStruct(&key, &artifact);
key._padding_ = 0;
c_close_key(key);
}
@@ -247,7 +246,6 @@ fs_key_from_path_range(String8 path, Rng1U64 range, U64 endt_us)
//- rjf: map to artifact
AC_Artifact artifact = ac_artifact_from_key(access, key, fs_artifact_create, fs_artifact_destroy, endt_us, .gen = gen);
MemoryCopyStruct(&result, &artifact);
result._padding_ = 0;
}
access_close(access);
scratch_end(scratch);
-1
View File
@@ -11,7 +11,6 @@ typedef struct FS_Node FS_Node;
struct FS_Node
{
FS_Node *next;
FS_Node *prev;
String8 path;
U64 gen;
U64 last_modified_timestamp;