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

Method shrink

datafusion/execution/src/memory_pool/pool.rs:46–48  ·  view source on GitHub ↗
(&self, _reservation: &MemoryReservation, shrink: usize)

Source from the content-addressed store, hash-verified

44 }
45
46 fn shrink(&self, _reservation: &MemoryReservation, shrink: usize) {
47 self.used.fetch_sub(shrink, Ordering::Relaxed);
48 }
49
50 fn try_grow(&self, reservation: &MemoryReservation, additional: usize) -> Result<()> {
51 self.grow(reservation, additional);

Callers 3

test_fairFunction · 0.45

Calls 2

idMethod · 0.80
consumerMethod · 0.80

Tested by 3

test_fairFunction · 0.36