diff --git a/include/jemalloc/internal/prof.h b/include/jemalloc/internal/prof.h index 4a8073fc..566739bb 100644 --- a/include/jemalloc/internal/prof.h +++ b/include/jemalloc/internal/prof.h @@ -200,7 +200,12 @@ extern bool opt_prof_gdump; /* High-water memory dumping. */ extern bool opt_prof_final; /* Final profile dumping. */ extern bool opt_prof_leak; /* Dump leak summary at exit. */ extern bool opt_prof_accum; /* Report cumulative bytes. */ -extern char opt_prof_prefix[PATH_MAX + 1]; +extern char opt_prof_prefix[ + /* Minimize memory bloat for non-prof builds. */ +#ifdef JEMALLOC_PROF + PATH_MAX + +#endif + 1]; /* * Profile dump interval, measured in bytes allocated. Each arena triggers a diff --git a/src/prof.c b/src/prof.c index 45cb67fa..0d652124 100644 --- a/src/prof.c +++ b/src/prof.c @@ -29,8 +29,7 @@ char opt_prof_prefix[ #ifdef JEMALLOC_PROF PATH_MAX + #endif - 1 -]; + 1]; uint64_t prof_interval = 0; bool prof_promote;