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

Method Allocate

cpp/src/arrow/stl_allocator.h:117–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 using MemoryPool::Reallocate;
116
117 Status Allocate(int64_t size, int64_t /*alignment*/, uint8_t** out) override {
118 try {
119 *out = alloc_.allocate(size);
120 } catch (std::bad_alloc& e) {
121 return Status::OutOfMemory(e.what());
122 }
123 stats_.DidAllocateBytes(size);
124 return Status::OK();
125 }
126
127 Status Reallocate(int64_t old_size, int64_t new_size, int64_t /*alignment*/,
128 uint8_t** ptr) override {

Callers 1

allocateMethod · 0.45

Calls 5

OutOfMemoryFunction · 0.85
allocateMethod · 0.80
DidAllocateBytesMethod · 0.80
OKFunction · 0.70
whatMethod · 0.45

Tested by

no test coverage detected