diff options
author | Qi Wang <interwq@gwu.edu> | 2018-04-06 13:45:37 -0700 |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2018-04-09 16:35:14 -0700 |
commit | 2dccf4564016233bd4ef7772b43ec8423b8c44df (patch) | |
tree | 22831406db56bd87fe3a764ef39ecf7aeba20369 /src | |
parent | 6d02421730e2f2dc6985da699b8e10b3ed4061b6 (diff) | |
download | platform_external_jemalloc_new-2dccf4564016233bd4ef7772b43ec8423b8c44df.tar.gz platform_external_jemalloc_new-2dccf4564016233bd4ef7772b43ec8423b8c44df.tar.bz2 platform_external_jemalloc_new-2dccf4564016233bd4ef7772b43ec8423b8c44df.zip |
Control idump and gdump with prof_active.
Diffstat (limited to 'src')
-rw-r--r-- | src/prof.c | 4 |
1 files changed, 2 insertions, 2 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); |