Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Cleanup code duplication in malloc on fallback to use another arena | Siddhesh Poyarekar | 2012-09-07 | 2 | -75/+32 |
| | | | | | Break the fallback code to try another arena into a separate function for readability. | ||||
* | * malloc/arena.c: Fold copyright years. | Alexandre Oliva | 2012-09-05 | 3 | -5/+3 |
| | | | | * malloc/mcheck.c, malloc/memusage.c: Likewise. | ||||
* | * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation. | Alexandre Oliva | 2012-09-05 | 1 | -2/+2 |
| | |||||
* | Don't change no_dyn_threshold on mallopt failure | Alexandre Oliva | 2012-09-05 | 1 | -2/+4 |
| | | | | | * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not change internal state upon failure. | ||||
* | Fix typos in malloc/. | Alexandre Oliva | 2012-09-05 | 2 | -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_ > 0 | Siddhesh Poyarekar | 2012-09-05 | 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. | ||||
* | Make malloc build for no-threads configurations. | Roland McGrath | 2012-08-17 | 2 | -5/+10 |
| | |||||
* | Fix whitespace problems detected by commit hooks. | Jeff Law | 2012-08-10 | 2 | -7/+7 |
| | |||||
* | [BZ #13939] | Jeff Law | 2012-08-10 | 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. | ||||
* | Rename __secure_getenv to secure_getenv | Florian Weimer | 2012-07-25 | 1 | -1/+1 |
| | |||||
* | Make free chunk size a multiple of MALLOC_ALIGNMENT | H.J. Lu | 2012-05-24 | 1 | -4/+6 |
| | |||||
* | Remove use of INTDEF/INTUSE in libio | Andreas Schwab | 2012-05-24 | 1 | -2/+2 |
| | |||||
* | Properly handle MALLOC_ALIGNMENT > 2 * SIZE_SZ | H.J. Lu | 2012-05-24 | 1 | -14/+64 |
| | |||||
* | Fix last change | Andreas Jaeger | 2012-05-21 | 1 | -0/+2 |
| | | | | Include shlib-compat.h for SHLIB_COMPAT. | ||||
* | Set MALLOC_ALIGNMENT to at least __alignof__ (long double) for new ABIs. | Roland McGrath | 2012-05-21 | 1 | -10/+14 |
| | |||||
* | For [BZ #208], accumulate malloc stats over all arenas. | Paul Pluzhnikov | 2012-05-16 | 1 | -19/+32 |
| | |||||
* | Fix tst-obprintf - and mcheck in general | Andreas Jaeger | 2012-05-03 | 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). | ||||
* | Avoid warnings in test malloc program | Ulrich Drepper | 2012-03-28 | 1 | -6/+9 |
| | |||||
* | Move stdio-common/_itoa.h to sysdeps/generic | H.J. Lu | 2012-03-20 | 2 | -2/+2 |
| | |||||
* | Remove distribute variable from Makefiles | Ulrich Drepper | 2012-03-07 | 1 | -9/+2 |
| | |||||
* | Replace FSF snail mail address with URLs. | Paul Eggert | 2012-02-09 | 24 | -71/+47 |
| | |||||
* | Cleanups of malloc | Ulrich Drepper | 2012-01-31 | 3 | -195/+139 |
| | | | | Remove ugly names and unnecessary wrappers. | ||||
* | Handle ARENA_TEST correctly | Ulrich Drepper | 2012-01-31 | 1 | -2/+9 |
| | |||||
* | Remove __STDC__ conditionals from installed headers. | Joseph Myers | 2012-01-26 | 1 | -4/+4 |
| | |||||
* | More minor malloc cleanups | Ulrich Drepper | 2012-01-17 | 1 | -24/+1 |
| | |||||
* | Minor cleanups of malloc code | Ulrich Drepper | 2012-01-16 | 2 | -55/+3 |
| | |||||
* | Remove pre-ISO C support | Ulrich Drepper | 2012-01-07 | 5 | -22/+22 |
| | | | | No more __const. | ||||
* | Implement aligned_alloc | Ulrich Drepper | 2012-01-01 | 2 | -0/+5 |
| | |||||
* | Update copyright year | Ulrich Drepper | 2012-01-01 | 2 | -4/+4 |
| | |||||
* | Optimize tr_freehook | Ulrich Drepper | 2011-12-22 | 1 | -3/+5 |
| | |||||
* | Fix comment in mcheck.h | Ulrich Drepper | 2011-12-03 | 1 | -2/+2 |
| | |||||
* | Don't call reused_arena when _int_new_arena failed | Andreas Schwab | 2011-11-14 | 1 | -5/+5 |
| | |||||
* | Check malloc arana limit atomically | Andreas Schwab | 2011-11-10 | 1 | -30/+35 |
| | |||||
* | Avoid assertion in processes with VM in bad shape | Ulrich Drepper | 2011-10-29 | 1 | -4/+4 |
| | |||||
* | Avoid cast in non-gcc obstack_free | Ulrich Drepper | 2011-09-11 | 1 | -4/+4 |
| | |||||
* | Remove MALLOC_FAILURE_ACTION use in malloc | Ulrich Drepper | 2011-09-10 | 2 | -23/+8 |
| | |||||
* | Simplify malloc initialization | Ulrich Drepper | 2011-09-10 | 3 | -78/+43 |
| | | | | | | Singificantly reduce the code needed at malloc initialization. In the process getpagesize is simplified by always initializing GLRO(dl_pagesize). | ||||
* | Simplify malloc code | Ulrich Drepper | 2011-09-10 | 4 | -1745/+246 |
| | | | | Remove all kinds of unused configuration options and dead code. | ||||
* | Remove support for !USE___THREAD | Ulrich Drepper | 2011-09-10 | 3 | -54/+3 |
| | |||||
* | Cleanup of configuration options | Ulrich Drepper | 2011-09-10 | 2 | -39/+3 |
| | | | | Make several tool features mandatory and simplify the code. | ||||
* | (memalign_check): No need to use checked_request2size. | Ulrich Drepper | 2011-07-08 | 1 | -3/+1 |
| | |||||
* | Fix quoting in some installed shell scripts | Ulrich Drepper | 2011-06-28 | 1 | -1/+1 |
| | |||||
* | Remove the --experimental-malloc option | Ulrich Drepper | 2011-06-28 | 1 | -3/+1 |
| | | | | It's well tested, make it the default. | ||||
* | Mark malloc hook variables as deprecated | Ulrich Drepper | 2011-05-29 | 1 | -6/+14 |
| | |||||
* | Perhaps the real definition of __MALLOC_HOOK_VOLATILE should be added | Ulrich Drepper | 2011-05-29 | 1 | -1/+1 |
| | |||||
* | Missed one malloc hook variable | Ulrich Drepper | 2011-05-29 | 1 | -1/+1 |
| | |||||
* | Declare malloc hook variables as volatile. | Ulrich Drepper | 2011-05-29 | 1 | -38/+45 |
| | |||||
* | Unify messages | Ulrich Drepper | 2011-05-28 | 1 | -2/+2 |
| | | | | | Some shell scripts unnecessarily used different formats for some messages. Unify them to reduce the work of translators. | ||||
* | Avoid potential deadlock in mtrace | Ulrich Drepper | 2011-05-16 | 1 | -23/+41 |
| | | | | | The _dl_addr function might have to call malloc which would lead to a deadlock. Avoid by calling _dl_addr early. | ||||
* | Remove USE_MTRACE_FILE support from mtrace | Ulrich Drepper | 2011-05-16 | 1 | -17/+2 |
| |