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
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user