| 355 | } |
| 356 | |
| 357 | void BufferPool::ClientHandle::SaveReservation(SubReservation* dst, int64_t bytes) { |
| 358 | DCHECK(!dst->is_closed()); |
| 359 | DCHECK_EQ(dst->tracker_->parent(), impl_->reservation()); |
| 360 | bool success = impl_->reservation()->TransferReservationTo(dst->tracker_.get(), bytes); |
| 361 | DCHECK(success); // SubReservation should not have a limit, so this shouldn't fail. |
| 362 | } |
| 363 | |
| 364 | void BufferPool::ClientHandle::RestoreReservation(SubReservation* src, int64_t bytes) { |
| 365 | DCHECK(!src->is_closed()); |