summaryrefslogtreecommitdiffstats
path: root/src/hook.c
Commit message (Collapse)AuthorAgeFilesLines
* Move tsd link and in_hook after tcache.David Goldblatt2018-06-271-3/+3
| | | | | This can lead to better cache utilization down the common paths where we don't touch the link.
* Hooks: Protect against reentrancy.David Goldblatt2018-05-181-9/+59
| | | | | | | Previously, we made the user deal with this themselves, but that's not good enough; if hooks may allocate, we should test the allocation pathways down hooks. If we're doing that, we might as well actually implement the protection for the user.
* Hooks: Add a hook exhaustion test.David Goldblatt2018-05-181-5/+4
| | | | | When we run out of space in which to store hooks, we should return EAGAIN from the mallctl, but not otherwise misbehave.
* Hooks: move the "extra" pointer into the hook_t itself.David Goldblatt2018-05-181-8/+6
| | | | | This simplifies the mallctl call to install a hook, which should only take a single argument.
* Hooks: add an early-exit path for the common no-hook case.David Goldblatt2018-05-181-0/+15
|
* Add "hook" module.David Goldblatt2018-05-181-0/+133
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.