This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: inline _int_free into free


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]