| 429 | } |
| 430 | |
| 431 | void FunctionContext::TrackAllocation(int64_t bytes) { |
| 432 | assert(!impl_->closed_); |
| 433 | impl_->external_bytes_tracked_ += bytes; |
| 434 | impl_->udf_pool_->mem_tracker()->Consume(bytes); |
| 435 | impl_->CheckMemLimit("FunctionContext::TrackAllocation", bytes); |
| 436 | } |
| 437 | |
| 438 | void FunctionContext::Free(int64_t bytes) { |
| 439 | assert(!impl_->closed_); |