MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / prof_tdata_reinit

Function prof_tdata_reinit

deps/jemalloc/src/prof.c:2320–2331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2318}
2319
2320prof_tdata_t *
2321prof_tdata_reinit(tsd_t *tsd, prof_tdata_t *tdata) {
2322 uint64_t thr_uid = tdata->thr_uid;
2323 uint64_t thr_discrim = tdata->thr_discrim + 1;
2324 char *thread_name = (tdata->thread_name != NULL) ?
2325 prof_thread_name_alloc(tsd_tsdn(tsd), tdata->thread_name) : NULL;
2326 bool active = tdata->active;
2327
2328 prof_tdata_detach(tsd, tdata);
2329 return prof_tdata_init_impl(tsd, thr_uid, thr_discrim, thread_name,
2330 active);
2331}
2332
2333static bool
2334prof_tdata_expire(tsdn_t *tsdn, prof_tdata_t *tdata) {

Callers 1

prof_inlines_b.hFile · 0.50

Calls 4

prof_thread_name_allocFunction · 0.70
prof_tdata_detachFunction · 0.70
prof_tdata_init_implFunction · 0.70
tsd_tsdnFunction · 0.50

Tested by

no test coverage detected