mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-17 08:01:49 +03:00
Move last bit of zone initialization in zone.c, and lazy-initialize
This commit is contained in:
parent
722b370399
commit
80b25932ca
4 changed files with 1 additions and 45 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue