On 9/6/2011 4:42 AM, Jonathan M Davis wrote:
Can you provide a link to the current code and documentation so that I can
post the start of the review? And do you want to provide a more in depth
description than
-----------
std.regionallocator (A segmented stack/region memory allocator, by me.
I'd like to fast-track this because it's used by two of the GSoC
projects that were done this summer so getting it into Phobos would
simplify things.)
-----------
which is what you previously posted?
- Jonathan M Davis
Docs:
http://cis.jhu.edu/~dsimcha/d/phobos/std_regionallocator.html
Code:
https://github.com/dsimcha/TempAlloc
Description (from docs):
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.