diff options
author | Mike Hommey <mh@glandium.org> | 2012-04-02 07:04:54 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2012-04-02 21:15:20 (GMT) |
commit | 80b25932ca52e9506d4e2b8ee0fa58aa5ae3306d (patch) | |
tree | 67fa9306c2e905569b0a171623f2510fe2fbc74d /src | |
parent | 722b370399fd6734de6781285ce9a0cffd547bdd (diff) | |
download | jemalloc-80b25932ca52e9506d4e2b8ee0fa58aa5ae3306d.zip jemalloc-80b25932ca52e9506d4e2b8ee0fa58aa5ae3306d.tar.gz jemalloc-80b25932ca52e9506d4e2b8ee0fa58aa5ae3306d.tar.bz2 |
Move last bit of zone initialization in zone.c, and lazy-initialize
Diffstat (limited to 'src')
-rw-r--r-- | src/jemalloc.c | 11 | ||||
-rw-r--r-- | src/zone.c | 1 |
2 files changed, 1 insertions, 11 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c index 5b1e0fd..1deabcd 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -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) { |