| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
malloc now searches zones for a free chunk, splits it to the
requested aligned size, and allocates a new zone when none have
space. Replace getpagesize() with sysconf(_SC_PAGESIZE).
|
| |
|
|
|
|
| |
Implement mmap-based zone allocation for TINY (<=128B) and SMALL
(<=1024B) categories. malloc now creates zones on demand and
returns a pointer to the first chunk.
|
|
|
Build system produces libft_malloc_$HOSTTYPE.so shared library with
Libft (NOMALLOC=1) as dependency. Stub functions print their name
and return NULL. Test runner compares system malloc vs LD_PRELOAD
output using write(2) to avoid stdio interference.
|