Backed out changeset 78b33c83dcd6 (bug 1698524) for causing assertion and crash CLOSED TREE

This commit is contained in:
Noemi Erli 2021-04-06 02:24:57 +03:00
Родитель f2d12a10ec
Коммит 17280a6f32
2 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -547,8 +547,6 @@ void install_memory_hooks() {
// Also initialize the ThreadIntercept, even if native allocation tracking
// won't be turned on. This way the TLS will be initialized.
ThreadIntercept::Init();
} else {
sCounter->Clear();
}
jemalloc_replace_dynamic(replace_init);
}

Просмотреть файл

@ -110,16 +110,6 @@ class BaseProfilerCount {
# endif
}
void Clear() {
*mCounter = 0;
# ifdef DEBUG
mPrevNumber = 0;
#endif
if (mNumber) {
*mNumber = 0;
}
}
// We don't define ++ and Add() here, since the static defines directly
// increment the atomic counters, and the subclasses implement ++ and
// Add() directly.