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

Method Allocate

cpp/src/arrow/stl_allocator.h:107–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 using MemoryPool::Reallocate;
106
107 Status Allocate(int64_t size, int64_t /*alignment*/, uint8_t** out) override {
108 try {
109 *out = alloc_.allocate(size);
110 } catch (std::bad_alloc& e) {
111 return Status::OutOfMemory(e.what());
112 }
113 stats_.DidAllocateBytes(size);
114 return Status::OK();
115 }
116
117 Status Reallocate(int64_t old_size, int64_t new_size, int64_t /*alignment*/,
118 uint8_t** ptr) override {

Callers 1

allocateMethod · 0.45

Calls 5

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

Tested by

no test coverage detected