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

Method Free

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

Source from the content-addressed store, hash-verified

435}
436
437void BufferPool::BufferAllocator::Free(BufferHandle&& handle) {
438 DCHECK(handle.is_open());
439 handle.client_ = nullptr; // Buffer is no longer associated with a client.
440 FreeBufferArena* arena = per_core_arenas_[handle.home_core_].get();
441 handle.Poison();
442 arena->AddFreeBuffer(move(handle));
443}
444
445void BufferPool::BufferAllocator::AddCleanPage(
446 const unique_lock<mutex>& client_lock, Page* page) {

Callers 1

FreeToSystemMethod · 0.45

Calls 5

moveFunction · 0.85
PoisonMethod · 0.80
getMethod · 0.65
is_openMethod · 0.45
AddFreeBufferMethod · 0.45

Tested by

no test coverage detected