Lines Matching refs:size
27 #define COMMON_MALLOC_MEMALIGN(alignment, size) \ argument
29 user_memalign(cur_thread(), StackTrace::GetCurrentPc(), alignment, size)
30 #define COMMON_MALLOC_MALLOC(size) \ argument
31 if (in_symbolizer()) return InternalAlloc(size); \
32 SCOPED_INTERCEPTOR_RAW(malloc, size); \
33 void *p = user_alloc(thr, pc, size)
34 #define COMMON_MALLOC_REALLOC(ptr, size) \ argument
35 if (in_symbolizer()) return InternalRealloc(ptr, size); \
36 SCOPED_INTERCEPTOR_RAW(realloc, ptr, size); \
37 void *p = user_realloc(thr, pc, ptr, size)
38 #define COMMON_MALLOC_CALLOC(count, size) \ argument
39 if (in_symbolizer()) return InternalCalloc(count, size); \
40 SCOPED_INTERCEPTOR_RAW(calloc, size, count); \
41 void *p = user_calloc(thr, pc, size, count)
42 #define COMMON_MALLOC_POSIX_MEMALIGN(memptr, alignment, size) \ argument
44 void *p = InternalAlloc(size, nullptr, alignment); \
49 SCOPED_INTERCEPTOR_RAW(posix_memalign, memptr, alignment, size); \
50 int res = user_posix_memalign(thr, pc, memptr, alignment, size);
51 #define COMMON_MALLOC_VALLOC(size) \ argument
53 return InternalAlloc(size, nullptr, GetPageSizeCached()); \
54 SCOPED_INTERCEPTOR_RAW(valloc, size); \
55 void *p = user_valloc(thr, pc, size)
60 #define COMMON_MALLOC_SIZE(ptr) uptr size = user_alloc_usable_size(ptr);