Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code
Florian Weimer
fweimer@redhat.com
Sat Aug 20 17:20:00 GMT 2016
On 08/20/2016 04:48 PM, Samuel Thibault wrote:
> + * malloc/malloc.c (main_arena): Use MUTEX_INITIALIZER instead of
> + _LIBC_LOCK_INITIALIZER.
No, you need to define _LIBC_LOCK_INITIALIZER in terms of
MUTEX_INITIALIZER. If this is not possible, you need to select a lock
which is compatible with the libc_lock infrastructure for the malloc mutex.
Florian
More information about the Libc-alpha
mailing list