mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-10 05:03:06 +03:00
malloc: Update comment for list_lock
This commit is contained in:
@@ -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>
|
2015-12-22 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* sysdeps/powerpc/hwcapinfo.c: Export symbol
|
* sysdeps/powerpc/hwcapinfo.c: Export symbol
|
||||||
|
@@ -85,9 +85,10 @@ static mstate free_list;
|
|||||||
_int_new_arena. This suffers from data races; see the FIXME
|
_int_new_arena. This suffers from data races; see the FIXME
|
||||||
comments in _int_new_arena and reused_arena.
|
comments in _int_new_arena and reused_arena.
|
||||||
|
|
||||||
list_lock also prevents concurrent forks. When list_lock is
|
list_lock also prevents concurrent forks. At the time list_lock is
|
||||||
acquired, no arena lock must be acquired, but it is permitted to
|
acquired, no arena lock must have been acquired, but it is
|
||||||
acquire arena locks after list_lock. */
|
permitted to acquire arena locks subsequently, while list_lock is
|
||||||
|
acquired. */
|
||||||
static mutex_t list_lock = _LIBC_LOCK_INITIALIZER;
|
static mutex_t list_lock = _LIBC_LOCK_INITIALIZER;
|
||||||
|
|
||||||
/* Mapped memory in non-main arenas (reliable only for NO_THREADS). */
|
/* Mapped memory in non-main arenas (reliable only for NO_THREADS). */
|
||||||
|
Reference in New Issue
Block a user