Lines Matching refs:size

31 nxt_malloc(size_t size)  in nxt_malloc()  argument
35 p = malloc(size); in nxt_malloc()
38 nxt_log_debug(nxt_malloc_log(), "malloc(%uz): %p", size, p); in nxt_malloc()
42 "malloc(%uz) failed %E", size, nxt_errno); in nxt_malloc()
50 nxt_zalloc(size_t size) in nxt_zalloc() argument
54 p = nxt_malloc(size); in nxt_zalloc()
57 nxt_memzero(p, size); in nxt_zalloc()
65 nxt_realloc(void *p, size_t size) in nxt_realloc() argument
76 n = realloc(p, size); in nxt_realloc()
79 nxt_log_debug(nxt_malloc_log(), "realloc(%p, %uz): %p", ptr, size, n); in nxt_realloc()
84 ptr, size, nxt_errno); in nxt_realloc()
94 nxt_lvlhsh_alloc(void *data, size_t size) in nxt_lvlhsh_alloc() argument
96 return nxt_memalign(size, size); in nxt_lvlhsh_alloc()
129 nxt_memalign(size_t alignment, size_t size) in nxt_memalign() argument
134 err = posix_memalign(&p, alignment, size); in nxt_memalign()
138 alignment, size, p); in nxt_memalign()
144 alignment, size, err); in nxt_memalign()
153 nxt_memalign(size_t alignment, size_t size) in nxt_memalign() argument
157 p = memalign(alignment, size); in nxt_memalign()
161 alignment, size, p); in nxt_memalign()
167 alignment, size, nxt_errno); in nxt_memalign()
181 nxt_memalign(size_t alignment, size_t size) in nxt_memalign() argument
198 if (nxt_fast_path(size <= 2048)) { in nxt_memalign()
199 aligned_size = nxt_max(size, alignment); in nxt_memalign()
203 aligned_size = size; in nxt_memalign()
209 nxt_thread_log_debug("nxt_memalign(%uz, %uz): %p", alignment, size, p); in nxt_memalign()
213 "malloc(%uz) failed %E", size, nxt_errno); in nxt_memalign()
221 alignment, size, err); in nxt_memalign()