| 115 | } |
| 116 | |
| 117 | void setupMemory(MemoryManager::Options options) { |
| 118 | options.useMmapAllocator = useMmap_; |
| 119 | manager_ = std::make_shared<MemoryManager>(options); |
| 120 | if (useCache_) { |
| 121 | cache_ = AsyncDataCache::create(manager_->allocator()); |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | void TearDown() override { |
| 126 | if (useCache_) { |