2001-08-21 Jeff Johnston <jjohnstn@redhat.com>

* libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
        for SIZE_SZ so that alignment ends up a minimum of 8.
This commit is contained in:
Jeff Johnston 2001-08-21 20:23:16 +00:00
parent 75394d4a26
commit e826766445
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-08-21 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
for SIZE_SZ so that alignment ends up a minimum of 8.
Mon Aug 13 22:26:01 2001 Christopher Faylor <cgf@cygnus.com> Mon Aug 13 22:26:01 2001 Christopher Faylor <cgf@cygnus.com>
* libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro * libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro

View File

@ -1384,7 +1384,7 @@ nextchunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
#define SIZE_SZ (sizeof(INTERNAL_SIZE_T)) #define SIZE_SZ (sizeof(INTERNAL_SIZE_T))
#ifndef MALLOC_ALIGNMENT #ifndef MALLOC_ALIGNMENT
#define MALLOC_ALIGN 8 #define MALLOC_ALIGN 8
#define MALLOC_ALIGNMENT (SIZE_SZ + SIZE_SZ) #define MALLOC_ALIGNMENT (SIZE_SZ < 4 ? 8 : (SIZE_SZ + SIZE_SZ))
#else #else
#define MALLOC_ALIGN MALLOC_ALIGNMENT #define MALLOC_ALIGN MALLOC_ALIGNMENT
#endif #endif