summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2017-04-25 01:14:57 (GMT)
committerQi Wang <interwq@gmail.com>2017-04-25 19:54:36 (GMT)
commit05775a37360c7f1d41dc57b73ed5c0f259024d9f (patch)
tree63a5277f39712d708d27cec37df00ec04f5a1169 /include
parent268843ac680f688582044621434221bedf78719b (diff)
downloadjemalloc-05775a37360c7f1d41dc57b73ed5c0f259024d9f.zip
jemalloc-05775a37360c7f1d41dc57b73ed5c0f259024d9f.tar.gz
jemalloc-05775a37360c7f1d41dc57b73ed5c0f259024d9f.tar.bz2
Avoid prof_dump during reentrancy.
Diffstat (limited to 'include')
-rw-r--r--include/jemalloc/internal/prof_inlines_b.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/jemalloc/internal/prof_inlines_b.h b/include/jemalloc/internal/prof_inlines_b.h
index eba981b..8cdea61 100644
--- a/include/jemalloc/internal/prof_inlines_b.h
+++ b/include/jemalloc/internal/prof_inlines_b.h
@@ -96,6 +96,9 @@ prof_sample_accum_update(tsd_t *tsd, size_t usize, bool update,
}
return true;
} else {
+ if (tsd->reentrancy_level > 0) {
+ return true;
+ }
/* Compute new sample threshold. */
if (update) {
prof_sample_threshold_update(tdata);