aboutsummaryrefslogtreecommitdiff
path: root/malloc
AgeCommit message (Collapse)Author
2013-05-16Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).Ryan S. Arnold
2013-05-15Move _obstack_compat out of commonPeter Collingbourne
it is impossible to create an alias of a common symbol (as compat_symbol does), because common symbols do not have a section or an offset until linked. GNU as tolerates aliases of common symbols by simply creating another common symbol, but other assemblers (notably LLVM's integrated assembler) are less tolerant. 2013-05-15 Peter Collingbourne <pcc@google.com> * malloc/obstack.c (_obstack_compat): Add initializer. -
2013-03-18BZ#14812: Add missing translation marker on some argp option argument names ↵Roland McGrath
in utilities.
2013-03-08Remove __malloc_ptr_t.Joseph Myers
2013-03-08Use ISO C prototype for __default_morecore.Joseph Myers
2013-03-08Remove __malloc_ptrdiff_t.Joseph Myers
2013-03-08Remove __malloc_size_t.Joseph Myers
2013-02-26Fix FPE in memusagestat when malloc utilization is zeroSiddhesh Poyarekar
[BZ #15160] Draw graphs for heap and stack only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
2013-01-17Add HAVE_MREMAP for mremap usagePino Toscano
Introduce (only on Linux) and use a HAVE_MREMAP symbol to advertize mremap availability. Move the malloc-sysdep.h include from arena.c to malloc.c, since what is provided by malloc-sysdep.h is needed earlier in malloc.c, before the inclusion of arena.c.
2013-01-11Add --enable-hardcoded-path-in-tests configure optionH.J. Lu
2013-01-07Clean up __MALLOC_* macros.Joseph Myers
2013-01-03mtrace: properly handle realloc (p, 0)Andreas Schwab
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers
2013-01-01Add script to update copyright notices and reformat some to facilitate its use.Joseph Myers
2013-01-01Update copyright years.David S. Miller
* catgets/gencat.c: Update copyright year. * csu/version.c: Likewise. * debug/catchsegv.sh: Likewise. * debug/pcprofiledump.c: Likewise. * debug/xtrace.sh: Likewise. * elf/ldconfig.c: Likewise. * elf/ldd.bash.in: Likewise. * elf/pldd.c: Likewise. * elf/sotruss.ksh: Likewise. * elf/sprof.c: Likewise. * iconv/iconv_prog.c: Likewise. * iconv/iconvconfig.c: Likewise. * locale/programs/locale.c: Likewise. * locale/programs/localedef.c: Likewise. * login/programs/pt_chown.c: Likewise. * malloc/memusage.sh: Likewise. * malloc/memusagestat.c: Likewise. * malloc/mtrace.pl: Likewise. * nscd/nscd.c: Likewise. * nss/getent.c: Likewise. * nss/makedb.c: Likewise. * posix/getconf.c: Likewise.
2012-11-19muntrace: reset file and hooks before finalizing the streamPino Toscano
fclose will call free, invoking its hook, then fprintf which would indirectly try to allocate a buffer, and this can cause malloc to be used (thus its hook to be invoked) if libio uses malloc instead of mmap; given any malloc/free hook locks the internal lock, this leads to a deadlock. To prevent this hook roundtrip at muntrace, first unset MALLSTREAM and the hooks, and only after that close the trace file.
2012-11-15Update --version copyright dates for memusagestat and pcprofiledump.Joseph Myers
2012-11-09Support --with-pkgversion and --with-bugurl.Joseph Myers
2012-10-24Define and use $(run-built-tests).Joseph Myers
2012-10-19Use $(run-program-prefix) in more shell script tests.Joseph Myers
2012-10-04Name space hygeine for madvise.Roland McGrath
2012-10-02Clarify memory allocation error diagnostics to avoid confusionDmitry V. Levin
2012-09-25Shrink heap on linux when overcommit_memory == 2Siddhesh Poyarekar
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.
2012-09-25Set "fail on error" mode directly in testsuite shell scriptsDmitry V. Levin
2012-09-24Properly handle fencepost with MALLOC_ALIGN_MASKH.J. Lu
2012-09-07Cleanup code duplication in malloc on fallback to use another arenaSiddhesh Poyarekar
Break the fallback code to try another arena into a separate function for readability.
2012-09-05* malloc/arena.c: Fold copyright years.Alexandre Oliva
* malloc/mcheck.c, malloc/memusage.c: Likewise.
2012-09-05* malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.Alexandre Oliva
2012-09-05Don't change no_dyn_threshold on mallopt failureAlexandre Oliva
* malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not change internal state upon failure.
2012-09-05Fix typos in malloc/.Alexandre Oliva
* malloc/mcheck.c (mcheck_check_all): Fix typo. * malloc/memusage.c (mmap): Likewise. (mmap64, mremap): Likewise. Adjust name in comment.
2012-09-05Return requested size for malloc_usable_size when MALLOC_CHECK_ > 0Siddhesh Poyarekar
[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.
2012-08-17Make malloc build for no-threads configurations.Roland McGrath
2012-08-10Fix whitespace problems detected by commit hooks.Jeff Law
2012-08-10 [BZ #13939]Jeff Law
* 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.
2012-07-25Rename __secure_getenv to secure_getenvFlorian Weimer
2012-05-24Make free chunk size a multiple of MALLOC_ALIGNMENTH.J. Lu
2012-05-24Remove use of INTDEF/INTUSE in libioAndreas Schwab
2012-05-24Properly handle MALLOC_ALIGNMENT > 2 * SIZE_SZH.J. Lu
2012-05-21Fix last changeAndreas Jaeger
Include shlib-compat.h for SHLIB_COMPAT.
2012-05-21Set MALLOC_ALIGNMENT to at least __alignof__ (long double) for new ABIs.Roland McGrath
2012-05-16For [BZ #208], accumulate malloc stats over all arenas.Paul Pluzhnikov
2012-05-03Fix tst-obprintf - and mcheck in generalAndreas Jaeger
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).
2012-03-28Avoid warnings in test malloc programUlrich Drepper
2012-03-20Move stdio-common/_itoa.h to sysdeps/genericH.J. Lu
2012-03-07Remove distribute variable from MakefilesUlrich Drepper
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert
2012-01-31Cleanups of mallocUlrich Drepper
Remove ugly names and unnecessary wrappers.
2012-01-31Handle ARENA_TEST correctlyUlrich Drepper
2012-01-26Remove __STDC__ conditionals from installed headers.Joseph Myers
2012-01-17More minor malloc cleanupsUlrich Drepper