about summary refs log tree commit diff
path: root/malloc/malloc.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove doubled words.Jim Meyering2011-04-221-2/+2
|
* Use fastbin macro everywhere.Ulrich Drepper2010-12-251-1/+1
|
* Fix perturbing in malloc on free.Ulrich Drepper2010-10-241-2/+2
|
* Replace divide and multiply with mask in sYSTRImAnton Blanchard2010-08-161-1/+1
|
* Fix race in free sanity check.Ulrich Drepper2010-05-061-6/+9
|
* Remove unintended change.Ulrich Drepper2010-04-141-4/+0
|
* Optimie x86-64 SSE4 memcmp for unaligned data.H.J. Lu2010-04-141-0/+4
|
* Fix possibly uninitilized variable handling.Ulrich Drepper2010-04-081-0/+1
| | | | | | If malloc errors are ignored (which say aren't by default and never should be) malloc in the old, slow form might use an uninitialized variable.
* One more sanity check in free.Ulrich Drepper2010-04-031-1/+14
|
* Fix set_max_fast in malloc.Ulrich Drepper2010-04-031-1/+2
|
* Remove stale reference to websiteUlrich Drepper2010-03-261-2/+1
|
* Remove unwanted malloc changes, again.Ulrich Drepper2010-03-261-14/+1
|
* Merge branch 'master' of ssh://sources.redhat.com/git/glibcUlrich Drepper2010-03-251-1/+14
| | | | | Conflicts: ChangeLog
* Fix typos I added in malloc.cUlrich Drepper2010-02-241-2/+2
|
* Fix assertion in palloc and pvalloc as well.Petr Baudis2010-02-241-7/+9
|
* Undo unintended maloc change.Ulrich Drepper2010-02-101-15/+2
|
* Avoid PLT call to fegetenv on s390Andreas Schwab2010-02-091-2/+15
|
* Fix malloc_info without prioor allocations.Ulrich Drepper2010-01-141-17/+24
|
* Fix typos in format strings of malloc_info.John Sullivan2009-10-291-2/+2
|
* Add local assert function to avoid problems with memory allocation inUlrich Drepper2009-08-311-439/+461
| | | | the real one.
* Fix race in corruption check.Ulrich Drepper2009-07-161-2/+23
| | | | | | 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.
* Use rel semantics of cas instead of acq semantics with full barrier before ↵Jakub Jelinek2009-07-161-2/+1
| | | | | | | | | | | 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.
* Fix possible race when freeing object in fast bin list.Ulrich Drepper2009-07-021-0/+1
|
* Add some more tests to malloc to detect corruptions.Ulrich Drepper2009-06-181-2/+27
|
* * malloc/malloc.c (malloc_info): Output address space information.Ulrich Drepper2009-04-181-3/+29
|
* * malloc/malloc.c (malloc_info): Also output system memory information.Ulrich Drepper2009-04-181-2/+17
|
* [BZ #9957]Ulrich Drepper2009-04-161-18/+31
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* * malloc/malloc.c (malloc_info): New function. cvs/fedora-glibc-20090409T1422Ulrich Drepper2009-04-091-0/+146
| | | | | | | * malloc/malloc.h: Declare it. * malloc/Versions: Export malloc_info for GLIBC_2.10. * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
* * malloc/malloc.c (_int_realloc): Add parameter with old blockUlrich Drepper2009-04-081-16/+17
| | | | | | size. Remove duplicated test. Don't handle mmap'ed blocks here. Adjust all callers. * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
* * config.h.in (USE_MULTIARCH): Define.Ulrich Drepper2009-03-131-33/+227
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* (_int_realloc): Likewise. Third argument is now padded sizeUlrich Drepper2009-02-071-11/+7
|
* * malloc/malloc.c (_int_free): Second argument is now mchunkptr.Ulrich Drepper2009-02-071-48/+42
| | | | | | | | | | 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.
* * malloc/malloc.c: Add branch prediction for use of the hooks.Ulrich Drepper2009-02-071-11/+11
|
* * malloc/malloc.c (sYSMALLOc): Don't use assert when detectingUlrich Drepper2009-01-301-2/+2
| | | | | | manipulated brk, use malloc_printerr. * misc/sbrk.c (__sbrk): Better error handling for nonsense requests.
* * malloc/malloc.c (public_rEALLOc): When new arena is used, copyUlrich Drepper2008-11-031-1/+1
| | | | really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
* (public_vALLOc): Try other arenas in case _int_valloc fails. ↵Ulrich Drepper2008-09-121-6/+51
| | | | (public_pVALLOc): Likewise.
* [BZ #5736]Ulrich Drepper2008-03-041-1/+1
| | | | * malloc/malloc.c: Fix typo in comment.
* * pthread-errnos.sym: Add EOVERFLOW.Ulrich Drepper2008-01-101-1/+2
| | | | | | | * sysdeps/unix/sysv/linux/structsem.sym: Add SEM_VALUE_MAX. * sysdeps/unix/sysv/linux/sem_post.c: Don't overflow value field. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
* [BZ #5541]Ulrich Drepper2008-01-091-1/+2
| | | | | | * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and pollfd structures. Patch by André Cruz.
* [BZ #5553]Ulrich Drepper2008-01-091-8/+11
| | | | | | | | 2008-01-09 Ulrich Drepper <drepper@redhat.com> [BZ #5553] * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena. (public_mEMALIGn): Likewise. Patch mostly by Daniel Jacobowitz.
* * malloc/malloc.c (public_cALLOc): For arena other thanUlrich Drepper2007-12-171-0/+6
| | | | | main_arena, count all bytes inside the mprotect_size range of the heap as uninitialized.
* * malloc/malloc.c (public_mTRIm): Iterate over all arenas and callUlrich Drepper2007-12-161-16/+63
| | | | | | | | | mTRIm for all of them. (mTRIm): Additionally iterate over all free blocks and use madvise to free memory for all those blocks which contain at least one memory page. * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
* * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in thisUlrich Drepper2007-12-111-2/+2
| | | | case don't call alloc_perturb.
* [BZ #4941]Ulrich Drepper2007-10-021-0/+4
| | | | * locales/oc_FR: Fix Thursday abday and August mon and abmon data.
* * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.Ulrich Drepper2007-05-211-26/+2
| | | | | | | | | | | | | | | | (public_sET_STATe): If ms->version < 3, put all chunks into unsorted chunks and clear {fd,bk}_nextsize fields of largebin chunks. * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes. * malloc/hooks.c: Likewise. * malloc/arena.c: Likewise. * malloc/malloc.c (do_check_malloc_state): Don't assert n_mmaps is not greater than n_mmaps_max. This removes the need for the previous change. * malloc/Makefile (CFLAGS-malloc.c): Revert accidental 2007-05-07 commit.
* * malloc/malloc.c (do_check_chunk): Correct check for mmaped blockUlrich Drepper2007-05-191-1/+1
| | | | not overlapping with arena.
* * malloc/malloc.c: Use all small bin slots on 64-bit archs.Ulrich Drepper2007-05-151-4/+19
| | | | | * malloc/malloc.c (largebin_index): Really have 32 buckets with 64 sizes.
* * malloc/malloc.c (largebin_index): Really have 32 buckets with 64 sizes.Ulrich Drepper2007-05-141-1/+1
| | | | 2007-05-13 Ulrich Drepper <drepper@redhat.com>
* [MALLOC_DEBUG]: Keep track of current maximum number of mmaps. n_mmaps_max ↵Ulrich Drepper2007-05-131-3/+26
| | | | is the target.
* [BZ #4349]Ulrich Drepper2007-04-301-25/+110
| | | | | | | | | | | 2007-04-30 Ulrich Drepper <drepper@redhat.com> Jakub Jelinek <jakub@redhat.com> [BZ #4349] * malloc/malloc.c: Keep separate list for first blocks on the bin lists with a given size. This helps skipping over list elements we know won't fit in two places. Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.