diff options
author | Jason Evans <je@fb.com> | 2012-04-28 21:15:28 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2012-04-28 21:15:28 (GMT) |
commit | 95ff6aadca1e91641e093c61091e70344d048b50 (patch) | |
tree | 9d3bb67a067a787aa0146642e832886cac4e0a85 /src | |
parent | d926c90500d47c5e18811a944c70924c09b5890e (diff) | |
download | jemalloc-95ff6aadca1e91641e093c61091e70344d048b50.zip jemalloc-95ff6aadca1e91641e093c61091e70344d048b50.tar.gz jemalloc-95ff6aadca1e91641e093c61091e70344d048b50.tar.bz2 |
Don't set prof_tdata during thread cleanup.
Don't set prof_tdata during thread cleanup, because doing so will cause
the cleanup function to be called again, the second time with a NULL
argument.
Diffstat (limited to 'src')
-rw-r--r-- | src/prof.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -1155,10 +1155,7 @@ prof_tdata_cleanup(void *arg) } idalloc(prof_tdata->vec); - idalloc(prof_tdata); - prof_tdata = NULL; - prof_tdata_tsd_set(&prof_tdata); } void |