• Home
  • Raw
  • Download

Lines Matching refs:tsdn

438 arena_init_locked(tsdn_t *tsdn, unsigned ind)  in arena_init_locked()  argument
452 arena = arena_get(tsdn, ind, false); in arena_init_locked()
459 arena = arena_new(tsdn, ind); in arena_init_locked()
465 arena_init(tsdn_t *tsdn, unsigned ind) in arena_init() argument
469 malloc_mutex_lock(tsdn, &arenas_lock); in arena_init()
470 arena = arena_init_locked(tsdn, ind); in arena_init()
471 malloc_mutex_unlock(tsdn, &arenas_lock); in arena_init()
751 tsdn_t *tsdn; in stats_print_atexit() local
754 tsdn = tsdn_fetch(); in stats_print_atexit()
764 arena_t *arena = arena_get(tsdn, i, false); in stats_print_atexit()
774 malloc_mutex_lock(tsdn, &arena->lock); in stats_print_atexit()
776 tcache_stats_merge(tsdn, tcache, arena); in stats_print_atexit()
778 malloc_mutex_unlock(tsdn, &arena->lock); in stats_print_atexit()
1435 malloc_init_hard_finish(tsdn_t *tsdn) argument
1471 arenas = (arena_t **)base_alloc(tsdn, sizeof(arena_t *) *
1583 ialloc_body(size_t size, bool zero, tsdn_t **tsdn, size_t *usize, argument
1590 *tsdn = NULL;
1595 *tsdn = tsd_tsdn(tsd);
1615 ialloc_post_check(void *ret, tsdn_t *tsdn, size_t usize, const char *func, argument
1619 assert(!tsdn_null(tsdn) || ret == NULL);
1631 assert(usize == isalloc(tsdn, ret, config_prof));
1632 *tsd_thread_allocatedp_get(tsdn_tsd(tsdn)) += usize;
1634 witness_assert_lockless(tsdn);
1643 tsdn_t *tsdn; local
1650 ret = ialloc_body(size, false, &tsdn, &usize, false);
1651 ialloc_post_check(ret, tsdn, usize, "malloc", true, false);
1653 ret = ialloc_body(size, false, &tsdn, &usize, true);
1654 ialloc_post_check(ret, tsdn, usize, "malloc", true, true);
1656 JEMALLOC_VALGRIND_MALLOC(ret != NULL, tsdn, ret, usize, false);
1807 tsdn_t *tsdn; local
1827 ret = ialloc_body(num_size, true, &tsdn, &usize, false);
1828 ialloc_post_check(ret, tsdn, usize, "calloc", true, false);
1830 ret = ialloc_body(num_size, true, &tsdn, &usize, true);
1831 ialloc_post_check(ret, tsdn, usize, "calloc", true, true);
1833 JEMALLOC_VALGRIND_MALLOC(ret != NULL, tsdn, ret, usize, true);
1937 tsdn_t *tsdn JEMALLOC_CC_SILENCE_INIT(NULL);
1980 tsdn = tsd_tsdn(tsd);
1984 ret = ialloc_body(size, false, &tsdn, &usize, false);
1986 ret = ialloc_body(size, false, &tsdn, &usize, true);
1987 assert(!tsdn_null(tsdn) || ret == NULL);
2001 assert(usize == isalloc(tsdn, ret, config_prof));
2002 tsd = tsdn_tsd(tsdn);
2007 JEMALLOC_VALGRIND_REALLOC(maybe, tsdn, ret, usize, maybe, ptr,
2009 witness_assert_lockless(tsdn);
2154 imallocx_flags(tsdn_t *tsdn, size_t usize, size_t alignment, bool zero, argument
2160 return (ipalloct(tsdn, usize, alignment, zero, tcache, arena));
2163 return (iallocztm(tsdn, usize, ind, zero, tcache, false, arena,
2168 imallocx_prof_sample(tsdn_t *tsdn, size_t usize, size_t alignment, bool zero, argument
2176 p = imallocx_flags(tsdn, LARGE_MINCLASS, alignment, zero,
2180 arena_prof_promoted(tsdn, p, usize);
2182 p = imallocx_flags(tsdn, usize, alignment, zero, tcache, arena,
2242 imallocx_body(size_t size, int flags, tsdn_t **tsdn, size_t *usize, argument
2248 *tsdn = NULL;
2253 *tsdn = tsd_tsdn(tsd);
2285 tsdn_t *tsdn; local
2292 p = imallocx_body(size, flags, &tsdn, &usize, false);
2293 ialloc_post_check(p, tsdn, usize, "mallocx", false, false);
2295 p = imallocx_body(size, flags, &tsdn, &usize, true);
2296 ialloc_post_check(p, tsdn, usize, "mallocx", false, true);
2298 JEMALLOC_VALGRIND_MALLOC(p != NULL, tsdn, p, usize,
2449 ixallocx_helper(tsdn_t *tsdn, void *ptr, size_t old_usize, size_t size, argument
2454 if (ixalloc(tsdn, ptr, old_usize, size, extra, alignment, zero))
2456 usize = isalloc(tsdn, ptr, config_prof);
2462 ixallocx_prof_sample(tsdn_t *tsdn, void *ptr, size_t old_usize, size_t size, argument
2469 usize = ixallocx_helper(tsdn, ptr, old_usize, size, extra, alignment,
2590 tsdn_t *tsdn; local
2595 tsdn = tsdn_fetch();
2596 witness_assert_lockless(tsdn);
2599 usize = ivsalloc(tsdn, ptr, config_prof);
2601 usize = isalloc(tsdn, ptr, config_prof);
2603 witness_assert_lockless(tsdn);
2635 inallocx(tsdn_t *tsdn, size_t size, int flags) argument
2639 witness_assert_lockless(tsdn);
2645 witness_assert_lockless(tsdn);
2684 tsdn_t *tsdn; local
2691 tsdn = tsdn_fetch();
2692 witness_assert_lockless(tsdn);
2694 usize = inallocx(tsdn, size, flags);
2698 witness_assert_lockless(tsdn);
2723 tsdn_t *tsdn; local
2728 tsdn = tsdn_fetch();
2729 witness_assert_lockless(tsdn);
2730 ret = ctl_nametomib(tsdn, name, mibp, miblenp);
2731 witness_assert_lockless(tsdn);
2756 tsdn_t *tsdn; local
2758 tsdn = tsdn_fetch();
2759 witness_assert_lockless(tsdn);
2761 witness_assert_lockless(tsdn);
2768 tsdn_t *tsdn; local
2773 tsdn = tsdn_fetch();
2774 witness_assert_lockless(tsdn);
2777 ret = ivsalloc(tsdn, ptr, config_prof);
2779 ret = (ptr == NULL) ? 0 : isalloc(tsdn, ptr, config_prof);
2781 witness_assert_lockless(tsdn);