Age | Commit message (Collapse) | Author | |
---|---|---|---|
2003-10-16 | Don't set errno if for zero SIZE returns. | Miles Bader | |
Code formatting cleanup. | |||
2003-09-22 | More fiddling with static free-areas: make sure both their size _and_ | Miles Bader | |
their alignment are correct. | |||
2003-09-19 | Make sure we don't allocate too little space for static free-areas | Miles Bader | |
because of our fiddling with alignment (because doing so is VERY BAD). | |||
2003-09-19 | Add dependencies on header files. | Miles Bader | |
2003-09-17 | Make sure static heaps are aligned correctly. | Miles Bader | |
2003-09-06 | 'extern inline' doesn't work... Use 'static inline' | Eric Andersen | |
2003-09-06 | add missing prototype | Eric Andersen | |
2003-09-06 | Fix errno values. Fix MALLOC_GLIBC_COMPAT handling in malloc/malloc.c, | Eric Andersen | |
which was reversed. Provide more consistancy between implementations. Handle it when people do stupid things like malloc(-1); | |||
2003-08-08 | Add in a MALLOC_GLIBC_COMPAT option to let people decide if they | Eric Andersen | |
want glibc style malloc(0) behavior | |||
2003-04-02 | (free_to_heap): Unlock the heap before returning in the | Miles Bader | |
__UCLIBC_UCLINUX_BROKEN_MUNMAP__ case. Fix from YYang1@Winbond.com.tw. | |||
2003-01-23 | Update malloc behavior on malloc(0) to be consistant with | Eric Andersen | |
malloc-930716 behavior, i.e. return a NULL. | |||
2002-11-21 | Debugging tweaks. | Miles Bader | |
2002-11-21 | Improve malloc debugging support. | Miles Bader | |
2002-10-18 | Don't infinitely recurse when trying to grow __malloc_mmb_heap. | Miles Bader | |
2002-10-17 | Fix malloc so it compiles and works when using pthreads | Eric Andersen | |
-Erik | |||
2002-10-15 | Use __heap_[un]lock instead of __malloc_[un]lock. | Miles Bader | |
2002-10-15 | Get rid of old malloc lock stuff. | Miles Bader | |
2002-10-15 | Fix locking to not deadlock when __UCLIBC_UCLINUX_BROKEN_MUNMAP__ is defined. | Miles Bader | |
2002-10-09 | * Add support for uClinux's broken munmap, contingent on | Miles Bader | |
__UCLIBC_UCLINUX_BROKEN_MUNMAP__ (which is currently not defined anywhere). This makes other cases a tiny bit less efficient too. * Move the malloc lock into the heap structure (locking is still done at the malloc level though, not by the heap functions). * Initialize the malloc heap to contain a tiny initial static free-area so that programs that only do a very little allocation won't ever call mmap. | |||
2002-09-13 | (__heap_check_failure): New function. | Miles Bader | |
(__heap_check): Add more checks. Use `__heap_check_failure'. | |||
2002-09-09 | (realloc): Record the correct size in the malloc header in the case | Miles Bader | |
where we extended the existing allocation, and got back more than we asked for from the heap. | |||
2002-09-06 | Initial checkin. | Miles Bader | |
2002-09-06 | Update debugging hooks. | Miles Bader | |
2002-09-04 | (free): | Miles Bader | |
Update debug statement. Update to use __heap_delete and __heap_is_empty. | |||
2002-09-04 | (__heap_delete): Renamed from `__heap_unlink_free_area'. | Miles Bader | |
(__heap_free_area_alloc): Use __heap_delete. (__heap_is_empty): New macro. | |||
2002-08-30 | Doc fix. | Miles Bader | |
2002-08-30 | (__heap_free): Tighten up the inner loop, and make the code more readable. | Miles Bader | |
2002-08-30 | Use `likely' & `unlikely' instead of the `__malloc_'-prefixed versions. | Miles Bader | |
2002-08-30 | (likely, unlikely): New macros. | Miles Bader | |
2002-08-30 | (likely, unlikely): New macros. | Miles Bader | |
(__malloc_likely, __malloc_unlikely): Macros removed. | |||
2002-08-19 | (CSRC): Make contents source files, not object files. | Miles Bader | |
2002-08-19 | (CSRC): Add `memalign.c'. | Miles Bader | |
2002-08-19 | Initial checkin. | Miles Bader | |
2002-08-19 | (realloc): Follow new arg conventions of MALLOC_SET_SIZE. | Miles Bader | |
2002-08-19 | (malloc): Use MALLOC_SETUP. | Miles Bader | |
2002-08-19 | (MALLOC_SETUP): New macro. | Miles Bader | |
(MALLOC_SET_SIZE): Take the base-address of the block, not the user-address. (MALLOC_ADDR): Macro removed. | |||
2002-08-14 | Use __malloc_unlikely instead of `likely'. | Miles Bader | |
2002-08-14 | Add flow-control hints with __malloc_likely and __malloc_unlikely. | Miles Bader | |
2002-08-14 | (__malloc_likely, __malloc_unlikely): New macros. | Miles Bader | |
2002-08-14 | Handle zero NEW_SIZE case. | Miles Bader | |
2002-08-13 | Use `return' for null pointers, to avoid a giant block holding the rest | Miles Bader | |
of the function. | |||
2002-08-07 | Per suggestion from Miles Bader, move calloc.c to libc/stdlib. | Eric Andersen | |
Also, Manuel notices that I forgot to check for when nmemb=0, which would result in a segfault, so fix that case as well. -Erik | |||
2002-08-06 | Unify calloc (its the same thing regardless of the underlying | Eric Andersen | |
malloc implementation). Fix problem reported to bugtraq about problems with integer overflow that can occur during the computation of the memory region size by calloc (and similar functions) which could result in a subsequent buffer overflow. -Erik | |||
2002-08-01 | Use MALLOC_REALLOC_MIN_FREE_SIZE. | Miles Bader | |
2002-08-01 | (MALLOC_REALLOC_MIN_FREE_SIZE): New macro. | Miles Bader | |
Enable debugging if MALLOC_DEBUGGING is defined. | |||
2002-08-01 | (HEAP_MIN_SIZE): New macro. | Miles Bader | |
(HEAP_MIN_FREE_AREA_SIZE): Increase size. Enable debugging if HEAP_DEBUGGING is defined. | |||
2002-07-31 | In the allocate-and-copy case, don't include the malloc header in our | Miles Bader | |
size calculations. | |||
2002-07-31 | Update debugging printfs. | Miles Bader | |
2002-07-31 | Account for MALLOC_HEADER_SIZE when calculating new size. | Miles Bader | |
2002-07-31 | Use MALLOC_HEADER_SIZE. | Miles Bader | |