Same as above, but it decreases the consumption.
| 164 | |
| 165 | /// Same as above, but it decreases the consumption. |
| 166 | void ReleaseLocal(int64_t bytes, MemTracker* end_tracker) { |
| 167 | DCHECK_GE(bytes, 0); |
| 168 | if (UNLIKELY(bytes < 0)) return; // needed in RELEASE, hits DCHECK in DEBUG |
| 169 | ChangeConsumption(-bytes, end_tracker); |
| 170 | } |
| 171 | |
| 172 | /// Increases consumption of this tracker and its ancestors by 'bytes' only if |
| 173 | /// they can all consume 'bytes' without exceeding limit (hard or soft) specified |