This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] malloc: Automated part of conversion to __libc_lock
- From: Torvald Riegel <triegel at redhat dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 05 Sep 2016 14:13:17 +0200
- Subject: Re: [PATCH] malloc: Automated part of conversion to __libc_lock
- Authentication-results: sourceware.org; auth=none
- References: <20160822124428.7F2C9439942E2@oldenburg.str.redhat.com>
On Mon, 2016-08-22 at 14:44 +0200, Florian Weimer wrote:
> 2016-08-22 Florian Weimer <fweimer@redhat.com>
>
> Convert malloc to __libc_lock. Automated part, using this Perl
> s/// command:
> s/(?:\(void\)\s*)?mutex_((?:|un|try)lock|init)
> \s*\(\&([^\)]+)\)/__libc_lock_$1\ ($2)/gx;
> * malloc/malloc.c, malloc/arena.c, malloc/hooks.c: Perform
> conversion.
LGTM.