From 02585420c34e08db1de4c26f3d5bc808d6910131 Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Wed, 11 Apr 2018 12:09:48 -0700 Subject: [PATCH] Document liveness requirements for extent_hooks_t structures. --- doc/jemalloc.xml.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/jemalloc.xml.in b/doc/jemalloc.xml.in index 2e7edc33..3ec43ce1 100644 --- a/doc/jemalloc.xml.in +++ b/doc/jemalloc.xml.in @@ -1792,7 +1792,9 @@ struct extent_hooks_s { in favor of less permanent (and often less costly) operations. All operations except allocation can be universally opted out of by setting the hook pointers to NULL, or selectively opted out - of by returning failure. + of by returning failure. Note that once the extent hook is set, the + structure is accessed directly by the associated arenas, so it must + remain valid for the entire lifetime of the arenas. typedef void *(extent_alloc_t)