Move last bit of zone initialization in zone.c, and lazy-initialize
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
@@ -166,6 +166,7 @@ zone_force_unlock(malloc_zone_t *zone)
|
||||
jemalloc_postfork_parent();
|
||||
}
|
||||
|
||||
JEMALLOC_ATTR(constructor)
|
||||
void
|
||||
register_zone(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user