macos: allocator: Disable double registration check

This commit is contained in:
klzgrad
2026-09-25 09:05:56 +08:00
parent b7f87e9e29
commit 30e573a23f
@@ -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.