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

Method ConsumeLocal

be/src/runtime/mem-tracker.h:159–163  ·  view source on GitHub ↗

Increases the consumption of this tracker and the ancestors up to (but not including) end_tracker. This is useful if we want to move tracking between trackers that share a common (i.e. end_tracker) ancestor. This happens when we want to update tracking on a particular mem tracker but the consumption against the limit recorded in one of its ancestors already happened.

Source from the content-addressed store, hash-verified

157 /// to update tracking on a particular mem tracker but the consumption against
158 /// the limit recorded in one of its ancestors already happened.
159 void ConsumeLocal(int64_t bytes, MemTracker* end_tracker) {
160 DCHECK_GE(bytes, 0);
161 if (UNLIKELY(bytes < 0)) return; // needed in RELEASE, hits DCHECK in DEBUG
162 ChangeConsumption(bytes, end_tracker);
163 }
164
165 /// Same as above, but it decreases the consumption.
166 void ReleaseLocal(int64_t bytes, MemTracker* end_tracker) {

Callers 2

TransferToMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected