зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 78b33c83dcd6 (bug 1698524) for causing assertion and crash CLOSED TREE
This commit is contained in:
Родитель
f2d12a10ec
Коммит
17280a6f32
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче