Home
last modified time | relevance | path

Searched refs:pool (Results 1 – 25 of 48) sorted by relevance

12

/wasmtime-44.0.1/cranelift/entity/src/
H A Dlist.rs524 pool.data in copy_from()
551 self.clear(pool); in remove_last()
602 self.clear(pool); in truncate()
677 pool.free(b2, 1); in block_allocator()
685 pool.free(b1, 0); in block_allocator()
686 pool.free(b3, 0); in block_allocator()
710 list.clear(pool); in empty_list()
819 list.remove(3, pool); in insert_remove()
822 list.remove(2, pool); in insert_remove()
825 list.remove(0, pool); in insert_remove()
[all …]
/wasmtime-44.0.1/cranelift/bforest/src/
H A Dpath.rs52 pool: &NodePool<F>, in find()
59 match pool[node] { in find()
98 match pool[node] { in first()
209 match pool[node] { in goto_subtree_last()
268 pool: &mut NodePool<F>, in insert()
295 pool: &mut NodePool<F>, in split_and_insert()
420 match pool[crit_node] { in update_crit_key()
455 } = pool[self.node[ns]] in balance_nodes()
533 pool[rhs_node] = rhs; in underflowed_node()
771 match pool[root] { in search_single_leaf()
[all …]
H A Dmap.rs228 pool: &forest.nodes, in iter()
237 pool: forest.nodes, in into_iter()
337 self.path.next(pool) in next()
472 pool: &forest.nodes, in new()
488 self.raw.next(self.pool) in next()
500 self.raw.key(self.pool) in key()
505 self.raw.value(self.pool) in value()
571 self.raw.next(self.pool) in next()
583 self.raw.key(self.pool) in key()
588 self.raw.value(self.pool) in value()
[all …]
H A Dset.rs185 pool: &forest.nodes, in iter()
210 pool: &'a mut NodePool<SetTypes<K>>, field
224 pool: &mut forest.nodes, in new()
240 self.path.next(self.pool).map(|(k, _)| k) in next()
272 self.path.normalize(self.pool); in goto()
281 self.root.map(|root| self.path.first(root, self.pool).0) in goto_first()
320 *self.root = self.path.remove(self.pool).into(); in remove()
333 self.path.verify(self.pool); in verify()
350 pool: &'a NodePool<SetTypes<K>>, field
365 Some(root) => Some(self.path.first(root, self.pool).0), in next()
[all …]
H A Dlib.rs32 mod pool; module
40 use self::pool::NodePool;
/wasmtime-44.0.1/crates/environ/src/
H A Dstring_pool.rs152 pool.strings in deserialize()
166 Ok(pool) in deserialize()
314 let a = pool.insert("a")?; in basic()
315 assert_eq!(&pool[a], "a"); in basic()
322 let b = pool.insert("b")?; in basic()
323 assert_eq!(&pool[b], "b"); in basic()
361 let a = pool.insert("a")?; in roundtrip_serialize_deserialize()
362 let b = pool.insert("b")?; in roundtrip_serialize_deserialize()
363 let c = pool.insert("c")?; in roundtrip_serialize_deserialize()
368 assert_eq!(&pool[a], "a"); in roundtrip_serialize_deserialize()
[all …]
/wasmtime-44.0.1/cranelift/codegen/src/ir/
H A Djumptable.rs88 DisplayJumpTable { jt: self, pool } in display()
95 pool: &'a ValueListPool, field
102 write!(fmt, "{}", first.display(self.pool))?; in fmt()
104 write!(fmt, ", {}", block.display(self.pool))?; in fmt()
122 let mut pool = ValueListPool::default(); in empty() localVariable
132 assert_eq!(jt.display(&pool).to_string(), "block0, []"); in empty()
140 let mut pool = ValueListPool::default(); in insert() localVariable
151 let b2 = BlockCall::new(e2, core::iter::empty(), &mut pool); in insert()
158 jt.display(&pool).to_string(), in insert()
166 jt.as_slice()[0].args(&pool).collect::<Vec<_>>(), in insert()
[all …]
H A Dinstructions.rs78 pool: &mut ValueListPool, in new()
104 self.values.len(pool) - 1 in len()
110 pool: &'a ValueListPool, in args()
113 self.values.as_slice(pool)[1..] in args()
121 pool: &mut ValueListPool, in update_args()
137 self.values.truncate(1, pool) in clear()
150 pool, in extend()
172 pool: &'a ValueListPool, field
379 vlist.extend(self.0, pool); in into_value_list()
476 pool: &mut ValueListPool, in map_values()
[all …]
H A Dexception_table.rs168 pub fn display<'a>(&'a self, pool: &'a ValueListPool) -> DisplayExceptionTable<'a> { in display()
169 DisplayExceptionTable { table: self, pool } in display()
173 pub fn deep_clone(&self, pool: &mut ValueListPool) -> Self { in deep_clone()
175 targets: self.targets.iter().map(|b| b.deep_clone(pool)).collect(), in deep_clone()
254 pool: &'a ValueListPool, field
263 self.table.normal_return().display(self.pool) in fmt()
275 write!(fmt, "{}: {}", tag, block_call.display(self.pool))?; in fmt()
278 write!(fmt, "default: {}", block_call.display(self.pool))?; in fmt()
/wasmtime-44.0.1/tests/all/
H A Dpooling_allocator.rs6 let pool = crate::small_pool_config(); in successful_instantiation() localVariable
8 config.allocation_strategy(pool); in successful_instantiation()
26 pool.max_memory_size(3 << 16); in memory_limit()
28 config.allocation_strategy(pool); in memory_limit()
105 config.allocation_strategy(pool); in memory_init()
139 config.allocation_strategy(pool); in memory_guard_page_trap()
206 config.allocation_strategy(pool); in memory_zeroed()
446 pool.total_memories(2); in preserve_data_segments()
578 c.allocation_strategy(pool); in switch_image_and_non_image()
789 pool.max_memory_size(0); in zero_memory_pages_disallows_oob()
[all …]
H A Dinstance.rs46 let mut pool = crate::small_pool_config(); in linear_memory_limits() localVariable
47 pool.max_memory_size(1 << 32); in linear_memory_limits()
49 InstanceAllocationStrategy::Pooling(pool), in linear_memory_limits()
H A Dlimits.rs352 let mut pool = crate::small_pool_config(); in test_pooling_allocator_initial_limits_exceeded() localVariable
353 pool.total_memories(2) in test_pooling_allocator_initial_limits_exceeded()
359 config.allocation_strategy(InstanceAllocationStrategy::Pooling(pool)); in test_pooling_allocator_initial_limits_exceeded()
750 let mut pool = crate::small_pool_config(); in custom_limiter_detect_grow_failure() localVariable
751 pool.max_memory_size(10 << 16).table_elements(10); in custom_limiter_detect_grow_failure()
753 config.allocation_strategy(InstanceAllocationStrategy::Pooling(pool)); in custom_limiter_detect_grow_failure()
861 let mut pool = crate::small_pool_config(); in custom_limiter_async_detect_grow_failure() localVariable
862 pool.max_memory_size(10 << 16).table_elements(10); in custom_limiter_async_detect_grow_failure()
864 config.allocation_strategy(InstanceAllocationStrategy::Pooling(pool)); in custom_limiter_async_detect_grow_failure()
/wasmtime-44.0.1/examples/
H A Dfast_instantiation.rs15 let mut pool = PoolingAllocationConfig::new(); in main() localVariable
16 pool.total_memories(100); in main()
17 pool.max_memory_size(1 << 31); // 2 GiB in main()
18 pool.total_tables(100); in main()
19 pool.table_elements(5000); in main()
20 pool.total_core_instances(100); in main()
21 config.allocation_strategy(InstanceAllocationStrategy::Pooling(pool)); in main()
H A Dmpk.rs187 let mut pool = PoolingAllocationConfig::default(); in build_engine() localVariable
190 pool.max_memory_size(max_memory_size) in build_engine()
202 config.allocation_strategy(InstanceAllocationStrategy::Pooling(pool)); in build_engine()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/
H A Dunix_stack_pool.rs281 let pool = StackPool::new(&config)?; in test_stack_pool() localVariable
284 assert_eq!(pool.stack_size, 2 * native_page_size); in test_stack_pool()
285 assert_eq!(pool.max_stacks, 10); in test_stack_pool()
286 assert_eq!(pool.page_size, native_page_size); in test_stack_pool()
288 assert_eq!(pool.index_allocator.testing_freelist(), []); in test_stack_pool()
290 let base = pool.mapping.as_ptr() as usize; in test_stack_pool()
294 let stack = pool.allocate().expect("allocation should succeed"); in test_stack_pool()
302 assert_eq!(pool.index_allocator.testing_freelist(), []); in test_stack_pool()
304 assert!(pool.allocate().is_err(), "allocation should fail"); in test_stack_pool()
308 pool.deallocate(stack, 0); in test_stack_pool()
[all …]
H A Dtable_pool.rs147 pool: self, in allocate()
172 pool: &'a TablePool, in allocate() field
182 self.pool in allocate()
267 let pool = TablePool::new(&PoolingInstanceAllocatorConfig { in test_table_pool() localVariable
280 assert_eq!(pool.table_size, host_page_size); in test_table_pool()
281 assert_eq!(pool.max_total_tables, 7); in test_table_pool()
282 assert_eq!(pool.nominal_table_elements, 100); in test_table_pool()
284 let base = pool.mapping.as_ptr() as usize; in test_table_pool()
288 let ptr = pool.get(index); in test_table_pool()
291 pool.table_size.checked_mul(i as usize).unwrap() in test_table_pool()
H A Dmemory_pool.rs274 let pool = Self { in new() localVariable
286 Ok(pool) in new()
380 pool: self, in allocate()
439 pool: &'a MemoryPool, in allocate() field
450 self.pool.stripes[self.stripe_index] in allocate()
895 let pool = MemoryPool::new( in test_memory_pool() localVariable
915 assert_eq!(pool.layout.num_slots, 5); in test_memory_pool()
918 let base = pool.mapping.as_ptr() as usize; in test_memory_pool()
922 let ptr = pool.get_base(index).as_mut_ptr(); in test_memory_pool()
946 assert!(pool.stripes.len() >= 2); in test_pooling_allocator_striping()
[all …]
H A Dmetrics.rs200 let mut pool = small_pool_config(); in unused_memories_tables_and_more() localVariable
201 pool.linear_memory_keep_resident(65536); in unused_memories_tables_and_more()
202 pool.table_keep_resident(65536); in unused_memories_tables_and_more()
203 pool.pagemap_scan(Enabled::Auto); in unused_memories_tables_and_more()
205 config.allocation_strategy(pool); in unused_memories_tables_and_more()
314 let pool = small_pool_config(); in gc_heaps() localVariable
316 config.allocation_strategy(pool); in gc_heaps()
334 let pool = small_pool_config(); in stacks() localVariable
336 config.allocation_strategy(pool); in stacks()
H A Ddecommit_queue.rs173 pub fn flush(mut self, pool: &PoolingInstanceAllocator) -> bool { in flush()
196 pool.memories in flush()
203 pool.tables in flush()
211 pool.stacks.deallocate(stack.0, bytes_resident); in flush()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dlinker.rs86 pool: StringPool, field
103 pool: self.pool.clone_panic_on_oom(), in clone()
164 pool: StringPool::new(), in new()
989 let module = self.pool.insert(module)?; in alias_module()
990 let as_module = self.pool.insert(as_module)?; in alias_module()
1011 let module = &self.pool[key.module]; in insert()
1024 module: self.pool.insert(module)?, in import_key()
1216 &self.pool[key.module], in iter()
1217 &self.pool[key.name.unwrap()], in iter()
1253 module: self.pool.get_atom(module)?, in _get()
[all …]
/wasmtime-44.0.1/cranelift/codegen/src/
H A Dinst_predicates.rs184 let pool = &f.dfg.value_lists; in visit_block_succs() localVariable
197 visit(inst, table.default_block().block(pool), false); in visit_block_succs()
200 visit(inst, dest.block(pool), true); in visit_block_succs()
206 let pool = &f.dfg.value_lists; in visit_block_succs() localVariable
210 visit(inst, dest.block(pool), false); in visit_block_succs()
H A Dwrite.rs376 let pool = &dfg.value_lists; in write_operands() localVariable
415 write!(w, " {}", DisplayValues(args.as_slice(pool))) in write_operands()
437 write!(w, " {}", destination.display(pool)) in write_operands()
444 write!(w, " {}, {}", arg, block_then.display(pool))?; in write_operands()
445 write!(w, ", {}", block_else.display(pool)) in write_operands()
448 write!(w, " {}, {}", arg, jump_tables[table].display(pool)) in write_operands()
459 let args = args.as_slice(pool); in write_operands()
479 DisplayValues(args.as_slice(pool)), in write_operands()
480 exception_tables[exception].display(pool), in write_operands()
489 let args = args.as_slice(pool); in write_operands()
[all …]
/wasmtime-44.0.1/benches/
H A Dthread_eager_init.rs91 let mut pool = PoolingAllocationConfig::default(); in test_setup() localVariable
92 pool.total_memories(pool_count) in test_setup()
96 config.allocation_strategy(InstanceAllocationStrategy::Pooling(pool)); in test_setup()
/wasmtime-44.0.1/tests/
H A Dwast.rs227 let mut pool = PoolingAllocationConfig::default(); in run_wast() localVariable
228 pool.total_memories(limits::MEMORIES * 2) in run_wast()
241 pool.memory_protection_keys(Enabled::Yes); in run_wast()
244 cfg.allocation_strategy(InstanceAllocationStrategy::Pooling(pool)); in run_wast()
/wasmtime-44.0.1/docs/
H A Dexamples-fast-instantiation.md12 ahead-of-time allocate a large pool containing all the resources necessary to
15 just takes pre-allocated memories and tables from the pool, which is generally
17 pool.

12