mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 13:13:06 +00:00
Initialize prof_leak during prof init.
Otherwise, prof_leak may get set after prof_leak_error, and disagree with each other.
This commit is contained in:
@@ -564,6 +564,9 @@ prof_boot1(void) {
|
||||
* opt_prof must be in its final state before any arenas are
|
||||
* initialized, so this function must be executed early.
|
||||
*/
|
||||
if (opt_prof_leak_error && !opt_prof_leak) {
|
||||
opt_prof_leak = true;
|
||||
}
|
||||
|
||||
if (opt_prof_leak && !opt_prof) {
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user