diff options
author | Jason Evans <jasone@canonware.com> | 2015-09-17 21:47:39 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2015-09-17 21:49:50 (GMT) |
commit | 3ca0cf6a68c9eab7668be14d2b07645277f8b833 (patch) | |
tree | cc95ed05d471dad6bace9b3a824f65029b859219 /src/prof.c | |
parent | 3263be6efb5232963c0820da65e235d1693e404d (diff) | |
download | jemalloc-3ca0cf6a68c9eab7668be14d2b07645277f8b833.zip jemalloc-3ca0cf6a68c9eab7668be14d2b07645277f8b833.tar.gz jemalloc-3ca0cf6a68c9eab7668be14d2b07645277f8b833.tar.bz2 |
Fix prof_alloc_rollback().
Fix prof_alloc_rollback() to read tdata from thread-specific data rather
than dereferencing a potentially invalid tctx.
Diffstat (limited to 'src/prof.c')
-rw-r--r-- | src/prof.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -209,7 +209,7 @@ prof_alloc_rollback(tsd_t *tsd, prof_tctx_t *tctx, bool updated) */ tdata = prof_tdata_get(tsd, true); if (tdata != NULL) - prof_sample_threshold_update(tctx->tdata); + prof_sample_threshold_update(tdata); } if ((uintptr_t)tctx > (uintptr_t)1U) { |