Browse Source

fix: remove EarlyMallocZoneRegistration call (#40128)

Cheng Zhao 1 year ago
parent
commit
f5c177698e
2 changed files with 1 additions and 7 deletions
  1. 1 5
      BUILD.gn
  2. 0 2
      shell/app/electron_main_mac.cc

+ 1 - 5
BUILD.gn

@@ -916,10 +916,7 @@ if (is_mac) {
       assert(defined(invoker.helper_name_suffix))
 
       output_name = electron_helper_name + invoker.helper_name_suffix
-      deps = [
-        ":electron_framework+link",
-        "//base/allocator:early_zone_registration_apple",
-      ]
+      deps = [ ":electron_framework+link" ]
       if (!is_mas_build) {
         deps += [ "//sandbox/mac:seatbelt" ]
       }
@@ -1080,7 +1077,6 @@ if (is_mac) {
       ":electron_app_plist",
       ":electron_app_resources",
       ":electron_fuses",
-      "//base/allocator:early_zone_registration_apple",
       "//electron/buildflags",
     ]
     if (is_mas_build) {

+ 0 - 2
shell/app/electron_main_mac.cc

@@ -5,7 +5,6 @@
 #include <cstdlib>
 #include <memory>
 
-#include "base/allocator/early_zone_registration_apple.h"
 #include "electron/buildflags/buildflags.h"
 #include "electron/fuses.h"
 #include "shell/app/electron_library_main.h"
@@ -50,7 +49,6 @@ bool IsEnvSet(const char* name) {
 }  // namespace
 
 int main(int argc, char* argv[]) {
-  partition_alloc::EarlyMallocZoneRegistration();
   FixStdioStreams();
 
   if (electron::fuses::IsRunAsNodeEnabled() &&