From 79f18ad09e4ea98484847bdd78c84b04c899f1f4 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Mon, 27 Oct 2025 21:39:29 -0500 Subject: [PATCH] node.cpp --- libfuse/lib/node.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libfuse/lib/node.cpp b/libfuse/lib/node.cpp index 380e3ae8..54ba290d 100644 --- a/libfuse/lib/node.cpp +++ b/libfuse/lib/node.cpp @@ -1,7 +1,7 @@ #include "node.hpp" #include -#include +#include #include #include @@ -11,12 +11,18 @@ struct stack_t stack_t *next; }; +struct StackPair +{ + stack_t &stack; + bool &should_gc; +}; + thread_local static stack_t *g_stack = NULL; thread_local bool g_should_gc = false; thread_local bool g_initialized = false; static std::mutex g_mutex; -static std::unordered_map g_all_stacks; +static std:: g_all_stacks; node_t* node_alloc()