MCPcopy Create free account
hub / github.com/bytedance/bolt / setupMemory

Method setupMemory

bolt/common/memory/tests/MemoryPoolTest.cpp:117–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_) {

Callers

nothing calls this directly

Calls 2

createFunction · 0.50
allocatorMethod · 0.45

Tested by

no test coverage detected