--- memory/build/zone.c.orig +++ memory/build/zone.c @@ -340,7 +340,6 @@ // malloc_default_purgeable_zone is called beforehand so that the // default purgeable zone is created when the default zone is still // a scalable_zone. - malloc_zone_t* purgeable_zone = malloc_default_purgeable_zone(); // There is a problem related to the above with the system nano zone, which // is hard to work around from here, and that is instead worked around by @@ -370,8 +369,6 @@ // On OSX >= 10.6, unregistering replaces the purgeable zone with the last // registered zone above, i.e the default zone. Registering it again then // puts it at the end, obviously after the default zone. - malloc_zone_unregister(purgeable_zone); - malloc_zone_register(purgeable_zone); default_zone = get_default_zone(); } while (default_zone != &zone); }