first pass at call stack cache, need a lot of clean up before this is working...

This commit is contained in:
Ryan Fleury
2025-05-14 21:44:09 -07:00
parent a84739e1c4
commit e5d6a49055
7 changed files with 132 additions and 69 deletions
+12 -5
View File
@@ -266,7 +266,9 @@ typedef struct CTRL_CallStack CTRL_CallStack;
struct CTRL_CallStack
{
CTRL_CallStackFrame *frames;
U64 count;
U64 frames_count;
CTRL_CallStackFrame **concrete_frames;
U64 concrete_frames_count;
};
////////////////////////////////
@@ -609,13 +611,18 @@ struct CTRL_CallStackCacheNode
{
CTRL_CallStackCacheNode *next;
CTRL_CallStackCacheNode *prev;
// rjf: key
CTRL_Handle thread;
U64 scope_touch_count;
U64 working_count;
Arena *arena;
U64 reg_gen;
U64 mem_gen;
CTRL_Unwind unwind;
// rjf: refcounts
U64 scope_touch_count;
U64 working_count;
// rjf: value
Arena *arena;
CTRL_CallStack call_stack;
};