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

Method ClearExprResultsPool

be/src/exec/partitioned-hash-join-node.inline.h:41–49  ·  view source on GitHub ↗

Must not be inlined during codegen since calls to this function from ProcessProbeBatch are removed by codegen if there are no conjuncts. The actual function calls are in the ProcessProbeRow* functions which are inlined into ProcessProbeBatch, thus the codegen of ProcessProbeBatch will be able to eliminate the calls to this function.

Source from the content-addressed store, hash-verified

39// ProcessProbeBatch, thus the codegen of ProcessProbeBatch will be able to eliminate the
40// calls to this function.
41inline void IR_NO_INLINE PartitionedHashJoinNode::ClearExprResultsPool(
42 const int num_conjuncts, const int num_other_join_conjuncts) {
43 DCHECK(expr_results_pool_.get() != nullptr);
44 DCHECK(expr_results_mem_limit_ > 0);
45 if (num_conjuncts + num_other_join_conjuncts > 0 &&
46 UNLIKELY(expr_results_pool_->total_allocated_bytes() > expr_results_mem_limit_)) {
47 expr_results_pool_->Clear();
48 }
49}
50
51}
52

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
total_allocated_bytesMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected