| Commit message (Expand) | Author | Age | Files | Lines |
| * | fix rare but nasty under-allocation bug in malloc with large requests•••the bug appeared only with requests roughly 2*sizeof(size_t) to
4*sizeof(size_t) bytes smaller than a multiple of the page size, and
only for requests large enough to be serviced by mmap instead of the
normal heap. it was only ever observed on 64-bit machines but
presumably could also affect 32-bit (albeit with a smaller window of
opportunity).
| Rich Felker | 2011-04-04 | 1 | -1/+1 |
| * | avoid over-allocation of brk on first malloc•••if init_malloc returns positive (successful first init), malloc will
retry getting a chunk from the free bins rather than expanding the
heap again. also pass init_malloc a hint for the size of the initial
allocation.
| Rich Felker | 2011-04-01 | 1 | -4/+4 |
| * | rename __simple_malloc.c to lite_malloc.c - yes this affects behavior!•••why does this affect behavior? well, the linker seems to traverse
archive files starting from its current position when resolving
symbols. since calloc.c comes alphabetically (and thus in sequence in
the archive file) between __simple_malloc.c and malloc.c, attempts to
resolve the "malloc" symbol for use by calloc.c were pulling in the
full malloc.c implementation rather than the __simple_malloc.c
implementation.
as of now, lite_malloc.c and malloc.c are adjacent in the archive and
in the correct order, so malloc.c should never be used to resolve
"malloc" unless it's already needed to resolve another symbol ("free"
or "realloc").
| Rich Felker | 2011-03-30 | 1 | -0/+0 |
| * | very cheap double-free checks in malloc | Rich Felker | 2011-03-23 | 1 | -0/+4 |
| * | global cleanup to use the new syscall interface | Rich Felker | 2011-03-20 | 1 | -1/+1 |
| * | make malloc(0) return unique pointers rather than NULL•••this change is made with some reluctance, but i think it's for the
best. correct programs must handle either behavior, so there is little
advantage to having malloc(0) return NULL. and i managed to actually
make the malloc code slightly smaller with this change.
| Rich Felker | 2011-02-20 | 2 | -6/+10 |
| * | fix simple_malloc malloc(0) behavior not to return non-unique pointers | Rich Felker | 2011-02-20 | 1 | -0/+1 |
| * | fix simple_malloc size restrictions•••do not allow allocations that overflow ptrdiff_t; fix some overflow
checks that were not quite right but didn't matter due to address
layout implementation.
| Rich Felker | 2011-02-20 | 1 | -5/+6 |
| * | initial check-in, version 0.5.0 | Rich Felker | 2011-02-12 | 7 | -0/+671 |