aboutsummaryrefslogtreecommitdiff
path: root/include/jemalloc/internal/prof.h
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2015-03-14 14:01:35 -0700
committerJason Evans <je@fb.com>2015-03-14 14:01:35 -0700
commit764b00023f2bc97f240c3a758ed23ce9c0ad8526 (patch)
tree84b833cfc90cf68c0b82c3dfe4b8a2f6e6e99e33 /include/jemalloc/internal/prof.h
parentd6384b09e137874d7cdf527e5bb50abba0ae5f95 (diff)
downloadjemalloc-764b00023f2bc97f240c3a758ed23ce9c0ad8526.tar.gz
Fix a heap profiling regression.
Add the prof_tctx_state_destroying transitionary state to fix a race between a thread destroying a tctx and another thread creating a new equivalent tctx. This regression was introduced by 602c8e0971160e4b85b08b16cf8a2375aa24bc04 (Implement per thread heap profiling.).
Diffstat (limited to 'include/jemalloc/internal/prof.h')
-rw-r--r--include/jemalloc/internal/prof.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/jemalloc/internal/prof.h b/include/jemalloc/internal/prof.h
index f508243..8967333 100644
--- a/include/jemalloc/internal/prof.h
+++ b/include/jemalloc/internal/prof.h
@@ -81,6 +81,7 @@ struct prof_cnt_s {
typedef enum {
prof_tctx_state_initializing,
prof_tctx_state_nominal,
+ prof_tctx_state_destroying,
prof_tctx_state_dumping,
prof_tctx_state_purgatory /* Dumper must finish destroying. */
} prof_tctx_state_t;