Refactor destroy code path for prof_tctx

This commit is contained in:
Yinan Zhang
2019-12-10 10:46:31 -08:00
parent 055478cca8
commit 7d2bac5a38
3 changed files with 32 additions and 29 deletions

View File

@@ -114,13 +114,13 @@ bool prof_log_rep_check(void);
void prof_log_dummy_set(bool new_value);
#endif
/* Functions in prof_data.c only accessed in prof.c */
/* Functions in prof_data.c only used in profiling code. */
bool prof_data_init(tsd_t *tsd);
bool prof_dump(tsd_t *tsd, bool propagate_err, const char *filename,
bool leakcheck);
prof_tdata_t * prof_tdata_init_impl(tsd_t *tsd, uint64_t thr_uid,
uint64_t thr_discrim, char *thread_name, bool active, bool reset_interval);
void prof_tdata_detach(tsd_t *tsd, prof_tdata_t *tdata);
void prof_tctx_destroy(tsd_t *tsd, prof_tctx_t *tctx);
void prof_tctx_try_destroy(tsd_t *tsd, prof_tctx_t *tctx);
#endif /* JEMALLOC_INTERNAL_PROF_EXTERNS_H */