fix: remove EarlyMallocZoneRegistration call (#40128)

This commit is contained in:
Cheng Zhao 2023-10-09 09:43:51 +09:00 committed by GitHub
parent 737e3de3fa
commit f5c177698e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

View file

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

View file

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