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

Method Free

cpp/src/arrow/memory_pool.cc:504–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502 }
503
504 void Free(uint8_t* buffer, int64_t size, int64_t alignment) override {
505#ifndef NDEBUG
506 // Poison data
507 if (size > 0) {
508 DCHECK_NE(buffer, nullptr);
509 buffer[0] = kDeallocPoison;
510 buffer[size - 1] = kDeallocPoison;
511 }
512#endif
513 Allocator::DeallocateAligned(buffer, size, alignment);
514
515 stats_.DidFreeBytes(size);
516 }
517
518 void ReleaseUnused() override { Allocator::ReleaseUnused(); }
519

Callers

nothing calls this directly

Calls 1

DidFreeBytesMethod · 0.80

Tested by

no test coverage detected