MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / MemoryManager

Method MemoryManager

src/storage/buffer_manager/memory_manager.cpp:49–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49MemoryManager::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
54std::span<uint8_t> MemoryManager::mallocBuffer(bool initializeToZero, uint64_t size) {
55 if (!bm->reserve(size)) {

Callers

nothing calls this directly

Calls 1

getFileHandleMethod · 0.45

Tested by

no test coverage detected