summaryrefslogtreecommitdiff
path: root/src/malloc/malloc_impl.h
AgeCommit message (Collapse)AuthorFilesLines
2020-06-03move oldmalloc to its own directory under src/mallocRich Felker1-39/+0
this sets the stage for replacement, and makes it practical to keep oldmalloc around as a build option for a while if that ends up being useful. only the files which are actually part of the implementation are moved. memalign and posix_memalign are entirely generic. in theory calloc could be pulled out too, but it's useful to have it tied to the implementation so as to optimize out unnecessary memset when implementation details make it possible to know the memory is already clear.
2020-06-03move __expand_heap into malloc.cRich Felker1-2/+0
this function is no longer used elsewhere, and moving it reduces the number of source files specific to the malloc implementation.
2020-06-03reverse dependency order of memalign and aligned_allocRich Felker1-2/+0
this change eliminates the internal __memalign function and makes the memalign and posix_memalign functions completely independent of the malloc implementation, written portably in terms of aligned_alloc.
2020-06-02move malloc_impl.h from src/internal to src/mallocRich Felker1-0/+43
this reflects that it is no longer intended for consumption outside of the malloc implementation.