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.c fix for MALLOC_ALIGN_MASK tests.


Peter Bergner wrote:
> I'm curious, how does the patch make the checks more expensive?

Just run it through the compiler, especially on x86.


> than testing for a
> particular architecture in case another arch or user attempts to
> use a larger MALLOC_ALIGNMENT?

Nobody should do such a stupid thing.  It creates binary
incompatibilities.  If you need more alignment, use posix_memalign.

-- 
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â

Attachment: signature.asc
Description: OpenPGP digital signature


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