previous | start | next

Calling mm_malloc(size)

For a call to mm_malloc(size), we must do some adjustments before looking for a free block.

The mm_malloc function calls find_fit(asize) with the adjusted size.

Use first fit to find a free block that is big enough (>=asize).

If no block is big enough, return NULL.

If NULL is returned, mm_malloc will have to increase the heap segment size.



previous | start | next