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: [PATCH] malloc: additional unlink hardening for non-small bins [BZ #17344]


On 09/10/2014 08:10 PM, Roland McGrath wrote:
I think it's best practice to put each condition inside a __builtin_expect
separately, rather than to have a complex expression inside it (despite the
contrary example a few lines up).  The change seems fine aside from that.

Thanks. The generated code is the same, so I'm going to commit the version with two __builtin_expect expressions.

(Eventually, we have to convert malloc/ to __glibc_{,un}likely.)

--
Florian Weimer / Red Hat Product Security


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