aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2018-04-06 13:45:37 -0700
committerQi Wang <interwq@gmail.com>2018-04-09 16:35:14 -0700
commit2dccf4564016233bd4ef7772b43ec8423b8c44df (patch)
tree22831406db56bd87fe3a764ef39ecf7aeba20369 /src
parent6d02421730e2f2dc6985da699b8e10b3ed4061b6 (diff)
downloadplatform_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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/prof.c b/src/prof.c
index 32760e68..293684ca 100644
--- a/src/prof.c
+++ b/src/prof.c
@@ -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);