mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-11 23:07:14 +00:00
memory_pool: Deduplicate slab allocation code (#28)
This commit is contained in:
@@ -28,6 +28,11 @@ public:
|
||||
void* Alloc();
|
||||
|
||||
private:
|
||||
// Allocates a completely new memory slab.
|
||||
// Used when an entirely new slab is needed
|
||||
// due the current one running out of usable space.
|
||||
void AllocateNewSlab();
|
||||
|
||||
size_t object_size;
|
||||
size_t slab_size;
|
||||
char* current_slab;
|
||||
|
||||
Reference in New Issue
Block a user