MCPcopy Create free account
hub / github.com/apache/arrow / MakeUnique

Method MakeUnique

cpp/src/arrow/memory_pool.cc:969–978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

967 }
968
969 static std::unique_ptr<PoolBuffer> MakeUnique(MemoryPool* pool, int64_t alignment) {
970 std::shared_ptr<MemoryManager> mm;
971 if (pool == nullptr) {
972 pool = default_memory_pool();
973 mm = default_cpu_memory_manager();
974 } else {
975 mm = CPUDevice::memory_manager(pool);
976 }
977 return std::make_unique<PoolBuffer>(std::move(mm), pool, alignment);
978 }
979
980 private:
981 static Result<int64_t> RoundCapacity(int64_t capacity) {

Callers

nothing calls this directly

Calls 2

default_memory_poolFunction · 0.85

Tested by

no test coverage detected