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

Unified Diff: content/child/child_thread_impl.cc

Issue 2713553002: mac: Periodically shim new malloc zones immediately after startup. (Closed)
Patch Set: Rebase. Created 3 years, 10 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
Index: content/child/child_thread_impl.cc
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc
index 977d87a566ec04e003f288de6b234c69f07f4cbe..e254a6f26b2acc663303513698473f87ae97cf0e 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -78,6 +78,10 @@
#include "content/public/common/content_descriptors.h"
#endif
+#if defined(OS_MACOSX)
+#include "base/allocator/allocator_interception_mac.h"
+#endif
+
using tracked_objects::ThreadData;
namespace content {
@@ -553,6 +557,10 @@ void ChildThreadImpl::Init(const Options& options) {
connection_timeout = temp;
}
+#if defined(OS_MACOSX)
+ base::allocator::PeriodicallyShimNewMallocZones();
+#endif
+
message_loop_->task_runner()->PostDelayedTask(
FROM_HERE, base::Bind(&ChildThreadImpl::EnsureConnected,
channel_connected_factory_->GetWeakPtr()),
« base/allocator/allocator_interception_mac.h ('K') | « content/browser/browser_main_loop.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698