Backed out changeset cdb61e9a5308 (bug 1520587) for failures in test_feature_mainthreadio.js

This commit is contained in:
Noemi Erli 2019-03-21 20:39:02 +02:00
parent 1a383e07bb
commit f8774c16c2
2 changed files with 0 additions and 10 deletions

View File

@ -214,9 +214,6 @@ void install_memory_counter(bool aInstall) {
return;
}
}
if (aInstall) {
sCounter->Clear();
}
// start counting memory allocations, or stop
jemalloc_replace_dynamic(aInstall ? replace_init : nullptr);
}

View File

@ -107,13 +107,6 @@ class BaseProfilerCount {
# endif
}
void Clear() {
*mCounter = 0;
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.