guyinatuxedo / Shogun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unsorted bin loop stopping in malloc overview

k4lizen opened this issue · comments

(assuming in the middle of a loop iteration it doesn't find a chunk it can allocate, in which case the loop will end)

If the chunk fits in the tcache, it will just add it to the tcache and continue (and remove it from the tcache at the end of the loop). It will only return if the tcache is full or the chunk is too big for the tcache, as is explained later in the text.