commit | 5065156f3f90e421ba2b1a914e47eeb30d83d994 | [log] [tgz] |
---|---|---|
author | Jason Evans <je@facebook.com> | Tue Apr 13 16:13:54 2010 -0700 |
committer | Jason Evans <je@facebook.com> | Tue Apr 13 21:17:11 2010 -0700 |
tree | 252067a09dea4a435c5ae5d5bd6d3d50c11415d4 | |
parent | 1bb602125cc6ea471ecc305dd61849ef60349091 [diff] |
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.