Avoid prof_dump during reentrancy.

This commit is contained in:
Qi Wang
2017-04-24 18:14:57 -07:00
committed by Qi Wang
parent 268843ac68
commit 05775a3736
2 changed files with 23 additions and 12 deletions

View File

@@ -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);