From b932b22f15c8cf7cbf0cf2c9459868540aa0e89f Mon Sep 17 00:00:00 2001 From: Spencer Brower <6729162+sbrow@users.noreply.github.com> Date: Sun, 30 Aug 2026 16:01:25 -0400 Subject: [PATCH] chore: Added docs for how to deal with multi-threaded tree-sitter. --- GRAMMAR_CACHE_THREADING.md | 148 +++++++++++++++++++++++++++++++++++++ TODOS.md | 7 ++ treesitter/treesitter.odin | 26 +++++++ 3 files changed, 181 insertions(+) create mode 100644 GRAMMAR_CACHE_THREADING.md diff --git a/GRAMMAR_CACHE_THREADING.md b/GRAMMAR_CACHE_THREADING.md new file mode 100644 index 0000000..228912a --- /dev/null +++ b/GRAMMAR_CACHE_THREADING.md @@ -0,0 +1,148 @@ +# Grammar cache thread-safety & allocator lifetime + +Status: **investigation complete, fix deferred.** This document records what we +found and the direction we chose, so the next person doesn't have to rediscover +it. No behavior has been changed yet — only documentation comments were added to +`treesitter/treesitter.odin`. + +## How we got here + +While adding a feature to minify inline `