Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2012-11-19 | muntrace: reset file and hooks before finalizing the stream | Pino Toscano | 1 | -2/+7 | |
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-15 | Update --version copyright dates for memusagestat and pcprofiledump. | Joseph Myers | 1 | -3/+2 | |
2012-11-09 | Support --with-pkgversion and --with-bugurl. | Joseph Myers | 4 | -18/+19 | |
2012-10-24 | Define and use $(run-built-tests). | Joseph Myers | 1 | -1/+1 | |
2012-10-19 | Use $(run-program-prefix) in more shell script tests. | Joseph Myers | 2 | -2/+3 | |
2012-10-04 | Name space hygeine for madvise. | Roland McGrath | 2 | -2/+2 | |
2012-10-02 | Clarify memory allocation error diagnostics to avoid confusion | Dmitry V. Levin | 1 | -2/+1 | |
2012-09-25 | Shrink heap on linux when overcommit_memory == 2 | Siddhesh Poyarekar | 1 | -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. | |||||
2012-09-25 | Set "fail on error" mode directly in testsuite shell scripts | Dmitry V. Levin | 2 | -3/+4 | |
2012-09-24 | Properly handle fencepost with MALLOC_ALIGN_MASK | H.J. Lu | 1 | -3/+7 | |
2012-09-07 | Cleanup code duplication in malloc on fallback to use another arena | Siddhesh Poyarekar | 2 | -75/+32 | |
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 | 3 | -5/+3 | |
* malloc/mcheck.c, malloc/memusage.c: Likewise. | |||||
2012-09-05 | * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation. | Alexandre Oliva | 1 | -2/+2 | |
2012-09-05 | Don't change no_dyn_threshold on mallopt failure | Alexandre Oliva | 1 | -2/+4 | |
* malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not change internal state upon failure. | |||||
2012-09-05 | Fix typos in malloc/. | Alexandre Oliva | 2 | -4/+4 | |
* malloc/mcheck.c (mcheck_check_all): Fix typo. * malloc/memusage.c (mmap): Likewise. (mmap64, mremap): Likewise. Adjust name in comment. | |||||
2012-09-05 | Return requested size for malloc_usable_size when MALLOC_CHECK_ > 0 | Siddhesh Poyarekar | 4 | -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. | |||||
2012-08-17 | Make malloc build for no-threads configurations. | Roland McGrath | 2 | -5/+10 | |
2012-08-10 | Fix whitespace problems detected by commit hooks. | Jeff Law | 2 | -7/+7 | |
2012-08-10 | [BZ #13939] | Jeff Law | 2 | -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. | |||||
2012-07-25 | Rename __secure_getenv to secure_getenv | Florian Weimer | 1 | -1/+1 | |
2012-05-24 | Make free chunk size a multiple of MALLOC_ALIGNMENT | H.J. Lu | 1 | -4/+6 | |
2012-05-24 | Remove use of INTDEF/INTUSE in libio | Andreas Schwab | 1 | -2/+2 | |
2012-05-24 | Properly handle MALLOC_ALIGNMENT > 2 * SIZE_SZ | H.J. Lu | 1 | -14/+64 | |
2012-05-21 | Fix last change | Andreas Jaeger | 1 | -0/+2 | |
Include shlib-compat.h for SHLIB_COMPAT. | |||||
2012-05-21 | Set MALLOC_ALIGNMENT to at least __alignof__ (long double) for new ABIs. | Roland McGrath | 1 | -10/+14 | |
2012-05-16 | For [BZ #208], accumulate malloc stats over all arenas. | Paul Pluzhnikov | 1 | -19/+32 | |
2012-05-03 | Fix tst-obprintf - and mcheck in general | Andreas Jaeger | 1 | -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). | |||||
2012-03-28 | Avoid warnings in test malloc program | Ulrich Drepper | 1 | -6/+9 | |
2012-03-20 | Move stdio-common/_itoa.h to sysdeps/generic | H.J. Lu | 2 | -2/+2 | |
2012-03-07 | Remove distribute variable from Makefiles | Ulrich Drepper | 1 | -9/+2 | |
2012-02-09 | Replace FSF snail mail address with URLs. | Paul Eggert | 24 | -71/+47 | |
2012-01-31 | Cleanups of malloc | Ulrich Drepper | 3 | -195/+139 | |
Remove ugly names and unnecessary wrappers. | |||||
2012-01-31 | Handle ARENA_TEST correctly | Ulrich Drepper | 1 | -2/+9 | |
2012-01-26 | Remove __STDC__ conditionals from installed headers. | Joseph Myers | 1 | -4/+4 | |
2012-01-17 | More minor malloc cleanups | Ulrich Drepper | 1 | -24/+1 | |
2012-01-16 | Minor cleanups of malloc code | Ulrich Drepper | 2 | -55/+3 | |
2012-01-07 | Remove pre-ISO C support | Ulrich Drepper | 5 | -22/+22 | |
No more __const. | |||||
2012-01-01 | Implement aligned_alloc | Ulrich Drepper | 2 | -0/+5 | |
2012-01-01 | Update copyright year | Ulrich Drepper | 2 | -4/+4 | |
2011-12-22 | Optimize tr_freehook | Ulrich Drepper | 1 | -3/+5 | |
2011-12-03 | Fix comment in mcheck.h | Ulrich Drepper | 1 | -2/+2 | |
2011-11-14 | Don't call reused_arena when _int_new_arena failed | Andreas Schwab | 1 | -5/+5 | |
2011-11-10 | Check malloc arana limit atomically | Andreas Schwab | 1 | -30/+35 | |
2011-10-29 | Avoid assertion in processes with VM in bad shape | Ulrich Drepper | 1 | -4/+4 | |
2011-09-11 | Avoid cast in non-gcc obstack_free | Ulrich Drepper | 1 | -4/+4 | |
2011-09-10 | Remove MALLOC_FAILURE_ACTION use in malloc | Ulrich Drepper | 2 | -23/+8 | |
2011-09-10 | Simplify malloc initialization | Ulrich Drepper | 3 | -78/+43 | |
Singificantly reduce the code needed at malloc initialization. In the process getpagesize is simplified by always initializing GLRO(dl_pagesize). | |||||
2011-09-10 | Simplify malloc code | Ulrich Drepper | 4 | -1745/+246 | |
Remove all kinds of unused configuration options and dead code. | |||||
2011-09-10 | Remove support for !USE___THREAD | Ulrich Drepper | 3 | -54/+3 | |
2011-09-10 | Cleanup of configuration options | Ulrich Drepper | 2 | -39/+3 | |
Make several tool features mandatory and simplify the code. |