about summary refs log tree commit diff
path: root/malloc
Commit message (Collapse)AuthorAgeFilesLines
* Update --version copyright dates for memusagestat and pcprofiledump.Joseph Myers2012-11-151-3/+2
|
* Support --with-pkgversion and --with-bugurl.Joseph Myers2012-11-094-18/+19
|
* Define and use $(run-built-tests).Joseph Myers2012-10-241-1/+1
|
* Use $(run-program-prefix) in more shell script tests.Joseph Myers2012-10-192-2/+3
|
* Name space hygeine for madvise.Roland McGrath2012-10-042-2/+2
|
* Clarify memory allocation error diagnostics to avoid confusionDmitry V. Levin2012-10-021-2/+1
|
* Shrink heap on linux when overcommit_memory == 2Siddhesh Poyarekar2012-09-251-3/+6
| | | | | | | | | | | | | Using madvise with MADV_DONTNEED to release memory back to the kernel is not sufficient to change the commit charge accounted against the process on Linux. It is OK however, when overcommit is enabled or is heuristic. However, when overcommit is restricted to a percentage of memory setting the contents of /proc/sys/vm/overcommit_memory as 2, it makes a difference since memory requests will fail. Hence, we do what we do with secure exec binaries, which is to call mmap on the region to be dropped with MAP_FIXED. This internally unmaps the pages in question and reduces the amount of memory accounted against the process.
* Set "fail on error" mode directly in testsuite shell scriptsDmitry V. Levin2012-09-252-3/+4
|
* Properly handle fencepost with MALLOC_ALIGN_MASKH.J. Lu2012-09-241-3/+7
|
* Cleanup code duplication in malloc on fallback to use another arenaSiddhesh Poyarekar2012-09-072-75/+32
| | | | | Break the fallback code to try another arena into a separate function for readability.
* * malloc/arena.c: Fold copyright years.Alexandre Oliva2012-09-053-5/+3
| | | | * malloc/mcheck.c, malloc/memusage.c: Likewise.
* * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.Alexandre Oliva2012-09-051-2/+2
|
* Don't change no_dyn_threshold on mallopt failureAlexandre Oliva2012-09-051-2/+4
| | | | | * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not change internal state upon failure.
* Fix typos in malloc/.Alexandre Oliva2012-09-052-4/+4
| | | | | | * malloc/mcheck.c (mcheck_check_all): Fix typo. * malloc/memusage.c (mmap): Likewise. (mmap64, mremap): Likewise. Adjust name in comment.
* Return requested size for malloc_usable_size when MALLOC_CHECK_ > 0Siddhesh Poyarekar2012-09-054-5/+86
| | | | | | | | | | | [BZ #1349] malloc_usable_size returns the usable size in an allocated chunk, which may be >= the requested size. In the case of MALLOC_CHECK_ being exported to > 0 however, only the requested size is usable, since a magic value is written at the end of the request size to trap writes beyond request bounds. Hence, when MALLOC_CHECK_ is exported to > 0, malloc_usable_size() should return the request size.
* Make malloc build for no-threads configurations.Roland McGrath2012-08-172-5/+10
|
* Fix whitespace problems detected by commit hooks.Jeff Law2012-08-102-7/+7
|
* [BZ #13939]Jeff Law2012-08-102-27/+45
| | | | | | | | | | | | | * malloc.c/arena.c (reused_arena): New parameter, avoid_arena. When avoid_arena is set, don't retry in the that arena. Pick the next one, whatever it might be. (arena_get2): New parameter avoid_arena, pass through to reused_arena. (arena_lock): Pass in new parameter to arena_get2. * malloc/malloc.c (__libc_memalign): Pass in new parameter to arena_get2. (__libc_malloc): Unify retrying after main arena failure with __libc_memalign version. (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
* Rename __secure_getenv to secure_getenvFlorian Weimer2012-07-251-1/+1
|
* Make free chunk size a multiple of MALLOC_ALIGNMENTH.J. Lu2012-05-241-4/+6
|
* Remove use of INTDEF/INTUSE in libioAndreas Schwab2012-05-241-2/+2
|
* Properly handle MALLOC_ALIGNMENT > 2 * SIZE_SZH.J. Lu2012-05-241-14/+64
|
* Fix last changeAndreas Jaeger2012-05-211-0/+2
| | | | Include shlib-compat.h for SHLIB_COMPAT.
* Set MALLOC_ALIGNMENT to at least __alignof__ (long double) for new ABIs.Roland McGrath2012-05-211-10/+14
|
* For [BZ #208], accumulate malloc stats over all arenas.Paul Pluzhnikov2012-05-161-19/+32
|
* Fix tst-obprintf - and mcheck in generalAndreas Jaeger2012-05-031-0/+6
| | | | | | | | | | | | | | | | tst-obprintf failed with GCC 4.7. It turned out that this is the fault of GCC optimizing away the following from malloc/mcheck.c: /* We call malloc() once here to ensure it is initialized. */ void *p = malloc (0); free (p); gcc sees the malloc(0);free pair and removes it completely. And now malloc is not properly initialized and we screw up if both mcheck is used (via tst-obprintf) and MALLOC_CHECK_ is set (as it is in my environment).
* Avoid warnings in test malloc programUlrich Drepper2012-03-281-6/+9
|
* Move stdio-common/_itoa.h to sysdeps/genericH.J. Lu2012-03-202-2/+2
|
* Remove distribute variable from MakefilesUlrich Drepper2012-03-071-9/+2
|
* Replace FSF snail mail address with URLs.Paul Eggert2012-02-0924-71/+47
|
* Cleanups of mallocUlrich Drepper2012-01-313-195/+139
| | | | Remove ugly names and unnecessary wrappers.
* Handle ARENA_TEST correctlyUlrich Drepper2012-01-311-2/+9
|
* Remove __STDC__ conditionals from installed headers.Joseph Myers2012-01-261-4/+4
|
* More minor malloc cleanupsUlrich Drepper2012-01-171-24/+1
|
* Minor cleanups of malloc codeUlrich Drepper2012-01-162-55/+3
|
* Remove pre-ISO C supportUlrich Drepper2012-01-075-22/+22
| | | | No more __const.
* Implement aligned_allocUlrich Drepper2012-01-012-0/+5
|
* Update copyright yearUlrich Drepper2012-01-012-4/+4
|
* Optimize tr_freehookUlrich Drepper2011-12-221-3/+5
|
* Fix comment in mcheck.hUlrich Drepper2011-12-031-2/+2
|
* Don't call reused_arena when _int_new_arena failedAndreas Schwab2011-11-141-5/+5
|
* Check malloc arana limit atomicallyAndreas Schwab2011-11-101-30/+35
|
* Avoid assertion in processes with VM in bad shapeUlrich Drepper2011-10-291-4/+4
|
* Avoid cast in non-gcc obstack_freeUlrich Drepper2011-09-111-4/+4
|
* Remove MALLOC_FAILURE_ACTION use in mallocUlrich Drepper2011-09-102-23/+8
|
* Simplify malloc initializationUlrich Drepper2011-09-103-78/+43
| | | | | | Singificantly reduce the code needed at malloc initialization. In the process getpagesize is simplified by always initializing GLRO(dl_pagesize).
* Simplify malloc codeUlrich Drepper2011-09-104-1745/+246
| | | | Remove all kinds of unused configuration options and dead code.
* Remove support for !USE___THREADUlrich Drepper2011-09-103-54/+3
|
* Cleanup of configuration optionsUlrich Drepper2011-09-102-39/+3
| | | | Make several tool features mandatory and simplify the code.
* (memalign_check): No need to use checked_request2size.Ulrich Drepper2011-07-081-3/+1
|