Home
last modified time | relevance | path

Searched refs:num_empty_slots (Results 1 – 2 of 2) sorted by relevance

/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/
H A Dindex_allocator.rs347 pub fn num_empty_slots(&self) -> usize { in num_empty_slots() method
544 assert_eq!(state.num_empty_slots(), usize::try_from(size).unwrap()); in test_next_available_allocation_strategy()
546 assert_eq!(state.num_empty_slots(), usize::try_from(size - i).unwrap()); in test_next_available_allocation_strategy()
566 assert_eq!(state.num_empty_slots(), 99); in test_affinity_allocation_strategy()
585 assert_eq!(state.num_empty_slots(), 100); in test_affinity_allocation_strategy()
592 assert_eq!(state.num_empty_slots(), 0); in test_affinity_allocation_strategy()
H A Dmemory_pool.rs949 dbg!(pool.stripes[0].allocator.num_empty_slots()); in test_pooling_allocator_striping()
950 dbg!(pool.stripes[1].allocator.num_empty_slots()); in test_pooling_allocator_striping()
954 .map(|s| s.allocator.num_empty_slots()) in test_pooling_allocator_striping()