| Index: content/browser/browser_main_loop.cc
|
| diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
|
| index a4e0e2b16baa492af82bd93992391816291a429f..d9b9fbdd922b4258b4f80dca8dc1b7680e4f9f04 100644
|
| --- a/content/browser/browser_main_loop.cc
|
| +++ b/content/browser/browser_main_loop.cc
|
| @@ -134,6 +134,7 @@
|
| #endif
|
|
|
| #if defined(OS_MACOSX)
|
| +#include "base/allocator/allocator_interception_mac.h"
|
| #include "base/memory/memory_pressure_monitor_mac.h"
|
| #include "content/browser/bootstrap_sandbox_manager_mac.h"
|
| #include "content/browser/cocoa/system_hotkey_helper_mac.h"
|
| @@ -870,6 +871,10 @@ int BrowserMainLoop::PreCreateThreads() {
|
| if (base::FeatureList::IsEnabled(features::kMemoryCoordinator))
|
| MemoryCoordinatorImpl::GetInstance()->Start();
|
|
|
| +#if defined(OS_MACOSX)
|
| + base::allocator::PeriodicallyShimNewMallocZones();
|
| +#endif
|
| +
|
| #if BUILDFLAG(ENABLE_PLUGINS)
|
| // Prior to any processing happening on the IO thread, we create the
|
| // plugin service as it is predominantly used from the IO thread,
|
|
|