mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-03 18:47:54 +03:00
Control idump and gdump with prof_active.
This commit is contained in:
parent
6d02421730
commit
2dccf45640
4 changed files with 14 additions and 14 deletions
|
|
@ -1780,7 +1780,7 @@ prof_idump(tsdn_t *tsdn) {
|
|||
|
||||
cassert(config_prof);
|
||||
|
||||
if (!prof_booted || tsdn_null(tsdn)) {
|
||||
if (!prof_booted || tsdn_null(tsdn) || !prof_active_get_unlocked()) {
|
||||
return;
|
||||
}
|
||||
tsd = tsdn_tsd(tsdn);
|
||||
|
|
@ -1837,7 +1837,7 @@ prof_gdump(tsdn_t *tsdn) {
|
|||
|
||||
cassert(config_prof);
|
||||
|
||||
if (!prof_booted || tsdn_null(tsdn)) {
|
||||
if (!prof_booted || tsdn_null(tsdn) || !prof_active_get_unlocked()) {
|
||||
return;
|
||||
}
|
||||
tsd = tsdn_tsd(tsdn);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue