Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | check for a 0 size first, then check for a NULL pointer | Mike Frysinger | 2006-02-22 | 1 | -2/+2 |
| | |||||
* | hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵ | Peter S. Mazinger | 2006-01-14 | 1 | -1/+3 |
| | | | | missing headers, other jump relocs removed | ||||
* | Hide mostly used functions | Peter S. Mazinger | 2005-12-01 | 1 | -1/+1 |
| | |||||
* | Code formatting cleanup. | Miles Bader | 2003-10-16 | 1 | -5/+6 |
| | |||||
* | Fix errno values. Fix MALLOC_GLIBC_COMPAT handling in malloc/malloc.c, | Eric Andersen | 2003-09-06 | 1 | -6/+6 |
| | | | | | which was reversed. Provide more consistancy between implementations. Handle it when people do stupid things like malloc(-1); | ||||
* | Improve malloc debugging support. | Miles Bader | 2002-11-21 | 1 | -3/+4 |
| | |||||
* | Fix malloc so it compiles and works when using pthreads | Eric Andersen | 2002-10-17 | 1 | -4/+4 |
| | | | | -Erik | ||||
* | Use __heap_[un]lock instead of __malloc_[un]lock. | Miles Bader | 2002-10-15 | 1 | -4/+4 |
| | |||||
* | (realloc): Record the correct size in the malloc header in the case | Miles Bader | 2002-09-09 | 1 | -1/+1 |
| | | | | | where we extended the existing allocation, and got back more than we asked for from the heap. | ||||
* | (realloc): Follow new arg conventions of MALLOC_SET_SIZE. | Miles Bader | 2002-08-19 | 1 | -2/+2 |
| | |||||
* | Handle zero NEW_SIZE case. | Miles Bader | 2002-08-14 | 1 | -45/+54 |
| | |||||
* | Use MALLOC_REALLOC_MIN_FREE_SIZE. | Miles Bader | 2002-08-01 | 1 | -1/+1 |
| | |||||
* | In the allocate-and-copy case, don't include the malloc header in our | Miles Bader | 2002-07-31 | 1 | -2/+2 |
| | | | | size calculations. | ||||
* | Update debugging printfs. | Miles Bader | 2002-07-31 | 1 | -1/+1 |
| | |||||
* | Account for MALLOC_HEADER_SIZE when calculating new size. | Miles Bader | 2002-07-31 | 1 | -3/+4 |
| | |||||
* | Make sure NEW_SIZE is a multiple of HEAP_GRANULARITY. | Miles Bader | 2002-07-30 | 1 | -2/+2 |
| | | | | Calculate amount freed when shrinking correctly. | ||||
* | Update the size of grown/shrunk allocations. | Miles Bader | 2002-07-30 | 1 | -16/+16 |
| | | | | MALLOC_SET_SIZE now takes the user-address rather than the base-address. | ||||
* | Implement shrinking. | Miles Bader | 2002-07-30 | 1 | -6/+19 |
| | | | | | Fix bug when growing an allocation. Use new malloc header macros. | ||||
* | Redo the locking, so that it may actually work. Now locking is done at | Miles Bader | 2002-07-25 | 1 | -0/+3 |
| | | | | | | | | | the malloc/free level, not within the heap abstraction, and there's a separate lock to control sbrk access. Also, get rid of the separate `unmap_free_area' function in free.c, and just put the code in the `free' function directly, which saves a bunch of space (even compared to using an inline function) for some reason. | ||||
* | Misc small cleanups. | Miles Bader | 2002-07-24 | 1 | -2/+2 |
| | |||||
* | * Automatically try to unmap heap free-areas when they get very big. | Miles Bader | 2002-07-23 | 1 | -15/+2 |
| | | | | | | | | * Instead of using mmap/munmap directly for large allocations, just use the heap for everything (this is reasonable now that heap memory can be unmapped). * Use sbrk instead of mmap/munmap on systems with an MMU. | ||||
* | Doc fix. | Miles Bader | 2002-07-19 | 1 | -1/+1 |
| | |||||
* | Miles Bader implemented a new mmap based malloc which is much | Eric Andersen | 2002-07-18 | 1 | -0/+76 |
smarter than the old "malloc-simple", and actually works, unlike the old "malloc". So kill the old "malloc-simple" and the old "malloc" and replace them with Miles' new malloc implementation. Update Config files to match. Thanks Miles! |