allocator: Disable double registration check

This commit is contained in:
klzgrad
2026-04-07 23:21:30 +08:00
parent 48cfde6598
commit 6315863d2d
@@ -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.