diff options
author | David Goldblatt <davidgoldblatt@fb.com> | 2018-04-10 02:11:46 (GMT) |
---|---|---|
committer | David Goldblatt <davidtgoldblatt@gmail.com> | 2018-05-18 18:43:03 (GMT) |
commit | 5ae6e7cbfa6d6788340cc87d7717548f4d7960fe (patch) | |
tree | fc2e633184c20b130b4dcafb890f799732f94788 /src/jemalloc.c | |
parent | 06a8c40b36403e902748d3f2a14e6dd43488ae89 (diff) | |
download | jemalloc-5ae6e7cbfa6d6788340cc87d7717548f4d7960fe.zip jemalloc-5ae6e7cbfa6d6788340cc87d7717548f4d7960fe.tar.gz jemalloc-5ae6e7cbfa6d6788340cc87d7717548f4d7960fe.tar.bz2 |
Add "hook" module.
The hook module allows a low-reader-overhead way of finding hooks to invoke and
calling them.
For now, none of the allocation pathways are tied into the hooks; this will come
later.
Diffstat (limited to 'src/jemalloc.c')
-rw-r--r-- | src/jemalloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c index f93c16f..f837e6b 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -7,6 +7,7 @@ #include "jemalloc/internal/ctl.h" #include "jemalloc/internal/extent_dss.h" #include "jemalloc/internal/extent_mmap.h" +#include "jemalloc/internal/hook.h" #include "jemalloc/internal/jemalloc_internal_types.h" #include "jemalloc/internal/log.h" #include "jemalloc/internal/malloc_io.h" @@ -1311,6 +1312,7 @@ malloc_init_hard_a0_locked() { malloc_mutex_rank_exclusive)) { return true; } + hook_boot(); /* * Create enough scaffolding to allow recursive allocation in * malloc_ncpus(). |