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

Method Clear

be/src/runtime/mem-pool.cc:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void MemPool::Clear() {
66 DFAKE_SCOPED_LOCK(mutex_);
67 current_chunk_idx_ = -1;
68 for (auto& chunk: chunks_) {
69 chunk.allocated_bytes = 0;
70 ASAN_POISON_MEMORY_REGION(chunk.data, chunk.size);
71 }
72 total_allocated_bytes_ = 0;
73 DCHECK(CheckIntegrity(false));
74}
75
76void MemPool::FreeAll() {
77 DFAKE_SCOPED_LOCK(mutex_);

Callers 15

TearDownMethod · 0.45
validatePlanSchemaMethod · 0.45
FOREACH_ROW_LIMITFunction · 0.45
TearDownMethod · 0.45
ToProtoMethod · 0.45
ResetMethod · 0.45
AddBatchMethod · 0.45
AddBatchNoSpillMethod · 0.45
GetNextMethod · 0.45
CloseMethod · 0.45
CleanupAllRunsMethod · 0.45

Calls

no outgoing calls

Tested by 15

TearDownMethod · 0.36
validatePlanSchemaMethod · 0.36
TearDownMethod · 0.36
TearDownMethod · 0.36
TESTFunction · 0.36
ResetMethod · 0.36
TESTFunction · 0.36
TearDownMethod · 0.36
TearDownMethod · 0.36
TearDownMethod · 0.36
TearDownMethod · 0.36
TearDownMethod · 0.36