[PATCH] malloc.c fix for MALLOC_ALIGN_MASK tests.

Ulrich Drepper drepper@redhat.com
Thu Sep 15 19:35:00 GMT 2005


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 ❖

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20050915/c26dbf79/attachment.sig>


More information about the Libc-alpha mailing list