26 #ifdef WITH_MEM_VALGRIND
27 # include "valgrind/memcheck.h"
29 # define VALGRIND_CREATE_MEMPOOL(pool, rzB, is_zeroed) UNUSED_VARS(pool, rzB, is_zeroed)
30 # define VALGRIND_DESTROY_MEMPOOL(pool) UNUSED_VARS(pool)
31 # define VALGRIND_MEMPOOL_ALLOC(pool, addr, size) UNUSED_VARS(pool, addr, size)
32 # define VALGRIND_MOVE_MEMPOOL(pool_a, pool_b) UNUSED_VARS(pool_a, pool_b)
104 #define PADUP(num, amt) (((num) + ((amt)-1)) & ~((amt)-1))
191 mb_src = ma_src->
bufs;
192 while (mb_src && mb_src->
next) {
193 mb_src = mb_src->
next;
211 unsigned char *curbuf_prev;
224 curbuf_used = (size_t)(curbuf_prev - ma->
curbuf);
228 memset(ma->
curbuf, 0, curbuf_used);
#define BLI_asan_unpoison(addr, size)
#define BLI_asan_poison(addr, size)
static void memarena_curbuf_align(MemArena *ma)
void * BLI_memarena_calloc(MemArena *ma, size_t size)
void BLI_memarena_use_calloc(MemArena *ma)
#define VALGRIND_MEMPOOL_ALLOC(pool, addr, size)
MemArena * BLI_memarena_new(const size_t bufsize, const char *name)
void BLI_memarena_merge(MemArena *ma_dst, MemArena *ma_src)
void * BLI_memarena_alloc(MemArena *ma, size_t size)
#define VALGRIND_MOVE_MEMPOOL(pool_a, pool_b)
#define VALGRIND_CREATE_MEMPOOL(pool, rzB, is_zeroed)
void BLI_memarena_use_malloc(MemArena *ma)
static void memarena_buf_free_all(struct MemBuf *mb)
#define VALGRIND_DESTROY_MEMPOOL(pool)
void BLI_memarena_free(MemArena *ma)
void BLI_memarena_use_align(struct MemArena *ma, const size_t align)
void BLI_memarena_clear(MemArena *ma)
Strict compiler flags for areas of code we want to ensure don't do conversions without us knowing abo...
Read Guarded memory(de)allocation.
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
void(* MEM_freeN)(void *vmemh)
size_t(* MEM_allocN_len)(const void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
void *(* MEM_mallocN)(size_t len, const char *str)