commit | a9076c9483a8efcb216b9f1303bf310f80ee3401 | [log] [tgz] |
---|---|---|
author | Jason Evans <je@fb.com> | Tue Aug 30 23:40:11 2011 -0700 |
committer | Jason Evans <je@fb.com> | Tue Aug 30 23:40:11 2011 -0700 |
tree | 1f34c25bbf96f18d574fee8e840360c018c13f57 | |
parent | 46405e670f9b4831da9c24c15f0f3a537ef2606b [diff] |
Fix a prof-related race condition. Fix prof_lookup() to artificially raise curobjs for all paths through the code that creates a new entry in the per thread bt2cnt hash table. This fixes a race condition that could corrupt memory if prof_accum were false, and a non-default lg_prof_tcmax were used and/or threads were destroyed.