WIP Two-Level Segregated Fit (TLSF) implementation
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, macos-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled

This commit is contained in:
2026-08-17 23:47:22 -07:00
parent 69b8fa4c72
commit 324fefbcfc
2 changed files with 77 additions and 20 deletions

View File

@@ -37,6 +37,8 @@
namespace mimir {
struct TLSFBlock;
// Heap implementation based on Two-Level Segregated Fit (TLSF) memory allocation
class Heap
{
@@ -60,6 +62,12 @@ public:
private:
Region m_region;
// Add a free block to the index
void insertFreeBlock(TLSFBlock* block);
// Remove a free block from the index
void removeFreeBlock(TLSFBlock* block);
};
} // namespace mimir