MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_reset_thread_parser

Function cbm_reset_thread_parser

internal/cbm/cbm.c:886–893  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884}
885
886void cbm_reset_thread_parser(void) {
887 // Release parser's internal slab-allocated subtrees (stack, cached token).
888 // Must be called BEFORE cbm_slab_reset_thread() to avoid corrupting
889 // live slab chunks that the parser still references.
890 if (tl_parser) {
891 ts_parser_reset(tl_parser);
892 }
893}
894
895enum { FIELD_CACHE_SLOTS = 512, FIELD_NAME_CACHED_MAX = 31 };
896typedef struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected