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

Method Free

cpp/src/arrow/memory_pool.cc:509–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

DidFreeBytesMethod · 0.80

Tested by

no test coverage detected