Fix threads-related profiling bugs.

Initialize bt2cnt_tsd so that cleanup at thread exit actually happens.

Associate (prof_ctx_t *) with allocated objects, rather than
(prof_thr_cnt_t *).  Each thread must always operate on its own
(prof_thr_cnt_t *), and an object may outlive the thread that allocated it.
8 files changed
tree: 252067a09dea4a435c5ae5d5bd6d3d50c11415d4
  1. jemalloc/
  2. .gitignore