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

Method try_grow

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

Try to increase the size of this reservation by `capacity` bytes, returning error if there is insufficient capacity left in the pool.

(&self, capacity: usize)

Source from the content-addressed store, hash-verified

469 /// bytes, returning error if there is insufficient capacity left
470 /// in the pool.
471 pub fn try_grow(&self, capacity: usize) -> Result<()> {
472 self.registration.pool.try_grow(self, capacity)?;
473 self.size.fetch_add(capacity, atomic::Ordering::Relaxed);
474 Ok(())
475 }
476
477 /// Splits off `capacity` bytes from this [`MemoryReservation`]
478 /// into a new [`MemoryReservation`] with the same

Callers 15

add_batchMethod · 0.45
push_batchMethod · 0.45
newMethod · 0.45
test_work_tableFunction · 0.45
newMethod · 0.45
spillMethod · 0.45
convert_batchMethod · 0.45

Calls

no outgoing calls

Tested by 10

test_work_tableFunction · 0.36
test_splitFunction · 0.36
test_new_emptyFunction · 0.36
test_takeFunction · 0.36
test_try_shrinkFunction · 0.36