mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-31 15:38:08 +03:00
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.
This commit is contained in:
parent
06a8c40b36
commit
5ae6e7cbfa
6 changed files with 443 additions and 0 deletions
|
|
@ -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().
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue