macos: allocator: Disable double registration check

master
klzgrad 2026-04-07 20:19:51 +08:00
parent 0930733a09
commit 58efb2b04b
1 changed files with 6 additions and 6 deletions

View File

@ -201,12 +201,12 @@ void EarlyMallocZoneRegistration() {
"The delegating default zone has unexpectedly already been "
"registered.");
}
if (allocator_shim::IsZoneAlreadyRegistered(
allocator_shim::kPartitionAllocZoneName)) {
abort_report_np(
"The PartitionAlloc default zone has unexpectedly already been "
"registered.");
}
// if (allocator_shim::IsZoneAlreadyRegistered(
// allocator_shim::kPartitionAllocZoneName)) {
// abort_report_np(
// "The PartitionAlloc default zone has unexpectedly already been "
// "registered.");
// }
// Register puts the new zone at the end, unregister swaps the new zone with
// the last one.