P->fd->bk == P
and P->bk->fd == P
*victim
) from a smallbin (to service a malloc request), check whether victim->bk->fd
and victim
are equal2*SIZE_SZ
) and maximum (av->system_mem
) rangeunsorted_chunks(av)->fd->bk == unsorted_chunks(av)
unsorted_chunks(av)->fd->bk == unsorted_chunks(av)
p
** is before p + chunksize(p)
in the memory (to avoid wrapping)MINSIZE
or a multiple of MALLOC_ALIGNMENT
av->system_mem
)HEAD
), check whether the chunk already at HEAD
is not the sameHEAD
), check whether size of the chunk at HEAD
is same as the chunk to be insertedav->system_mem
)unsorted_chunks(av)->fd->bk == unsorted_chunks(av)