aboutsummaryrefslogtreecommitdiff
path: root/malloc/arena.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-10-28 00:59:34 +0000
committerUlrich Drepper <drepper@redhat.com>2007-10-28 00:59:34 +0000
commit666aa0201b5e68d13d24d7e9151c7d548d5cbbda (patch)
tree7e1f79f6c1064dc1d89b28f01704f945f660fab1 /malloc/arena.c
parent8ad343b3ec58bc3d3f2c86a8fc8952cf86700db8 (diff)
downloadglibc-666aa0201b5e68d13d24d7e9151c7d548d5cbbda.zip
glibc-666aa0201b5e68d13d24d7e9151c7d548d5cbbda.tar.gz
glibc-666aa0201b5e68d13d24d7e9151c7d548d5cbbda.tar.bz2
* malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
Diffstat (limited to 'malloc/arena.c')
-rw-r--r--malloc/arena.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/malloc/arena.c b/malloc/arena.c
index ce64335..4cbb4dc 100644
--- a/malloc/arena.c
+++ b/malloc/arena.c
@@ -160,6 +160,10 @@ static void (*save_free_hook) (__malloc_ptr_t __ptr,
__const __malloc_ptr_t);
static Void_t* save_arena;
+#ifdef ATFORK_MEM
+ATFORK_MEM;
+#endif
+
/* Magic value for the thread-specific arena pointer when
malloc_atfork() is in use. */