Comments, adding Region to Heap
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-15 16:07:00 -07:00
parent e358b02bea
commit ae7269e6fd
4 changed files with 20 additions and 3 deletions

View File

@@ -38,6 +38,8 @@
namespace mimir {
// Two-Level Segregated Fit (TLSF): http://www.gii.upv.es/tlsf/files/papers/ecrts04_tlsf.pdf
Heap::Heap()
{
}
@@ -46,9 +48,12 @@ Heap::~Heap()
{
}
bool Heap::init(size_t minSize, size_t maxSize)
bool Heap::init(size_t maxSize)
{
return false; // not implemented
if (!m_region.init(maxSize)) {
return false;
}
return true;
}
// Allocate `size` bytes