Guard libgcc unwind init with opt_prof.
Only triggers libgcc unwind init when prof is enabled. This helps workaround some bootstrapping issues.
This commit is contained in:
14
src/prof.c
14
src/prof.c
@@ -3067,16 +3067,14 @@ prof_boot2(tsd_t *tsd) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef JEMALLOC_PROF_LIBGCC
|
||||
/*
|
||||
* Cause the backtracing machinery to allocate its internal state
|
||||
* before enabling profiling.
|
||||
*/
|
||||
_Unwind_Backtrace(prof_unwind_init_callback, NULL);
|
||||
/*
|
||||
* Cause the backtracing machinery to allocate its internal
|
||||
* state before enabling profiling.
|
||||
*/
|
||||
_Unwind_Backtrace(prof_unwind_init_callback, NULL);
|
||||
#endif
|
||||
|
||||
}
|
||||
prof_booted = true;
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user