Lines Matching refs:lock
216 malloc_mutex_lock(tsd_tsdn(tsd), tctx->tdata->lock); in rb_gen()
221 malloc_mutex_unlock(tsd_tsdn(tsd), tctx->tdata->lock); in rb_gen()
231 malloc_mutex_lock(tsdn, tctx->tdata->lock); in prof_malloc_sample_object()
239 malloc_mutex_unlock(tsdn, tctx->tdata->lock); in prof_malloc_sample_object()
245 malloc_mutex_lock(tsd_tsdn(tsd), tctx->tdata->lock); in prof_free_sampled_object()
254 malloc_mutex_unlock(tsd_tsdn(tsd), tctx->tdata->lock); in prof_free_sampled_object()
553 gctx->lock = prof_gctx_mutex_choose(); in prof_gctx_create()
581 malloc_mutex_lock(tsd_tsdn(tsd), gctx->lock); in prof_gctx_try_destroy()
589 malloc_mutex_unlock(tsd_tsdn(tsd), gctx->lock); in prof_gctx_try_destroy()
598 malloc_mutex_unlock(tsd_tsdn(tsd), gctx->lock); in prof_gctx_try_destroy()
606 malloc_mutex_assert_owner(tsdn, tctx->tdata->lock); in prof_tctx_should_destroy()
636 malloc_mutex_assert_owner(tsd_tsdn(tsd), tctx->tdata->lock); in prof_tctx_destroy()
646 malloc_mutex_unlock(tsd_tsdn(tsd), tdata->lock); in prof_tctx_destroy()
648 malloc_mutex_lock(tsd_tsdn(tsd), gctx->lock); in prof_tctx_destroy()
688 malloc_mutex_unlock(tsd_tsdn(tsd), gctx->lock); in prof_tctx_destroy()
694 malloc_mutex_assert_not_owner(tsd_tsdn(tsd), tctx->tdata->lock); in prof_tctx_destroy()
740 malloc_mutex_lock(tsd_tsdn(tsd), gctx.p->lock); in prof_lookup_global()
742 malloc_mutex_unlock(tsd_tsdn(tsd), gctx.p->lock); in prof_lookup_global()
769 malloc_mutex_lock(tsd_tsdn(tsd), tdata->lock); in prof_lookup()
773 malloc_mutex_unlock(tsd_tsdn(tsd), tdata->lock); in prof_lookup()
804 malloc_mutex_lock(tsd_tsdn(tsd), tdata->lock); in prof_lookup()
806 malloc_mutex_unlock(tsd_tsdn(tsd), tdata->lock); in prof_lookup()
814 malloc_mutex_lock(tsd_tsdn(tsd), gctx->lock); in prof_lookup()
818 malloc_mutex_unlock(tsd_tsdn(tsd), gctx->lock); in prof_lookup()
1036 malloc_mutex_assert_owner(tsdn, tctx->tdata->lock); in prof_tctx_merge_tdata()
1038 malloc_mutex_lock(tsdn, tctx->gctx->lock); in prof_tctx_merge_tdata()
1042 malloc_mutex_unlock(tsdn, tctx->gctx->lock); in prof_tctx_merge_tdata()
1046 malloc_mutex_unlock(tsdn, tctx->gctx->lock); in prof_tctx_merge_tdata()
1068 malloc_mutex_assert_owner(tsdn, gctx->lock); in prof_tctx_merge_gctx()
1083 malloc_mutex_assert_owner(tsdn, tctx->gctx->lock); in prof_tctx_merge_iter()
1111 malloc_mutex_assert_owner(arg->tsdn, tctx->gctx->lock); in prof_tctx_dump_iter()
1139 malloc_mutex_assert_owner(tsdn, tctx->gctx->lock); in prof_tctx_finish_iter()
1165 malloc_mutex_lock(tsdn, gctx->lock); in prof_dump_gctx_prep()
1177 malloc_mutex_unlock(tsdn, gctx->lock); in prof_dump_gctx_prep()
1191 malloc_mutex_lock(arg->tsdn, gctx->lock); in prof_gctx_merge_iter()
1196 malloc_mutex_unlock(arg->tsdn, gctx->lock); in prof_gctx_merge_iter()
1215 malloc_mutex_lock(tsd_tsdn(tsd), gctx->lock); in prof_gctx_finish()
1240 malloc_mutex_unlock(tsd_tsdn(tsd), gctx->lock); in prof_gctx_finish()
1243 malloc_mutex_unlock(tsd_tsdn(tsd), gctx->lock); in prof_gctx_finish()
1259 malloc_mutex_lock(arg->tsdn, tdata->lock); in prof_tdata_merge_iter()
1281 malloc_mutex_unlock(arg->tsdn, tdata->lock); in prof_tdata_merge_iter()
1342 malloc_mutex_assert_owner(tsdn, gctx->lock); in prof_dump_gctx()
1519 malloc_mutex_lock(arg->tsdn, gctx->lock); in prof_gctx_dump_iter()
1529 malloc_mutex_unlock(arg->tsdn, gctx->lock); in prof_gctx_dump_iter()
1878 tdata->lock = prof_tdata_mutex_choose(thr_uid); in prof_tdata_init_impl()
1931 malloc_mutex_assert_owner(tsdn, tdata->lock); in prof_tdata_should_destroy()
1968 malloc_mutex_lock(tsd_tsdn(tsd), tdata->lock); in prof_tdata_detach()
1981 malloc_mutex_unlock(tsd_tsdn(tsd), tdata->lock); in prof_tdata_detach()
2005 malloc_mutex_lock(tsdn, tdata->lock); in prof_tdata_expire()
2012 malloc_mutex_unlock(tsdn, tdata->lock); in prof_tdata_expire()