This is the mail archive of the libc-alpha@sources.redhat.com 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] PPC32 Linuxthreads Chance MALLOC_ALIGNMENT for VMX


Steve Munroe wrote:

> Would it be acceptable to extent malloc.c to allow MALLOC_ALIGNMENT to be 
> changes at runtime via mallopt? Then for power we can detect VMX in 
> dl_hwcap and change the alignment only on the hardware that requires it!

No.  You have to use posix_memalign or do alignment explicitly in the
allocated block.  It causes all kinds of headache if we start magically
supporting broken apps which use malloc incorrectly this way.  Programs
must use the right interfaces.

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


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