aboutsummaryrefslogtreecommitdiff
path: root/malloc/malloc.c
AgeCommit message (Collapse)AuthorFilesLines
2006-09-10Updated to fedora-glibc-20060910T1832cvs/fedora-glibc-2_4_90-31Jakub Jelinek1-1/+2
2006-08-31Updated to fedora-glibc-20060831T1812cvs/fedora-glibc-2_4_90-28Jakub Jelinek1-2/+8
2006-08-28Updated to fedora-glibc-20060828T1903cvs/fedora-glibc-2_4_90-26Jakub Jelinek1-9/+38
2006-08-25Temporarily #if 0 out code to limit number of unsurted block sort iterations.Jakub Jelinek1-1/+4
2006-08-25Updated to fedora-glibc-20060825T0639Jakub Jelinek1-1/+3
2006-08-22Updated to fedora-glibc-20060822T0706cvs/fedora-glibc-2_4_90-23Jakub Jelinek1-1/+22
2006-08-10Updated to fedora-glibc-20060810T0627cvs/fedora-glibc-2_4_90-19Jakub Jelinek1-1/+81
2006-03-06Updated to fedora-glibc-20060306T0720Jakub Jelinek1-1/+9
2006-03-02 * malloc/malloc.c (MALLOC_ALIGNMENT): Set to __alignof__ (long double)Jakub Jelinek1-6/+12
if long double is more aligned than 2 * SIZE_SZ. (misaligned_chunk): Define. (public_rEALLOc, _int_free, _int_realloc): Use it.
2005-12-19Updated to fedora-glibc-20051219T1003cvs/fedora-glibc-2_3_90-19Jakub Jelinek1-1/+0
2005-11-15Updated to fedora-glibc-20051115T0809Jakub Jelinek1-4/+16
2005-10-20Updated to fedora-glibc-20051020T0651Jakub Jelinek1-24/+33
2005-10-03Updated to fedora-glibc-20051003T2040Jakub Jelinek1-1/+1
2005-09-12 * malloc.c (struct malloc_chunk): Fix comment typo.Jakub Jelinek1-3/+7
(public_cALLOc): For mmapped chunks and perturb_byte != 0, don't clear SIZE_SZ bytes more than should be cleared.
2005-03-24Updated to fedora-glibc-20050324T0715cvs/fedora-glibc-2_3_4-17Jakub Jelinek1-3/+3
2005-03-19Updated to fedora-glibc-20050319T1907cvs/fedora-glibc-2_3_4-15Jakub Jelinek1-17/+68
2005-03-03Updated to fedora-glibc-20050302T1820Jakub Jelinek1-3/+4
2005-02-08Updated to fedora-glibc-20050208T0948cvs/fedora-glibc-2_3_4-6Jakub Jelinek1-3/+5
2004-12-13Updated to fedora-glibc-20041213T2323cvs/fedora-glibc-2_3_3-91Jakub Jelinek1-16/+29
2004-12-10Updated to fedora-glibc-20041210T0634Jakub Jelinek1-2/+13
2004-11-20Updated to fedora-glibc-20041120T0949Jakub Jelinek1-3/+10
2004-11-19chunksize(x) => x->sizeJakub Jelinek1-2/+2
2004-11-19Another version of the free checks.Jakub Jelinek1-2/+7
2004-11-16MINSIZE => 2 * SIZE_SZJakub Jelinek1-1/+2
2004-11-15 * malloc/malloc.c (_int_free): Further free () protection checks.Jakub Jelinek1-0/+8
2004-11-15Updated to fedora-glibc-20041115T0915Jakub Jelinek1-193/+161
2004-11-02Updated to fedora-glibc-20041102T1153Jakub Jelinek1-7/+19
2004-10-14Updated to fedora-glibc-20041014T0548Jakub Jelinek1-1/+5
2004-10-12Updated to fedora-glibc-20041012T1128cvs/fedora-glibc-2_3_3-67Jakub Jelinek1-0/+4
2004-10-04Updated to fedora-glibc-20041004T0747cvs/fedora-glibc-2_3_3-64Jakub Jelinek1-2/+18
2004-09-25Updated to fedora-glibc-20040925T0738Jakub Jelinek1-1/+8
2004-09-10nt_free): Only do arena boundary check for contiguous arenas.Ulrich Drepper1-2/+3
2004-09-09Update.Ulrich Drepper1-7/+14
2004-09-09 Ulrich Drepper <drepper@redhat.com> * malloc/hooks.c (top_check): Print top chunk corruption as normal error message. * malloc/malloc.c (malloc_printerr): Don't make informational message look like error message.
2004-09-09(_int_free): Add inexpensive double free and memory corruption tests. ↵Ulrich Drepper1-24/+50
(malloc_printf_nc): Renamed to malloc_printerr. Second parameter is no format string anymore. Don't use stdio. Adjust all callers.
2004-09-09Update.Ulrich Drepper1-0/+7
2004-09-08 Ulrich Drepper <drepper@redhat.com> * malloc/malloc.c (_int_free): Add inexpensive double free test.
2004-09-08Update.Ulrich Drepper1-13/+10
2004-09-08 Ulrich Drepper <drepper@redhat.com> * malloc/arena.c: Remove __MALLOC_P uses. * malloc/malloc.c: Likewise. * malloc/mtrace.c: Remove __P uses. * malloc/mcheck-init.c: Likewise.
2004-08-21Update.Ulrich Drepper1-15/+46
* malloc/hooks.c (DEFAULT_CHECK_ACTION): Moved to malloc.c. (check_action): Likewise. When printing error messages, use malloc_printf_nc now instead of fiddling with the streams cancellation flag in every place. * malloc/malloc.c (DEFAULT_CHECK_ACTION): New definition. Change default to 3. (check_action): New variable. (unlink): Print error message and eventually terminate in case list is corrupted. (malloc_printf_nc): New function. Use it in _int_free. Change proposed by Arjan van de Ven.
2004-08-13Update.Ulrich Drepper1-10/+12
2004-08-13 Ulrich Drepper <drepper@redhat.com> * elf/sprof.c (read_symbols): When comparing aliases, prefer strong over weak symbols if both don't start with '_'. * malloc/malloc.c: Use strong_alias instead of weak_alias wherever possible.
2004-03-19Update.Ulrich Drepper1-1/+3
2004-03-18 Ulrich Drepper <drepper@redhat.com> * malloc/malloc.c (__posix_memalign): Correct alignment check. Reported by Don Heller <dheller@cse.psu.edu>.
2004-03-05Update.Ulrich Drepper1-3/+26
* malloc/malloc.c: Don't call exported interface in the implementation.
2003-12-17Update.Ulrich Drepper1-1/+9
2003-12-17 Jakub Jelinek <jakub@redhat.com> * malloc/mtrace.c (tr_old_memalign_hook): New variable. (tr_memalignhook): New function. (mtrace): Register tr_memalignhook. (muntrace): Deregister tr_memalignhook. * malloc/malloc.c (__posix_memalign): If __memalign_hook != NULL, call it directly instead of memalign_internal. 2003-12-17 Ulrich Drepper <drepper@redhat.com> * misc/mntent_r.c: Change encoding to match recently change decoder. Patch by Alexander Achenbach <xela@slit.de>. 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com> * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct definition of vrregset_t. 2003-12-16 Steven Munroe <sjmunroe@us.ibm.com> * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [!__PPC64_ELF_H]: Extent conditional to include typedef elf_vrreg_t. 2002-12-17 Paolo Bonzini <bonzini@gnu.org> * posix/regexec.c (re_search_internal): Limit search to the beginning of the buffer if the initial states are empty for contexts that do not include CONTEXT_BEGBUF or, if !preg->newline_anchor, that do not include any one of CONTEXT_BEGBUF and CONTEXT_NEWLINE.
2003-09-30Update.Ulrich Drepper1-2/+3
2003-09-27 Wolfram Gloger <wg@malloc.de> * malloc/malloc.c: Include <malloc-machine.h> earlier instead of "thread-m.h", so that default parameters can be overridden in a system-specific malloc-machine.h. Remove extra ; from extern "C" closing brace. * sysdeps/generic/malloc-machine.h: New file. * sysdeps/mach/hurd/malloc-machine.h: New file. * malloc/thread-m.h: Removed. * malloc/Makefile: Remove CFLAGS-malloc.c parameter addition, it is in sysdeps/generic/malloc-machine.h now. * elf/dl-reloc.c (_dl_allocate_static_tls): Move definition of variables only used if TLS_TCB_AT_TP is defined into the #if branch.
2003-09-23Update.Ulrich Drepper1-0/+2
2003-09-22 Ulrich Drepper <drepper@redhat.com> * malloc/malloc.c: Include <stdint.h>.
2003-09-12Update.Ulrich Drepper1-1/+21
2003-09-12 Ulrich Drepper <drepper@redhat.com> * grp/Makefile (CFLAGS-getgrgid_r.c, CFLAGS-getgrnam_r.c, CFLAGS-fgetgrent.c, CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c, CFLAGS-initgroups.c, CFLAGS-getgrgid.c): Add -fexceptions. * inet/Makefile (CFLAGS-either_ntoh.c, CFLAGS-either_hton.c, CFLAGS-getnetgrent.c, CFLAGS-getnetgrent_r.c): Likewise. * io/Makefile (CFLAGS-posix_fallocate.c, CFLAGS-posix_fallocate64.c): Likewise. * misc/Makefile (CFLAGS-err.c): Likewise. * posix/Makefile (CFLAGS-getaddrinfo.c, CFLAGS-spawn.c, CFLAGS-spawnp.c, CFLAGS-spawni.c, CFLAGS-pause.c, CFLAGS-glob.c, CFLAGS-glob64.c): Likewise. * pwd/Makefile (CFLAGS-getpw.c): Likewise. * shadow/Makefile (CFLAGS-fgetspent.c, CFLAGS-fgetspent_r.c, CFLAGS-putspent.c, CFLAGS-getspnam.c, CFLAGS-getspnam_r.c): Likewise. * stdio-common/Makefile (CFLAGS-cuserid.c): Likewise. * sunrpc/Makefile (CFLAGS-openchild.c): Likewise. * stdlib/Makefile (CFLAGS-mkstemp.c): Remove definition. * libio/stdio.h: Remove __THROW from cuserid prototype. * locale/loadarchive.c: Use only non-cancelable interfaces. * resolv/herror.c (herror): Likewise. * malloc/hooks.c: Before using IO stream mark stream so it uses only non-cancelable interfaces. * malloc/malloc.c: Likewise. * posix/getopt.c: Likewise. 2003-09-11 Jakub Jelinek <jakub@redhat.com> * Makerules (LDFLAGS-c.so): Remove -u __register_frame. 2003-09-12 Ulrich Drepper <drepper@redhat.com> * stdio-common/stdio_ext.h: Mark most functions with __THROW. * misc/err.h: Remove __THROW from all prototypes. * posix/getopt.h (__THROW): Define if not already defined. Add __THROW to the getopt functions. 2003-09-11 Ulrich Drepper <drepper@redhat.com> * io/Makefile (CFLAGS-lockf.c): Add -fexceptions. (CFLAGS-fts.c): Likewise. * io/fcntl.h: Remove __THROW from lockf prototypes. * io/fts.h: Remove most __THROW.
2003-09-08Update.Ulrich Drepper1-5/+6
2003-09-08 Wolfram Gloger <wg@malloc.de> * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into contiguous case. Bug report from Prem Gopalan <prem@mazunetworks.com>. (mALLOPt): Avoid requirement of C99.
2003-08-19Update.Ulrich Drepper1-2/+8
* stdio-common/test-vfprintf.c (main): Don't write temporary file into source directory.
2003-08-19Update.Ulrich Drepper1-0/+7
* malloc/malloc.c (_int_free): Add cheap test for some invalid block sizes.
2003-06-18Update.Ulrich Drepper1-0/+2
* malloc/malloc.c (public_mALLINFo): Initialize malloc if it hasn't happened yet. Fix completely broken implementation. The second parameter is of
2003-05-01Update.Ulrich Drepper1-0/+2
2003-05-01 Ulrich Drepper <drepper@redhat.com> * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary. 2003-04-29 Andreas Schwab <schwab@suse.de> * string/test-strcat.c (do_one_test): Fix attribute name.
2003-04-30(mEMALIGn): Define alias __memalign_internal. (__posix_memalign): Use ↵Ulrich Drepper1-3/+4
__memalign_internal instead of memalign.