Lines Matching refs:p
33 void *p; in nxt_malloc() local
35 p = malloc(size); in nxt_malloc()
37 if (nxt_fast_path(p != NULL)) { in nxt_malloc()
38 nxt_log_debug(nxt_malloc_log(), "malloc(%uz): %p", size, p); in nxt_malloc()
45 return p; in nxt_malloc()
52 void *p; in nxt_zalloc() local
54 p = nxt_malloc(size); in nxt_zalloc()
56 if (nxt_fast_path(p != NULL)) { in nxt_zalloc()
57 nxt_memzero(p, size); in nxt_zalloc()
60 return p; in nxt_zalloc()
65 nxt_realloc(void *p, size_t size) in nxt_realloc() argument
74 ptr = (uintptr_t) p; in nxt_realloc()
76 n = realloc(p, size); in nxt_realloc()
101 nxt_lvlhsh_free(void *data, void *p) in nxt_lvlhsh_free() argument
103 nxt_free(p); in nxt_lvlhsh_free()
110 nxt_free(void *p) in nxt_free() argument
112 nxt_log_debug(nxt_malloc_log(), "free(%p)", p); in nxt_free()
114 free(p); in nxt_free()
131 void *p; in nxt_memalign() local
134 err = posix_memalign(&p, alignment, size); in nxt_memalign()
138 alignment, size, p); in nxt_memalign()
139 return p; in nxt_memalign()
155 void *p; in nxt_memalign() local
157 p = memalign(alignment, size); in nxt_memalign()
159 if (nxt_fast_path(p != NULL)) { in nxt_memalign()
161 alignment, size, p); in nxt_memalign()
162 return p; in nxt_memalign()
184 u_char *p; in nxt_memalign() local
206 p = malloc(aligned_size); in nxt_memalign()
208 if (nxt_fast_path(p != NULL)) { in nxt_memalign()
209 nxt_thread_log_debug("nxt_memalign(%uz, %uz): %p", alignment, size, p); in nxt_memalign()
216 return p; in nxt_memalign()