mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-30 16:47:29 +03:00
Hooks: hook the pure-allocation functions.
This commit is contained in:
parent
fe0e399385
commit
226327cf66
3 changed files with 184 additions and 8 deletions
|
|
@ -18,7 +18,7 @@
|
|||
* hook is called. If it is moved, then the alloc hook is called on the new
|
||||
* location, and then the free hook is called on the old location.
|
||||
*
|
||||
* (We omit no-ops, like free(NULL), etc.).
|
||||
* If we return NULL from OOM, then usize might not be trustworthy.
|
||||
*
|
||||
* Reentrancy:
|
||||
* Is not protected against. If your hooks allocate, then the hooks will be
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue