feat(lowlevel): add VirtualStack, update allocators, docs
Introduce VirtualStack allocator, refactor memory management to use virtual memory stacks, and update documentation. Added VirtualStack as a new stack allocator using virtual memory, replaced Stack with VirtualStack in allocation manager and related APIs, and updated TempJobAllocator to use VirtualArena. Introduced AllocationManagerInitOpts for allocator configuration. Replaced ENABLE_COLLECTION_CHECKS with ENABLE_SAFETY_CHECKS for safety checks. Removed Result.cs and updated project files and examples. Added comprehensive README files for all major packages and improved root documentation. BREAKING CHANGE: Stack allocator replaced by VirtualStack; TempJobAllocator and AllocationManager initialization signatures changed; Result types removed.
This commit is contained in:
@@ -220,10 +220,10 @@ public unsafe partial class JobScheduler
|
||||
/// </remarks>
|
||||
public static AllocationHandle TempAllocatorHandle => pTempAllocator->Handle;
|
||||
|
||||
public static void InitTempAllocator()
|
||||
public static void InitTempAllocator(nuint capacityPerFrame)
|
||||
{
|
||||
pTempAllocator = (TempJobAllocator*)MemoryUtility.Malloc((nuint)sizeof(TempJobAllocator));
|
||||
pTempAllocator->Init();
|
||||
pTempAllocator->Initialize(capacityPerFrame);
|
||||
}
|
||||
|
||||
public static void ReleaseTempAllocator()
|
||||
|
||||
Reference in New Issue
Block a user