Same reasoning as the sqlite bindings: tree-sitter allocates its parse trees * through these, and they too skip the interposer. */
| 789 | /* Same reasoning as the sqlite bindings: tree-sitter allocates its parse trees |
| 790 | * through these, and they too skip the interposer. */ |
| 791 | static 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 | } |
| 799 | static void *cbm_ts_calloc(size_t count, size_t size) { |
| 800 | void *block = mi_calloc(count, size); |
| 801 | if (block) { |
nothing calls this directly
no test coverage detected