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

Function cbm_ts_malloc

internal/cbm/cbm.c:791–798  ·  view source on GitHub ↗

Same reasoning as the sqlite bindings: tree-sitter allocates its parse trees * through these, and they too skip the interposer. */

Source from the content-addressed store, hash-verified

789/* Same reasoning as the sqlite bindings: tree-sitter allocates its parse trees
790 * through these, and they too skip the interposer. */
791static void *cbm_ts_malloc(size_t n) {
792 void *block = mi_malloc(n);
793 if (block) {
794 cbm_mem_class_add_external(CBM_MEM_CLASS_TS_TREE, mi_usable_size(block));
795 }
796 BOUND_ALLOC(block, n, 0);
797 return block;
798}
799static void *cbm_ts_calloc(size_t count, size_t size) {
800 void *block = mi_calloc(count, size);
801 if (block) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected