Module vibe.utils.memory
Utility functions for memory management
Note that this module currently is a big sand box for testing allocation related stuff. Nothing here, including the interfaces, is final but rather a lot of experimentation.
Functions
Name | Description |
---|---|
allocArray(allocator, n)
|
|
allocObject(allocator, args)
|
|
defaultAllocator()
|
|
freeArray(allocator, array, call_destructors)
|
|
manualAllocator()
|
|
threadLocalAllocator()
|
|
threadLocalManualAllocator()
|
Interfaces
Name | Description |
---|---|
Allocator
|
Classes
Name | Description |
---|---|
AutoFreeListAllocator
|
|
DebugAllocator
|
|
FreeListAlloc
|
|
GCAllocator
|
|
LockAllocator
|
Simple proxy allocator protecting its base allocator with a mutex. |
MallocAllocator
|
|
PoolAllocator
|
Structs
Name | Description |
---|---|
FreeListObjectAlloc
|
|
FreeListRef
|
Templates
Name | Description |
---|---|
AllocSize
|