|
ADS
Algorithms and Data Structures
|
The allocators, the pools and the arena. More...
Topics | |
| Theory of memory | |
| AllocatorAware.h | |
| The rules of the allocator-aware containers of the standard ([container.reqmts], [allocator.requirements]), beyond the book, written once for the containers of ADS that take an allocator A. | |
| Allocators.h | |
| The dynamic storage allocation of Knuth, beyond the book, on a memory of \( N \) words simulated by a vector, so that the blocks and their headers can be inspected. | |
| Arena.h | |
| An arena of objects allocated in blocks, beyond the book. | |
| CellHeap.h | |
| A heap of cells of two fields with a garbage collector, beyond the book. | |
| ConcurrentPool.h | |
| A pool of size classes shared by threads, beyond the book. | |
| HugePageAllocator.h | |
| An allocator for the large blocks of a structure, beyond the book. | |
| ObjectPool.h | |
| A pool of objects of one type, beyond the book. | |
| PageHeap.h | |
| The heap of pages of size classes under PoolResource and ConcurrentPoolResource, beyond the book. | |
| PoolAllocator.h | |
| A standard allocator over pools of size classes, beyond the book, so that the containers of the standard library and std::allocate_shared take their nodes from pages of slots of one size instead of the general allocator. | |
| Prefetch.h | |
| The prefetch of a line of the cache, beyond the book. | |
| SizeClassAllocator.h | |
| An allocator of small blocks by size classes, beyond the book. | |
The allocators, the pools and the arena.
The definitions, the invariants and the costs of the area are in Theory of memory.