Move last bit of zone initialization in zone.c, and lazy-initialize

This commit is contained in:
Mike Hommey
2012-04-02 09:04:54 +02:00
committed by Jason Evans
parent 722b370399
commit 80b25932ca
4 changed files with 1 additions and 45 deletions

View File

@@ -717,17 +717,6 @@ malloc_init_hard(void)
return (false);
}
#ifdef JEMALLOC_ZONE
JEMALLOC_ATTR(constructor)
void
jemalloc_darwin_init(void)
{
if (malloc_init_hard() == false)
register_zone();
}
#endif
/*
* End initialization functions.
*/

View File

@@ -166,6 +166,7 @@ zone_force_unlock(malloc_zone_t *zone)
jemalloc_postfork_parent();
}
JEMALLOC_ATTR(constructor)
void
register_zone(void)
{