mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-26 17:13:35 +03:00
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:
parent
dca7060d5e
commit
18450d0abe
1 changed files with 6 additions and 8 deletions
14
src/prof.c
14
src/prof.c
|
|
@ -3067,16 +3067,14 @@ prof_boot2(tsd_t *tsd) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef JEMALLOC_PROF_LIBGCC
|
#ifdef JEMALLOC_PROF_LIBGCC
|
||||||
/*
|
/*
|
||||||
* Cause the backtracing machinery to allocate its internal state
|
* Cause the backtracing machinery to allocate its internal
|
||||||
* before enabling profiling.
|
* state before enabling profiling.
|
||||||
*/
|
*/
|
||||||
_Unwind_Backtrace(prof_unwind_init_callback, NULL);
|
_Unwind_Backtrace(prof_unwind_init_callback, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
prof_booted = true;
|
prof_booted = true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue