| 47 | } |
| 48 | |
| 49 | MemoryManager::MemoryManager(BufferManager* bm, VirtualFileSystem* vfs) : bm{bm} { |
| 50 | pageSize = TEMP_PAGE_SIZE; |
| 51 | fh = bm->getFileHandle("mm-256KB", FileHandle::O_IN_MEM_TEMP_FILE, vfs, nullptr); |
| 52 | } |
| 53 | |
| 54 | std::span<uint8_t> MemoryManager::mallocBuffer(bool initializeToZero, uint64_t size) { |
| 55 | if (!bm->reserve(size)) { |
nothing calls this directly
no test coverage detected