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

Method ReleaseTo

be/src/runtime/bufferpool/reservation-tracker.cc:394–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394void ReservationTracker::ReleaseTo(int64_t bytes) {
395 lock_guard<SpinLock> l(lock_);
396 DCHECK(initialized_);
397 DCHECK_GE(bytes, 0);
398 DCHECK_LE(bytes, used_reservation_.Load());
399 UpdateUsedReservation(-bytes);
400 CheckConsistency();
401}
402
403int64_t ReservationTracker::GetReservation() {
404 // Don't acquire lock - there is no point in holding it for this function only since

Callers 5

TEST_FFunction · 0.80
UnpinMethod · 0.80
TransferBufferMethod · 0.80
FreedBufferMethod · 0.80

Calls 1

LoadMethod · 0.45

Tested by 1

TEST_FFunction · 0.64