Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(702)

Unified Diff: content/app/content_main_runner.cc

Issue 1607303002: Allocator cleanup: allocator_extension call directly into tcmalloc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@base_dep_alloc
Patch Set: rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/toolbar/app_menu_model.cc ('k') | content/browser/zygote_host/zygote_host_impl_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/app/content_main_runner.cc
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc
index 037c79bd512ed948ee71b560b89076cdbf2300fb..ae2de12a14bb7622b3ac9892a6477d1955f8283d 100644
--- a/content/app/content_main_runner.cc
+++ b/content/app/content_main_runner.cc
@@ -417,16 +417,6 @@ class ContentMainRunnerImpl : public ContentMainRunner {
Shutdown();
}
-#if defined(USE_TCMALLOC)
- static bool GetNumericPropertyThunk(const char* name, size_t* value) {
- return MallocExtension::instance()->GetNumericProperty(name, value);
- }
-
- static void ReleaseFreeMemoryThunk() {
- MallocExtension::instance()->ReleaseFreeMemory();
- }
-#endif
-
int Initialize(const ContentMainParams& params) override {
ui_task_ = params.ui_task;
@@ -455,10 +445,6 @@ class ContentMainRunnerImpl : public ContentMainRunner {
// For tcmalloc, we need to tell it to behave like new.
tc_set_new_mode(1);
- // On windows, we've already set these thunks up in _heap_init()
- base::allocator::SetGetNumericPropertyFunction(GetNumericPropertyThunk);
- base::allocator::SetReleaseFreeMemoryFunction(ReleaseFreeMemoryThunk);
-
// Provide optional hook for monitoring allocation quantities on a
// per-thread basis. Only set the hook if the environment indicates this
// needs to be enabled.
« no previous file with comments | « chrome/browser/ui/toolbar/app_menu_model.cc ('k') | content/browser/zygote_host/zygote_host_impl_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698