• Home
  • Raw
  • Download

Lines Matching refs:tsd_tsdn

216 		malloc_mutex_lock(tsd_tsdn(tsd), tctx->tdata->lock);  in rb_gen()
218 if (prof_tctx_should_destroy(tsd_tsdn(tsd), tctx)) in rb_gen()
221 malloc_mutex_unlock(tsd_tsdn(tsd), tctx->tdata->lock); in rb_gen()
247 malloc_mutex_lock(tsd_tsdn(tsd), tctx->tdata->lock); in prof_free_sampled_object()
253 if (prof_tctx_should_destroy(tsd_tsdn(tsd), tctx)) in prof_free_sampled_object()
256 malloc_mutex_unlock(tsd_tsdn(tsd), tctx->tdata->lock); in prof_free_sampled_object()
281 malloc_mutex_lock(tsd_tsdn(tsd), &bt2gctx_mtx); in prof_enter()
291 malloc_mutex_unlock(tsd_tsdn(tsd), &bt2gctx_mtx); in prof_leave()
304 prof_idump(tsd_tsdn(tsd)); in prof_leave()
306 prof_gdump(tsd_tsdn(tsd)); in prof_leave()
590 malloc_mutex_lock(tsd_tsdn(tsd), gctx->lock); in prof_gctx_try_destroy()
598 malloc_mutex_unlock(tsd_tsdn(tsd), gctx->lock); in prof_gctx_try_destroy()
599 idalloctm(tsd_tsdn(tsd), gctx, NULL, true, true); in prof_gctx_try_destroy()
606 malloc_mutex_unlock(tsd_tsdn(tsd), gctx->lock); in prof_gctx_try_destroy()
646 malloc_mutex_assert_owner(tsd_tsdn(tsd), tctx->tdata->lock); in prof_tctx_destroy()
655 destroy_tdata = prof_tdata_should_destroy(tsd_tsdn(tsd), tdata, false); in prof_tctx_destroy()
656 malloc_mutex_unlock(tsd_tsdn(tsd), tdata->lock); in prof_tctx_destroy()
658 malloc_mutex_lock(tsd_tsdn(tsd), gctx->lock); in prof_tctx_destroy()
698 malloc_mutex_unlock(tsd_tsdn(tsd), gctx->lock); in prof_tctx_destroy()
704 malloc_mutex_assert_not_owner(tsd_tsdn(tsd), tctx->tdata->lock); in prof_tctx_destroy()
710 idalloctm(tsd_tsdn(tsd), tctx, NULL, true, true); in prof_tctx_destroy()
730 gctx.p = prof_gctx_create(tsd_tsdn(tsd), bt); in prof_lookup_global()
739 idalloctm(tsd_tsdn(tsd), gctx.v, NULL, true, true); in prof_lookup_global()
748 malloc_mutex_lock(tsd_tsdn(tsd), gctx.p->lock); in prof_lookup_global()
750 malloc_mutex_unlock(tsd_tsdn(tsd), gctx.p->lock); in prof_lookup_global()
777 malloc_mutex_lock(tsd_tsdn(tsd), tdata->lock); in prof_lookup()
781 malloc_mutex_unlock(tsd_tsdn(tsd), tdata->lock); in prof_lookup()
796 ret.v = iallocztm(tsd_tsdn(tsd), sizeof(prof_tctx_t), in prof_lookup()
812 malloc_mutex_lock(tsd_tsdn(tsd), tdata->lock); in prof_lookup()
814 malloc_mutex_unlock(tsd_tsdn(tsd), tdata->lock); in prof_lookup()
818 idalloctm(tsd_tsdn(tsd), ret.v, NULL, true, true); in prof_lookup()
821 malloc_mutex_lock(tsd_tsdn(tsd), gctx->lock); in prof_lookup()
825 malloc_mutex_unlock(tsd_tsdn(tsd), gctx->lock); in prof_lookup()
925 malloc_mutex_lock(tsd_tsdn(tsd), &bt2gctx_mtx); in prof_bt_count()
927 malloc_mutex_unlock(tsd_tsdn(tsd), &bt2gctx_mtx); in prof_bt_count()
1225 malloc_mutex_lock(tsd_tsdn(tsd), gctx->lock); in prof_gctx_finish()
1234 (void *)tsd_tsdn(tsd)); in prof_gctx_finish()
1240 idalloctm(tsd_tsdn(tsd), to_destroy, in prof_gctx_finish()
1249 malloc_mutex_unlock(tsd_tsdn(tsd), gctx->lock); in prof_gctx_finish()
1252 malloc_mutex_unlock(tsd_tsdn(tsd), gctx->lock); in prof_gctx_finish()
1564 malloc_mutex_lock(tsd_tsdn(tsd), &prof_dump_mtx); in prof_dump()
1573 prof_dump_gctx_prep(tsd_tsdn(tsd), gctx.p, &gctxs); in prof_dump()
1579 prof_tdata_merge_iter_arg.tsdn = tsd_tsdn(tsd); in prof_dump()
1581 malloc_mutex_lock(tsd_tsdn(tsd), &tdatas_mtx); in prof_dump()
1584 malloc_mutex_unlock(tsd_tsdn(tsd), &tdatas_mtx); in prof_dump()
1587 prof_gctx_merge_iter_arg.tsdn = tsd_tsdn(tsd); in prof_dump()
1599 if (prof_dump_header(tsd_tsdn(tsd), propagate_err, in prof_dump()
1604 prof_gctx_dump_iter_arg.tsdn = tsd_tsdn(tsd); in prof_dump()
1618 malloc_mutex_unlock(tsd_tsdn(tsd), &prof_dump_mtx); in prof_dump()
1629 malloc_mutex_unlock(tsd_tsdn(tsd), &prof_dump_mtx); in prof_dump()
1669 malloc_mutex_lock(tsd_tsdn(tsd), &prof_dump_seq_mtx); in prof_fdump()
1671 malloc_mutex_unlock(tsd_tsdn(tsd), &prof_dump_seq_mtx); in prof_fdump()
1696 malloc_mutex_lock(tsd_tsdn(tsd), &prof_dump_seq_mtx); in prof_idump()
1699 malloc_mutex_unlock(tsd_tsdn(tsd), &prof_dump_seq_mtx); in prof_idump()
1718 malloc_mutex_lock(tsd_tsdn(tsd), &prof_dump_seq_mtx); in prof_mdump()
1721 malloc_mutex_unlock(tsd_tsdn(tsd), &prof_dump_seq_mtx); in prof_mdump()
1801 tdata = (prof_tdata_t *)iallocztm(tsd_tsdn(tsd), sizeof(prof_tdata_t), in prof_tdata_init_impl()
1817 idalloctm(tsd_tsdn(tsd), tdata, NULL, true, true); in prof_tdata_init_impl()
1831 malloc_mutex_lock(tsd_tsdn(tsd), &tdatas_mtx); in prof_tdata_init_impl()
1833 malloc_mutex_unlock(tsd_tsdn(tsd), &tdatas_mtx); in prof_tdata_init_impl()
1842 return (prof_tdata_init_impl(tsd, prof_thr_uid_alloc(tsd_tsdn(tsd)), 0, in prof_tdata_init()
1843 NULL, prof_thread_active_init_get(tsd_tsdn(tsd)))); in prof_tdata_init()
1872 malloc_mutex_assert_owner(tsd_tsdn(tsd), &tdatas_mtx); in prof_tdata_destroy_locked()
1879 idalloctm(tsd_tsdn(tsd), tdata->thread_name, NULL, true, true); in prof_tdata_destroy_locked()
1881 idalloctm(tsd_tsdn(tsd), tdata, NULL, true, true); in prof_tdata_destroy_locked()
1888 malloc_mutex_lock(tsd_tsdn(tsd), &tdatas_mtx); in prof_tdata_destroy()
1890 malloc_mutex_unlock(tsd_tsdn(tsd), &tdatas_mtx); in prof_tdata_destroy()
1898 malloc_mutex_lock(tsd_tsdn(tsd), tdata->lock); in prof_tdata_detach()
1900 destroy_tdata = prof_tdata_should_destroy(tsd_tsdn(tsd), tdata, in prof_tdata_detach()
1911 malloc_mutex_unlock(tsd_tsdn(tsd), tdata->lock); in prof_tdata_detach()
1922 prof_thread_name_alloc(tsd_tsdn(tsd), tdata->thread_name) : NULL; in prof_tdata_reinit()
1962 malloc_mutex_lock(tsd_tsdn(tsd), &prof_dump_mtx); in prof_reset()
1963 malloc_mutex_lock(tsd_tsdn(tsd), &tdatas_mtx); in prof_reset()
1978 malloc_mutex_unlock(tsd_tsdn(tsd), &tdatas_mtx); in prof_reset()
1979 malloc_mutex_unlock(tsd_tsdn(tsd), &prof_dump_mtx); in prof_reset()
2070 s = prof_thread_name_alloc(tsd_tsdn(tsd), thread_name); in prof_thread_name_set()
2075 idalloctm(tsd_tsdn(tsd), tdata->thread_name, NULL, true, true); in prof_thread_name_set()
2246 gctx_locks = (malloc_mutex_t *)base_alloc(tsd_tsdn(tsd), in prof_boot2()
2256 tdata_locks = (malloc_mutex_t *)base_alloc(tsd_tsdn(tsd), in prof_boot2()