mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-15 21:27:18 +03:00
Hooks: Add a hook exhaustion test.
When we run out of space in which to store hooks, we should return EAGAIN from the mallctl, but not otherwise misbehave.
This commit is contained in:
parent
bb071db92e
commit
59e371f463
3 changed files with 45 additions and 6 deletions
|
|
@ -46,6 +46,8 @@
|
|||
* order.
|
||||
*/
|
||||
|
||||
#define HOOK_MAX 4
|
||||
|
||||
enum hook_alloc_e {
|
||||
hook_alloc_malloc,
|
||||
hook_alloc_posix_memalign,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue