MCPcopy Create free account
hub / github.com/apache/datafusion / free

Method free

datafusion/execution/src/memory_pool/mod.rs:391–397  ·  view source on GitHub ↗

Frees all bytes from this reservation back to the underlying pool, returning the number of bytes freed.

(&self)

Source from the content-addressed store, hash-verified

389 /// Frees all bytes from this reservation back to the underlying
390 /// pool, returning the number of bytes freed.
391 pub fn free(&self) -> usize {
392 let size = self.size.swap(0, atomic::Ordering::Relaxed);
393 if size != 0 {
394 self.registration.pool.shrink(self, size);
395 }
396 size
397 }
398
399 /// Frees `capacity` bytes from this reservation
400 ///

Callers 12

finishMethod · 0.80
poll_nextMethod · 0.80
poll_nextMethod · 0.80
sortMethod · 0.80
test_fairFunction · 0.80
dropMethod · 0.80
executeMethod · 0.80

Calls 2

swapMethod · 0.45
shrinkMethod · 0.45