| 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) { |
| 802 | cbm_mem_class_add_external(CBM_MEM_CLASS_TS_TREE, mi_usable_size(block)); |
| 803 | } |
| 804 | BOUND_ALLOC(block, count * size, CBM_MEMEV_ZEROED); |
| 805 | return block; |
| 806 | } |
| 807 | static void *cbm_ts_realloc(void *p, size_t n) { |
| 808 | size_t old_size = p ? mi_usable_size(p) : 0; |
| 809 | CBM_MEMEV_BACKING(1); |
nothing calls this directly
no test coverage detected