]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
malloc: Update comment for list_lock
authorFlorian Weimer <fweimer@redhat.com>
Wed, 23 Dec 2015 16:23:33 +0000 (17:23 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 23 Dec 2015 16:23:33 +0000 (17:23 +0100)
ChangeLog
malloc/arena.c

index a32717ea0560dcb15be34ecf379420d0dc61d4f4..9063848e27db27d2359245356de3da841e299da0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-12-23  Florian Weimer  <fweimer@redhat.com>
+
+       * malloc/arena.c (list_lock): Update comment.
+
 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
 
        * sysdeps/powerpc/hwcapinfo.c: Export symbol
index 85f119474b755b19e9d2abc0c3150b0114277f70..665be5ec3586e150664903c678d5af35ed9be45f 100644 (file)
@@ -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). */