Slide 92
Slide 92 text
Variable Size Allocation
• FreeChunkTree (_RTL_RB_TREE)
• In VS Allocation, after free a chunk, the chunk will be placed in the
FreeChunkTree of the heap, and the chunk will be inserted in the
FreeChunkTree according to the size.
• If the size of chunk is larger than the node, it will be placed in right subtree
otherwise, will be placed in left subtree
• If there is no larger chunk than the chunk, the right subtree is NULL, and
the other side is also
• There will be a node check when taken out of the tree