Lines Matching refs:ptr
7 huge_node_get(const void *ptr) in huge_node_get() argument
11 node = chunk_lookup(ptr, true); in huge_node_get()
18 huge_node_set(const void *ptr, extent_node_t *node) in huge_node_set() argument
21 assert(extent_node_addr_get(node) == ptr); in huge_node_set()
23 return (chunk_register(ptr, node)); in huge_node_set()
27 huge_node_unset(const void *ptr, const extent_node_t *node) in huge_node_unset() argument
30 chunk_deregister(ptr, node); in huge_node_unset()
110 huge_dalloc_junk(void *ptr, size_t usize) in huge_dalloc_junk() argument
118 if (!config_munmap || (have_dss && chunk_in_dss(ptr))) in huge_dalloc_junk()
119 memset(ptr, 0x5a, usize); in huge_dalloc_junk()
129 huge_ralloc_no_move_similar(void *ptr, size_t oldsize, size_t usize_min, in huge_ralloc_no_move_similar() argument
146 node = huge_node_get(ptr); in huge_ralloc_no_move_similar()
154 memset((void *)((uintptr_t)ptr + usize), 0x5a, sdiff); in huge_ralloc_no_move_similar()
158 ptr, CHUNK_CEILING(oldsize), usize, sdiff); in huge_ralloc_no_move_similar()
171 arena_chunk_ralloc_huge_similar(arena, ptr, oldsize, usize); in huge_ralloc_no_move_similar()
177 memset((void *)((uintptr_t)ptr + oldsize), 0, in huge_ralloc_no_move_similar()
181 memset((void *)((uintptr_t)ptr + oldsize), 0xa5, usize - in huge_ralloc_no_move_similar()
188 huge_ralloc_no_move_shrink(void *ptr, size_t oldsize, size_t usize) in huge_ralloc_no_move_shrink() argument
196 node = huge_node_get(ptr); in huge_ralloc_no_move_shrink()
205 if (cdiff != 0 && chunk_hooks.split(ptr, CHUNK_CEILING(oldsize), in huge_ralloc_no_move_shrink()
212 huge_dalloc_junk((void *)((uintptr_t)ptr + usize), in huge_ralloc_no_move_shrink()
217 CHUNK_ADDR2BASE((uintptr_t)ptr + usize), in huge_ralloc_no_move_shrink()
219 CHUNK_ADDR2OFFSET((uintptr_t)ptr + usize), sdiff); in huge_ralloc_no_move_shrink()
232 arena_chunk_ralloc_huge_shrink(arena, ptr, oldsize, usize); in huge_ralloc_no_move_shrink()
238 huge_ralloc_no_move_expand(void *ptr, size_t oldsize, size_t usize, bool zero) { in huge_ralloc_no_move_expand() argument
243 node = huge_node_get(ptr); in huge_ralloc_no_move_expand()
255 if (arena_chunk_ralloc_huge_expand(arena, ptr, oldsize, usize, in huge_ralloc_no_move_expand()
266 memset((void *)((uintptr_t)ptr + oldsize), 0, in huge_ralloc_no_move_expand()
270 memset((void *)((uintptr_t)ptr + in huge_ralloc_no_move_expand()
275 memset((void *)((uintptr_t)ptr + oldsize), 0xa5, usize - in huge_ralloc_no_move_expand()
283 huge_ralloc_no_move(void *ptr, size_t oldsize, size_t usize_min, in huge_ralloc_no_move() argument
295 if (!huge_ralloc_no_move_expand(ptr, oldsize, usize_max, zero)) in huge_ralloc_no_move()
299 CHUNK_CEILING(oldsize) && huge_ralloc_no_move_expand(ptr, in huge_ralloc_no_move()
310 huge_ralloc_no_move_similar(ptr, oldsize, usize_min, usize_max, in huge_ralloc_no_move()
317 return (huge_ralloc_no_move_shrink(ptr, oldsize, usize_max)); in huge_ralloc_no_move()
332 huge_ralloc(tsd_t *tsd, arena_t *arena, void *ptr, size_t oldsize, size_t usize, in huge_ralloc() argument
339 if (!huge_ralloc_no_move(ptr, oldsize, usize, usize, zero)) in huge_ralloc()
340 return (ptr); in huge_ralloc()
353 memcpy(ret, ptr, copysize); in huge_ralloc()
354 isqalloc(tsd, ptr, oldsize, tcache); in huge_ralloc()
359 huge_dalloc(tsd_t *tsd, void *ptr, tcache_t *tcache) in huge_dalloc() argument
364 node = huge_node_get(ptr); in huge_dalloc()
366 huge_node_unset(ptr, node); in huge_dalloc()
379 huge_aalloc(const void *ptr) in huge_aalloc() argument
382 return (extent_node_arena_get(huge_node_get(ptr))); in huge_aalloc()
386 huge_salloc(const void *ptr) in huge_salloc() argument
392 node = huge_node_get(ptr); in huge_salloc()
402 huge_prof_tctx_get(const void *ptr) in huge_prof_tctx_get() argument
408 node = huge_node_get(ptr); in huge_prof_tctx_get()
418 huge_prof_tctx_set(const void *ptr, prof_tctx_t *tctx) in huge_prof_tctx_set() argument
423 node = huge_node_get(ptr); in huge_prof_tctx_set()
431 huge_prof_tctx_reset(const void *ptr) in huge_prof_tctx_reset() argument
434 huge_prof_tctx_set(ptr, (prof_tctx_t *)(uintptr_t)1U); in huge_prof_tctx_reset()