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

Method Reallocate

cpp/src/arrow/memory_pool.cc:721–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

719}
720
721Status LoggingMemoryPool::Reallocate(int64_t old_size, int64_t new_size,
722 int64_t alignment, uint8_t** ptr) {
723 Status s = pool_->Reallocate(old_size, new_size, ptr);
724 std::cout << "Reallocate: old_size = " << old_size << ", new_size = " << new_size
725 << ", alignment = " << alignment << std::endl;
726 return s;
727}
728
729void LoggingMemoryPool::Free(uint8_t* buffer, int64_t size, int64_t alignment) {
730 pool_->Free(buffer, size, alignment);

Callers 7

ReallocateMethod · 0.45
ReserveMethod · 0.45
ResizeMethod · 0.45
TestReallocateMethod · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45

Calls 2

OutOfMemoryFunction · 0.85
bytes_allocatedMethod · 0.45

Tested by 4

TestReallocateMethod · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36