|
Broom 1.0.0
A thread-local C++ Garbage Collector
|
#include <allocator.h>


Classes | |
| struct | AllocatorStatistics |
Public Member Functions | |
| virtual | ~Allocator ()=default |
| virtual bool | Grow (size_t requested_size, MemorySpace **space_to_update)=0 |
| virtual size_t | LargeSpaceThreshold () const =0 |
| virtual void * | Allocate (size_t requested_size)=0 |
| virtual void | Dispose (void *definitely_uintptr)=0 |
| virtual const void * | GetBasePointerOfMaybeInnerPointer (const void *maybe_inner) const =0 |
| MemoryPressure | CalculateMemoryPressure () const |
Static Public Attributes | |
| static constexpr const int | kFrontMetadataSize |
| static constexpr const int | kBackMetadataSize = sizeof(AllocatorBackMetadata) |
| static constexpr const int | kTotalMetadataSize |
| static constexpr const size_t | kDefaultSpaceSize = 2 * MB |
| static constexpr const size_t | kDefaultLargeSpaceSize = 64 * MB |
| static constexpr const size_t | kDefaultLargeSpaceThreshold = 1 * MB |
| static constexpr const MemoryPermissions | kDefaultPermissions |
| static constexpr const size_t | kGiantMappingSize = kDefaultLargeSpaceSize |
Protected Member Functions | |
| Allocator ()=default | |
Static Protected Member Functions | |
| static void | PinBasePointer (const void *pointer, uint32_t how_many) |
| static void | UnpinBasePointer (const void *pointer) |
| static bool | IsPinnedBasePointer (const void *pointer) |
| static size_t | SpaceMask (size_t space_size) |
Protected Attributes | |
| AllocatorStatistics | stats_ |
Friends | |
| class | GarbageCollector |
Definition at line 235 of file allocator.h.
|
virtualdefault |
|
protecteddefault |
Implemented in broom::FreeListAllocator.
|
inline |
Definition at line 261 of file allocator.h.
Implemented in broom::FreeListAllocator.
|
pure virtual |
Implemented in broom::FreeListAllocator.
|
pure virtual |
Implemented in broom::FreeListAllocator.
Definition at line 291 of file allocator.h.
|
pure virtual |
Implemented in broom::FreeListAllocator.
|
inlinestaticprotected |
Definition at line 281 of file allocator.h.
|
inlinestaticprotected |
Definition at line 296 of file allocator.h.
Definition at line 286 of file allocator.h.
|
friend |
Definition at line 303 of file allocator.h.
|
staticconstexpr |
Definition at line 240 of file allocator.h.
Definition at line 245 of file allocator.h.
Definition at line 246 of file allocator.h.
|
staticconstexpr |
Definition at line 247 of file allocator.h.
Definition at line 244 of file allocator.h.
Definition at line 238 of file allocator.h.
|
staticconstexpr |
Definition at line 249 of file allocator.h.
Definition at line 241 of file allocator.h.
|
protected |
Definition at line 302 of file allocator.h.