From 7962541a32eff5597bc4207e781cfac8d1bb0d87 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 23 Dec 2015 17:23:33 +0100 Subject: malloc: Update comment for list_lock --- malloc/arena.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'malloc') diff --git a/malloc/arena.c b/malloc/arena.c index 85f119474b..665be5ec35 100644 --- a/malloc/arena.c +++ b/malloc/arena.c @@ -85,9 +85,10 @@ static mstate free_list; _int_new_arena. This suffers from data races; see the FIXME comments in _int_new_arena and reused_arena. - list_lock also prevents concurrent forks. When list_lock is - acquired, no arena lock must be acquired, but it is permitted to - acquire arena locks after list_lock. */ + list_lock also prevents concurrent forks. At the time list_lock is + acquired, no arena lock must have been acquired, but it is + permitted to acquire arena locks subsequently, while list_lock is + acquired. */ static mutex_t list_lock = _LIBC_LOCK_INITIALIZER; /* Mapped memory in non-main arenas (reliable only for NO_THREADS). */ -- cgit v1.2.3