diff options
| author | Jason Evans <je@fb.com> | 2011-08-31 06:40:11 (GMT) |
|---|---|---|
| committer | Jason Evans <je@fb.com> | 2011-08-31 06:40:11 (GMT) |
| commit | a9076c9483a8efcb216b9f1303bf310f80ee3401 (patch) | |
| tree | 1f34c25bbf96f18d574fee8e840360c018c13f57 /test/aligned_alloc.c | |
| parent | 46405e670f9b4831da9c24c15f0f3a537ef2606b (diff) | |
| download | jemalloc-a9076c9483a8efcb216b9f1303bf310f80ee3401.zip jemalloc-a9076c9483a8efcb216b9f1303bf310f80ee3401.tar.gz jemalloc-a9076c9483a8efcb216b9f1303bf310f80ee3401.tar.bz2 | |
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.
Diffstat (limited to 'test/aligned_alloc.c')
0 files changed, 0 insertions, 0 deletions
