| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/ |
| H A D | metrics.rs | 17 engine.allocator().as_pooling().map(|_| Self { in new() 29 self.allocator() in component_instances() 41 self.allocator().live_tables.load(Ordering::Relaxed) in tables() 63 self.allocator().memories.unused_warm_slots() in unused_warm_memories() 70 self.allocator().memories.unused_bytes_resident() in unused_memory_bytes_resident() 80 self.allocator().tables.unused_warm_slots() in unused_warm_tables() 87 self.allocator().tables.unused_bytes_resident() in unused_table_bytes_resident() 98 self.allocator().stacks.unused_warm_slots() in unused_warm_stacks() 109 self.allocator().stacks.unused_bytes_resident() in unused_stack_bytes_resident() 112 fn allocator(&self) -> &PoolingInstanceAllocator { in allocator() method [all …]
|
| H A D | index_allocator.rs | 759 let allocator = SimpleIndexAllocator::new(10); in test_freelist() localVariable 760 assert_eq!(allocator.testing_freelist(), []); in test_freelist() 761 let a = allocator.alloc().unwrap(); in test_freelist() 762 assert_eq!(allocator.testing_freelist(), []); in test_freelist() 763 allocator.free(a, 0); in test_freelist() 765 assert_eq!(allocator.alloc(), Some(a)); in test_freelist() 766 assert_eq!(allocator.testing_freelist(), []); in test_freelist() 767 let b = allocator.alloc().unwrap(); in test_freelist() 768 assert_eq!(allocator.testing_freelist(), []); in test_freelist() 769 allocator.free(b, 0); in test_freelist() [all …]
|
| H A D | memory_pool.rs | 83 allocator: ModuleAffinityIndexAllocator, field 266 allocator, in new() 346 self.stripes.iter().all(|s| s.allocator.is_empty()) in is_empty() 365 .allocator in allocate() 451 .allocator in allocate() 483 .allocator in deallocate() 515 .allocator in purge_module() 533 stripe.allocator.free(id, 0); in purge_module() 620 .map(|i| i.allocator.unused_warm_slots()) in unused_warm_slots() 627 .map(|i| i.allocator.unused_bytes_resident()) in unused_bytes_resident() [all …]
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/gc/enabled/ |
| H A D | arrayref.rs | 298 allocator: &ArrayRefPre, in new() 309 allocator, in new() 351 allocator: &ArrayRefPre, in new_async() 359 allocator, in new_async() 370 allocator: &ArrayRefPre, in _new_async() 387 allocator: &ArrayRefPre, in new_from_iter() 392 allocator.store_id, in new_from_iter() 408 .alloc_uninit_array(allocator.type_index(), len, allocator.layout()) in new_from_iter() 468 allocator: &ArrayRefPre, in new_fixed() 478 allocator, in new_fixed() [all …]
|
| H A D | exnref.rs | 207 allocator: &ExnRefPre, in new() 218 allocator, in new() 252 allocator: &ExnRefPre, in new_async() 260 allocator, in new_async() 271 allocator: &ExnRefPre, in _new_async() 288 allocator: &ExnRefPre, in type_check_tag_and_fields() 301 let expected_len = allocator.ty.fields().len(); in type_check_tag_and_fields() 325 allocator: &ExnRefPre, in new_unchecked() 331 allocator.store_id, in new_unchecked() 339 .alloc_uninit_exn(allocator.type_index(), &allocator.layout()) in new_unchecked() [all …]
|
| H A D | structref.rs | 235 allocator: &StructRefPre, in new() 245 allocator, in new() 276 allocator: &StructRefPre, in new_async() 286 allocator: &StructRefPre, in _new_async() 290 Self::type_check_fields(store, allocator, fields)?; in _new_async() 301 allocator: &StructRefPre, in type_check_fields() 304 let expected_len = allocator.ty.fields().len(); in type_check_fields() 328 allocator: &StructRefPre, in new_unchecked() 333 allocator.store_id, in new_unchecked() 341 .alloc_uninit_struct(allocator.type_index(), &allocator.layout()) in new_unchecked() [all …]
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/stack_switching/stack/ |
| H A D | unix.rs | 84 allocator: Allocator, field 117 allocator: Allocator::Mmap, in new() 126 allocator: Allocator::Custom, in unallocated() 143 allocator: Allocator::Custom, in from_raw_parts() 148 self.allocator == Allocator::Custom in is_from_raw_parts() 285 match self.allocator { in drop()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/trampoline/ |
| H A D | table.rs | 33 let allocator = in create_table() localVariable 40 allocator: &allocator, in create_table()
|
| H A D | tag.rs | 37 let allocator = in create_tag() localVariable 48 allocator: &allocator, in create_tag()
|
| H A D | memory.rs | 53 let allocator = SingleMemoryInstance { in create_memory() localVariable 62 allocator: &allocator, in create_memory()
|
| /wasmtime-44.0.1/tests/all/ |
| H A D | exnrefs.rs | 57 let allocator = ExnRefPre::new(&mut store, exntype); in exn_objects() localVariable 65 &allocator, in exn_objects() 73 &allocator, in exn_objects()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | store.rs | 808 allocator in try_new() 820 allocator: &allocator, in try_new() 1521 let allocator = self.engine().allocator(); in call_hook_slow_path() localVariable 1960 .allocator() in allocate_gc_store() 1971 .allocator() in allocate_gc_store() 2612 let allocator = match kind { in allocate_instance() localVariable 2614 AllocateInstanceKind::Dummy { allocator } => allocator, in allocate_instance() 2619 allocator in allocate_instance() 2774 allocator: &'a dyn InstanceAllocator, 2893 let allocator = self.engine.allocator(); in drop() localVariable [all …]
|
| /wasmtime-44.0.1/crates/c-api/artifact/ |
| H A D | Cargo.toml | 43 'pooling-allocator', 69 pooling-allocator = ["wasmtime-c-api/pooling-allocator"]
|
| /wasmtime-44.0.1/crates/wasmtime/src/ |
| H A D | engine.rs | 57 allocator: Box<dyn crate::runtime::vm::InstanceAllocator + Send + Sync>, field 142 allocator: { in new() 143 let allocator = config.build_allocator(&tunables)?; in new() localVariable 147 allocator.validate_memory(&mem_ty).context( in new() 151 allocator in new() 785 pub(crate) fn allocator(&self) -> &dyn crate::runtime::vm::InstanceAllocator { in allocator() method 787 self.inner.allocator.as_ref(); in allocator()
|
| /wasmtime-44.0.1/crates/cli-flags/ |
| H A D | Cargo.toml | 27 pooling-allocator = ["wasmtime/pooling-allocator"]
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/store/ |
| H A D | data.rs | 45 pub fn decrement_allocator_resources(&mut self, allocator: &dyn vm::InstanceAllocator) { in decrement_allocator_resources() 47 self.components.decrement_allocator_resources(allocator); in decrement_allocator_resources() 49 let _ = allocator; in decrement_allocator_resources()
|
| H A D | async_.rs | 187 self.engine().allocator().allocate_fiber_stack() in allocate_fiber_stack() 200 self.engine.allocator().deallocate_fiber_stack(stack); in flush_fiber_stack()
|
| /wasmtime-44.0.1/crates/c-api/src/ |
| H A D | exn.rs | 27 let allocator = ExnRefPre::new(&mut scope, exn_type); in wasmtime_exn_new() localVariable 31 ExnRef::new(&mut scope, &allocator, tag, &field_vals) in wasmtime_exn_new()
|
| /wasmtime-44.0.1/crates/c-api/ |
| H A D | Cargo.toml | 65 pooling-allocator = ["wasmtime/pooling-allocator"]
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/ |
| H A D | pooling.rs | 958 let allocator = PoolingInstanceAllocator::new(&config, &Tunables::default_host())?; in test_stack_zeroed() localVariable 962 let stack = allocator.allocate_fiber_stack()?; in test_stack_zeroed() 970 allocator.deallocate_fiber_stack(stack); in test_stack_zeroed() 998 let allocator = PoolingInstanceAllocator::new(&config, &Tunables::default_host())?; in test_stack_unzeroed() localVariable 1002 let stack = allocator.allocate_fiber_stack()?; in test_stack_unzeroed() 1010 allocator.deallocate_fiber_stack(stack); in test_stack_unzeroed()
|
| /wasmtime-44.0.1/tests/misc_testsuite/ |
| H A D | pooling-drop-out-of-order.wast | 4 ;; when purging modules from the pooling allocator.
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/ |
| H A D | allocator.rs | 338 allocator: self, in allocate_module() 361 allocator: &'a (dyn InstanceAllocator + 'a), in allocate_module() field 371 self.allocator.deallocate_memories(&mut self.memories); in allocate_module() 372 self.allocator.deallocate_tables(&mut self.tables); in allocate_module() 374 self.allocator.decrement_core_instance_count(); in allocate_module()
|
| /wasmtime-44.0.1/crates/bench-api/ |
| H A D | Cargo.toml | 22 shuffling-allocator = { version = "1.1.1", optional = true }
|
| /wasmtime-44.0.1/examples/min-platform/embedding/ |
| H A D | Cargo.toml | 20 # Memory allocator used in this example (not required, however)
|
| /wasmtime-44.0.1/crates/c-api/cmake/ |
| H A D | features.cmake | 48 feature(pooling-allocator ON)
|