This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: • There is enough information in the headers to iterate over the end of the heap. • Verify that the sizes and flags in header and footer match. • Print also the blocks. Add an extra flag value to differentiate Gaps in the heap from allocated and free blocks. • Also you may write a function printFreeBlocks() that iterates over all lists and Heap Check Start of Heap End of Heap Footer4/Hdr5 Footer3/Hdr4 Footer2/Hdr3 Footer1/Hdr2 Footer0/Hdr1 Gap...
View Full Document
- Fall '08
- Operating Systems, Ring, Start, Flag