| 140 | * Currently implemented only for jemalloc. Used for online defragmentation. */ |
| 141 | #ifdef HAVE_DEFRAG |
| 142 | void *zmalloc_no_tcache(size_t size) { |
| 143 | ASSERT_NO_SIZE_OVERFLOW(size); |
| 144 | void *ptr = mallocx(size+PREFIX_SIZE, MALLOCX_TCACHE_NONE); |
| 145 | if (!ptr) zmalloc_oom_handler(size); |
| 146 | update_zmalloc_stat_alloc(zmalloc_size(ptr)); |
| 147 | return ptr; |
| 148 | } |
| 149 | |
| 150 | void zfree_no_tcache(void *ptr) { |
| 151 | if (ptr == NULL) return; |
no test coverage detected