fix: adopt partition alloc early initialization (#33832)

Refs 3298858
This commit is contained in:
Robo 2022-04-21 05:52:15 +09:00 committed by GitHub
parent 0c864837af
commit b53118ca28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -5,6 +5,7 @@
#include <cstdlib>
#include <memory>
#include "base/allocator/early_zone_registration_mac.h"
#include "electron/buildflags/buildflags.h"
#include "electron/fuses.h"
#include "shell/app/electron_library_main.h"
@ -28,6 +29,7 @@ namespace {
} // namespace
int main(int argc, char* argv[]) {
partition_alloc::EarlyMallocZoneRegistration();
FixStdioStreams();
#if BUILDFLAG(ENABLE_RUN_AS_NODE)