Home | History | Annotate | Download | only in base

Lines Matching full:stack

14 // This allocator can be used with STL containers to provide a stack buffer
15 // from which to allocate memory and overflows onto the heap. This stack buffer
16 // would be allocated on the stack and allows us to avoid heap operations in
23 // based on our allocator will share the same stack buffer.
25 // This stack buffer implementation is very simple. The first allocation that
26 // fits in the stack buffer will use the stack buffer. Any subsequent
27 // allocations will not use the stack buffer, even if there is unused room.
29 // be sure to reserve() in the container up to the stack buffer size. Otherwise
30 // the container will allocate a small array which will "use up" the stack
63 // Set when the stack buffer is used for an allocation. We do not track
96 // Actually do the allocation. Use the stack buffer if nobody has used it yet
109 // Free: when trying to free the stack buffer, just mark it as free. For
110 // non-stack-buffer pointers, just fall though to the standard allocator.
122 // A wrapper around STL containers that maintains a stack-sized buffer that the
124 // stack capacity will transparently overflow onto the heap. The container must
139 // Make the container use the stack allocation by reserving our buffer size
148 // and therefore the same stack buffer as the original. Use std::copy to
160 // Retrieves the stack source so that that unit tests can verify that the
231 // take the stack buffer from the original. Here, we create an empty object
232 // and make a stack buffer of its own.