Heap Allocator now commits and releases pages dynamically.
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

Implemented Heap::free
Heap::reset() now clears m_usedSize
This commit is contained in:
2026-09-28 00:14:45 -07:00
parent 713fa239f5
commit 1153f552d0
2 changed files with 90 additions and 4 deletions

View File

@@ -87,6 +87,15 @@ private:
// Get the usable size of a block
size_t getBlockUsableSize(const TLSFBlock* block) const;
// Get the next block, in physical order
TLSFBlock* getNextPhysBlock(TLSFBlock* block);
// Returns true if block is a free block
bool isBlockFree(const TLSFBlock* block) const;
// Return true if block is the last block, in physical order
bool isBlockLast(const TLSFBlock* block) const;
};
} // namespace mimir