MCPcopy Create free account
hub / github.com/apache/impala / FreeToSystem

Method FreeToSystem

be/src/runtime/bufferpool/buffer-allocator.cc:487–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487int64_t BufferPool::BufferAllocator::FreeToSystem(vector<BufferHandle>&& buffers) {
488 int64_t bytes_freed = 0;
489 for (BufferHandle& buffer : buffers) {
490 bytes_freed += buffer.len();
491 // Ensure that the memory is unpoisoned when it's next allocated by the system.
492 buffer.Unpoison();
493 system_allocator_->Free(move(buffer));
494 }
495 return bytes_freed;
496}
497
498int64_t BufferPool::BufferAllocator::SumOverArenas(
499 const std::function<int64_t(FreeBufferArena* arena)>& compute_fn) const {

Callers 3

~FreeBufferArenaMethod · 0.80
FreeSystemMemoryMethod · 0.80
MaintenanceMethod · 0.80

Calls 4

moveFunction · 0.85
UnpoisonMethod · 0.80
lenMethod · 0.45
FreeMethod · 0.45

Tested by

no test coverage detected