On Tue, Sep 6, 2011 at 7:33 AM, dsimcha <[email protected]> wrote: > > RegionAllocator is a memory allocator based on segmented stacks. A segmented > stack is similar to a regular stack in that memory is allocated and freed in > last in, first out order. When memory is requested from a segmented stack, > it first checks whether enough space is available in the current segment, > and if so increments the stack pointer and returns. If not, a new segment is > allocated. When memory is freed, the stack pointer is decremented. If the > last segment is no longer in use, it may be returned to where it was > allocated from or retained for future use. >
Can't wait to review this. Just a small note. Isn't this description implementation specific? We should describe the minimum possible to describe the contract. To me that is that memory is free last alloc first.
