aboutsummaryrefslogtreecommitdiff
path: root/libthreads/malloc.c
Commit message (Collapse)AuthorAgeFilesLines
* (realloc):Miles Bader1996-03-071-9/+32
| | | | | | | | Use LOG2_MIN_SIZE. Don't bother allocating a new block if the new size request fits in the old one and doesn't waste any space. Only free the old block if we successfully got a new one. (LOG2_MIN_SIZE): New macro.
* [MCHECK] (struct header): New type.Miles Bader1996-03-061-13/+67
| | | | | | | | (union header): Only define if !MCHECK. (HEADER_SIZE, HEADER_NEXT, HEADER_FREE, HEADER_CHECK): New macros. [MCHECK] (MIN_SIZE): Add correct definition for this case. (more_memory, malloc, free, realloc): Use above macros, and add appropiate checks & frobs in MCHECK case.
* entered into RCSRoland McGrath1994-05-051-6/+10
|
* Formerly malloc.c.~3~Michael I. Bushnell1994-04-061-1/+2
|
* Formerly malloc.c.~2~Michael I. Bushnell1994-01-221-1/+1
|
* Initial revisionMichael I. Bushnell1992-10-061-0/+349