Boundary Tags - • This allows memory allocation in O(1)...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Boundary Tags Boundary Tags allow identifying the neighboring objects in O(1). This allows coalescing of objects in O(1) Each object allocated or free has a header and a footer. The header and the footer contain the size of the object as well as a flag that tells if the object is allocated or not. When freeing an object it is possible to check if the neighbors are free in constant time and coalesce them if possible.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Boundary Tags
Background image of page 2
Boundary Tags
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Boundary Tags The memory allocator you will implement also stores the objects in segregated free lists.
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: • This allows memory allocation in O(1) for small objects. • There are 65 lists. Lists 0 to 64 store objects of sizes 8 * i including header and footer where i is the number of the list. • List 65 stores objects larger or equal than 512 Boundary Tags Boundary Tags When the object is free, the header also contains a pointer to the next object in the list and a pointer to the previous object in the list. This allows removal of an object in the middle of a list from a list in constant time. That is needed after coalescing....
View Full Document

This note was uploaded on 01/30/2012 for the course CS 354 taught by Professor Staff during the Fall '08 term at Purdue University.

Page1 / 6

Boundary Tags - • This allows memory allocation in O(1)...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online