mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-19 17:01:15 +03:00
Conditionalize prof fork handling on config_prof.
This allows the compiler to completely remove dead code.
This commit is contained in:
parent
bbff6ca674
commit
397f54aa46
1 changed files with 4 additions and 4 deletions
|
|
@ -2353,7 +2353,7 @@ prof_boot2(tsd_t *tsd) {
|
|||
|
||||
void
|
||||
prof_prefork0(tsdn_t *tsdn) {
|
||||
if (opt_prof) {
|
||||
if (config_prof && opt_prof) {
|
||||
unsigned i;
|
||||
|
||||
malloc_mutex_prefork(tsdn, &prof_dump_mtx);
|
||||
|
|
@ -2370,7 +2370,7 @@ prof_prefork0(tsdn_t *tsdn) {
|
|||
|
||||
void
|
||||
prof_prefork1(tsdn_t *tsdn) {
|
||||
if (opt_prof) {
|
||||
if (config_prof && opt_prof) {
|
||||
malloc_mutex_prefork(tsdn, &prof_active_mtx);
|
||||
malloc_mutex_prefork(tsdn, &prof_dump_seq_mtx);
|
||||
malloc_mutex_prefork(tsdn, &prof_gdump_mtx);
|
||||
|
|
@ -2381,7 +2381,7 @@ prof_prefork1(tsdn_t *tsdn) {
|
|||
|
||||
void
|
||||
prof_postfork_parent(tsdn_t *tsdn) {
|
||||
if (opt_prof) {
|
||||
if (config_prof && opt_prof) {
|
||||
unsigned i;
|
||||
|
||||
malloc_mutex_postfork_parent(tsdn,
|
||||
|
|
@ -2404,7 +2404,7 @@ prof_postfork_parent(tsdn_t *tsdn) {
|
|||
|
||||
void
|
||||
prof_postfork_child(tsdn_t *tsdn) {
|
||||
if (opt_prof) {
|
||||
if (config_prof && opt_prof) {
|
||||
unsigned i;
|
||||
|
||||
malloc_mutex_postfork_child(tsdn, &prof_thread_active_init_mtx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue