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

Method Allocate

cpp/src/arrow/memory_pool.cc:715–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

713LoggingMemoryPool::LoggingMemoryPool(MemoryPool* pool) : pool_(pool) {}
714
715Status LoggingMemoryPool::Allocate(int64_t size, int64_t alignment, uint8_t** out) {
716 Status s = pool_->Allocate(size, alignment, out);
717 std::cout << "Allocate: size = " << size << ", alignment = " << alignment << std::endl;
718 return s;
719}
720
721Status LoggingMemoryPool::Reallocate(int64_t old_size, int64_t new_size,
722 int64_t alignment, uint8_t** ptr) {

Callers 15

garrow_cuda_buffer_newFunction · 0.45
AllocateMethod · 0.45
ReserveMethod · 0.45
TestMemoryTrackingMethod · 0.45
TestOOMMethod · 0.45
TestReallocateMethod · 0.45
TestAlignmentMethod · 0.45
TouchAreaFunction · 0.45
AllocateDeallocateFunction · 0.45
AllocateTouchDeallocateFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls 2

OutOfMemoryFunction · 0.85
bytes_allocatedMethod · 0.45

Tested by 9

TestMemoryTrackingMethod · 0.36
TestOOMMethod · 0.36
TestReallocateMethod · 0.36
TestAlignmentMethod · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
GetDeepCopyMethod · 0.36