summaryrefslogtreecommitdiff
path: root/malloc
AgeCommit message (Collapse)Author
2009-11-12Merge remote branch 'origin/master' into fedora/masterAndreas Schwab
2009-11-06Fix spelling in memusagestat.cHolger Hans Peter Freyther
2009-11-01Restore locking in free_check.Ulrich Drepper
This code is only used when MALLOC_CHECK_ is used. Then some bogus crashes and/or assert could result from the locking changes. The code ain't fast.
2009-10-30Merge remote branch 'origin/master' into fedora/masterAndreas Schwab
2009-10-29Fix typos in format strings of malloc_info.John Sullivan
2009-10-29Fix repairing of memusage trace files.Ulrich Drepper
2009-10-29Fix wrap-around in memusage.Andreas Schwab
2009-09-01Merge commit 'origin/master' into fedora/masterAndreas Schwab
2009-08-31Add local assert function to avoid problems with memory allocation inUlrich Drepper
the real one.
2009-08-03Merge commit 'origin/master' into fedora/masterAndreas Schwab
2009-07-31Fix obstack* on i?86Jakub Jelinek
obstack calls several callbacks, so on i?86 it'd better be compiled without -mpreferred-stack-boundary=2, otherwise the callbacks are called with misaligned stack.
2009-07-20Merge commit 'origin/master' into fedora/masterAndreas Schwab
2009-07-16Fix race in corruption check.Ulrich Drepper
With atomic fastbins the checks performed can race with concurrent modifications of the arena. If we detect a problem re-do the test after getting the lock.
2009-07-16Use rel semantics of cas instead of acq semantics with full barrier before ↵Jakub Jelinek
it in _int_free The following patch fixes catomic_compare_and_exchange_*_rel definitions (which were never used and weren't correct) and uses catomic_compare_and_exchange_val_rel in _int_free. Comparing to the pre-2009-07-02 --enable-experimental-malloc state the generated code should be identical on all arches other than ppc/ppc64 and on ppc/ppc64 should use lwsync instead of isync barrier.
2009-07-02Fix possible race when freeing object in fast bin list.Ulrich Drepper
2009-06-26Merge commit 'origin/master' into fedora/masterAndreas Schwab
2009-06-18Add some more tests to malloc to detect corruptions.Ulrich Drepper
2009-06-16Don't treat bug reporting message as a format string.Andreas Schwab
2009-04-24Updated to fedora-glibc-20090424T0747cvs/fedora-glibc-2_9_90-20Jakub Jelinek
2009-04-18* malloc/malloc.c (malloc_info): Output address space information.Ulrich Drepper
2009-04-18* malloc/malloc.c (malloc_info): Also output system memory information.Ulrich Drepper
2009-04-17(top_check): Force hook value into register.Ulrich Drepper
2009-04-16[BZ #9957]Ulrich Drepper
2009-04-16 Ulrich Drepper <drepper@redhat.com> [BZ #9957] * malloc/malloc.c (force_reg): Define. (sYSMALLOc): Load hook variable into variable before test and force into register. (sYSTRIm): Likewise. (public_mALLOc): Force hook value into register. (public_fREe): Likewise. (public_rEALLOc): Likewise. (public_mEMALIGn): Likewise. (public_vALLOc): Likewise. (public_pVALLOc): Likewise. (public_cALLOc): Likewise. (__posix_memalign): Likewise. * malloc/arena.c (ptmalloc_init): Load hook variable into variable before test and force into register. * malloc/hooks.c (top_check): Likewise. (public_s_ET_STATe): Pretty printing. * resolv/res_send.c (send_dg): Don't just ignore the result we got in case we only receive one reply in single-request mode.
2009-04-09Updated to fedora-glibc-20090409T1422cvs/fedora-glibc-2_9_90-15Jakub Jelinek
2009-04-09* malloc/malloc.c (malloc_info): New function.cvs/fedora-glibc-20090409T1422Ulrich Drepper
* malloc/malloc.h: Declare it. * malloc/Versions: Export malloc_info for GLIBC_2.10. * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
2009-04-08* malloc/malloc.c (_int_realloc): Add parameter with old blockUlrich Drepper
size. Remove duplicated test. Don't handle mmap'ed blocks here. Adjust all callers. * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
2009-03-20Updated to fedora-glibc-20090320T1944cvs/fedora-glibc-2_9_90-11Jakub Jelinek
2009-03-13* config.h.in (USE_MULTIARCH): Define.Ulrich Drepper
* configure.in: Handle --enable-multi-arch. * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC. (_dl_fixup_profile): Likewise. * elf/do-lookup.c (dl_lookup_x): Likewise. * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC. * elf/elf.h (STT_GNU_IFUNC): Define. * include/libc-symbols.h (libc_ifunc): Define. * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the framework in init-arch.h to get CPUID values. * sysdeps/x86_64/multiarch/Makefile: New file. * sysdeps/x86_64/multiarch/init-arch.c: New file. * sysdeps/x86_64/multiarch/init-arch.h: New file. * sysdeps/x86_64/multiarch/sched_cpucount.c: New file. * config.make.in (experimental-malloc): Define. * configure.in: Handle --enable-experimental-malloc. * malloc/Makefile: Handle experimental-malloc flag. * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features. * malloc/arena.c: Likewise. * malloc/hooks.c: Likewise. * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
2009-02-18Updated to fedora-glibc-20090218T1534Jakub Jelinek
2009-02-16* stdlib/monetary.h: Uglify function parameter names. cvs/fedora-glibc-20090218T1534Jakub Jelinek
* sunrpc/rpc/pmap_clnt.h: Likewise. * sunrpc/rpc/svc.h: Likewise. * sunrpc/rpc/xdr.h: Likewise. * sunrpc/rpc/clnt.h: Likewise. * resolv/netdb.h: Likewise. * resolv/arpa/nameser.h: Likewise. * resolv/resolv.h: Likewise. * argp/argp.h: Likewise. * locale/langinfo.h: Likewise. * io/sys/stat.h: Likewise. * posix/spawn.h: Likewise. * nis/rpcsvc/nislib.h: Likewise. * malloc/obstack.h: Likewise. * sysdeps/ia64/bits/link.h: Likewise. * sysdeps/i386/bits/link.h: Likewise. * sysdeps/s390/bits/link.h: Likewise. * sysdeps/powerpc/bits/link.h: Likewise. * sysdeps/x86_64/bits/link.h: Likewise. * sysdeps/sparc/bits/link.h: Likewise. * sysdeps/sh/bits/link.h: Likewise. * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise. * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise. 2009-02-16 Jakub Jelinek <jakub@redhat.com> * stdlib/monetary.h: Uglify function parameter names. * sunrpc/rpc/pmap_clnt.h: Likewise. * sunrpc/rpc/svc.h: Likewise. * sunrpc/rpc/xdr.h: Likewise. * sunrpc/rpc/clnt.h: Likewise. * resolv/netdb.h: Likewise. * resolv/arpa/nameser.h: Likewise. * resolv/resolv.h: Likewise. * argp/argp.h: Likewise. * locale/langinfo.h: Likewise. * io/sys/stat.h: Likewise. * posix/spawn.h: Likewise. * nis/rpcsvc/nislib.h: Likewise. * malloc/obstack.h: Likewise. * sysdeps/ia64/bits/link.h: Likewise. * sysdeps/i386/bits/link.h: Likewise. * sysdeps/s390/bits/link.h: Likewise. * sysdeps/powerpc/bits/link.h: Likewise. * sysdeps/x86_64/bits/link.h: Likewise. * sysdeps/sparc/bits/link.h: Likewise. * sysdeps/sh/bits/link.h: Likewise. * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise. * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2009-02-07(_int_realloc): Likewise. Third argument is now padded sizeUlrich Drepper
2009-02-07* malloc/malloc.c (_int_free): Second argument is now mchunkptr.Ulrich Drepper
Change all callers. (_int_realloc): Likewise. All _int_* functions are now static. * malloc/hooks.c: Change all callers to _int_free and _int_realloc. * malloc/arena.c: Likewise. * include/malloc.h: Remove now unnecessary declarations of the _int_* functions.
2009-02-07* malloc/malloc.c: Add branch prediction for use of the hooks.Ulrich Drepper
2009-02-06* debug/xtrace.sh: Unify translatable messages.Ulrich Drepper
* elf/ldd.bash.in: Likewise. * elf/sprof.c: Likewise. * locale/programs/locale.c: Likewise. * malloc/memusage.sh: Likewise. * nss/getent.c: Likewise. 2009-02-06 Joseph Myers <joseph@codesourcery.com> * debug/pcprofiledump.c (print_version, argp_program_version_hook): New function. * elf/ldconfig.c (more_help): New function. (argp): Use it. * elf/sln.c (usage): New function. (main): Support --help and --version. * malloc/memusagestat.c (print_version): New function. (argp_program_version_hook): New variable. * nscd/nscd.c (more_help): New function. (argp): Use it. * posix/getconf.c (main): Send --version output to stdout. Support --help. * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS arguments. All callers changed. (print_version): New function. (parseargs): Support --help and --version. * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers changed. (print_version): New function. (main): Use getopt_long. Support --help and --version. * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and --version. 2009-02-06 Ulrich Drepper <drepper@redhat.com>
2009-02-06* malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.Ulrich Drepper
(update_data): Fix handling of wrapping back
2009-02-06* malloc/memusage.c (update_data): Fix handling of wrapping backUlrich Drepper
to the beginning of the buffer.
2009-02-04Updated to fedora-glibc-20090204T2135cvs/fedora-glibc-2_9_90-3Jakub Jelinek
2009-01-30* malloc/malloc.c (sYSMALLOc): Don't use assert when detectingUlrich Drepper
manipulated brk, use malloc_printerr. * misc/sbrk.c (__sbrk): Better error handling for nonsense requests.
2009-01-02Updated to fedora-glibc-20090102T2110cvs/fedora-glibc-2_9_90-1Jakub Jelinek
2009-01-02* posix/getconf.c: Update copyright year.Ulrich Drepper
* nss/getent.c: Likewise. * iconv/iconvconfig.c: Likewise. * iconv/iconv_prog.c: Likewise. * elf/ldconfig.c: Likewise. * catgets/gencat.c: Likewise. * csu/version.c: Likewise. * elf/ldd.bash.in: Likewise. * elf/sprof.c (print_version): Likewise. * locale/programs/locale.c: Likewise. * locale/programs/localedef.c: Likewise. * nscd/nscd.c (print_version): Likewise. * debug/xtrace.sh: Likewise. * malloc/memusage.sh: Likewise. * malloc/mtrace.pl: Likewise. * debug/catchsegv.sh: Likewise.
2008-11-12Updated to fedora-glibc-20081112T2008cvs/fedora-glibc-2_8_90-17Jakub Jelinek
2008-11-03* malloc/malloc.c (public_rEALLOc): When new arena is used, copyUlrich Drepper
really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2008-10-20Updated to fedora-glibc-20081019T1815cvs/fedora-glibc-2_8_90-14Jakub Jelinek
2008-09-12(public_vALLOc): Try other arenas in case _int_valloc fails. ↵Ulrich Drepper
(public_pVALLOc): Likewise.
2008-07-28Updated to fedora-glibc-20080728T2320cvs/fedora-glibc-2_8_90-10Jakub Jelinek
2008-07-26* malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. DropUlrich Drepper
F_SETFD use if we know fopen set the flag.
2008-07-16Updated to fedora-glibc-20080716T0944cvs/fedora-glibc-2_8_90-9Jakub Jelinek
2008-07-15(__malloc_check_init): Remove printf.Ulrich Drepper
2008-04-08Updated to fedora-glibc-20080408T0706Jakub Jelinek
2008-04-07* malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.Jakub Jelinek
2008-04-07 Jakub Jelinek <jakub@redhat.com> * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.