This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: inline _int_free into free
- From: Ulrich Drepper <drepper at gmail dot com>
- To: Tom de Vries <Tom_deVries at mentor dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 3 Feb 2012 16:16:13 -0500
- Subject: Re: inline _int_free into free
- References: <4F258B7D.4050307@mentor.com>
On Sun, Jan 29, 2012 at 13:10, Tom de Vries <Tom_deVries@mentor.com> wrote:
> The purpose of this patch is to inline the call to _int_free in public_fREe, but
> not (necessarily) the other calls to _int_free.
This makes no sense. The only improvement inlining can provide is to
eliminate the have_lock test. That's at most one test. Every other
benefit must have reasons completely unrelated to the inlining. Just
improve the compiler, if this makes a difference. gcc can clone
functions.