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)
106#define PADUP(num, amt) (((num) + ((amt)-1)) & ~((amt)-1))
164 memset(
ptr, 0, size);
194 while (mb_src->
next) {
195 mb_src = mb_src->
next;
223 const size_t curbuf_used = (size_t)(curbuf_prev - ma->
curbuf);
227 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_use_calloc(MemArena *ma)
#define VALGRIND_MEMPOOL_ALLOC(pool, addr, size)
void BLI_memarena_merge(MemArena *ma_dst, MemArena *ma_src)
void * BLI_memarena_calloc(MemArena *ma, size_t size)
MemArena * BLI_memarena_new(const size_t bufsize, const char *name)
#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)
void BLI_memarena_use_align(MemArena *ma, const size_t align)
#define VALGRIND_DESTROY_MEMPOOL(pool)
void BLI_memarena_free(MemArena *ma)
void * BLI_memarena_alloc(MemArena *ma, size_t size)
void BLI_memarena_clear(MemArena *ma)
Read Guarded memory(de)allocation.
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
draw_view push_constant(Type::INT, "radiance_src") .push_constant(Type capture_info_buf storage_buf(1, Qualifier::READ, "ObjectBounds", "bounds_buf[]") .push_constant(Type draw_view int
void *(* MEM_mallocN)(size_t len, const char *str)
size_t(* MEM_allocN_len)(const void *vmemh)
void MEM_freeN(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)