Home
last modified time | relevance | path

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

/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/
H A Dindex_allocator.rs77 pub struct MemoryInModule(pub CompiledModuleId, pub DefinedMemoryIndex); struct
121 module_affine: HashMap<MemoryInModule, List>,
145 Used(Option<MemoryInModule>),
169 affinity: Option<MemoryInModule>,
220 pub fn alloc(&self, for_memory: Option<MemoryInModule>) -> Option<SlotId> { in alloc()
237 Some(MemoryInModule(module_id, memory_index)), in alloc_affine_and_clear_affinity()
367 pub(crate) fn testing_module_affinity_list(&self) -> Vec<MemoryInModule> { in testing_module_affinity_list() argument
644 MemoryInModule(CompiledModuleId::new(), DefinedMemoryIndex::new(0)) in test_affinity_allocation_strategy_random()
724 state.alloc(Some(MemoryInModule( in test_affinity_threshold()
733 state.alloc(Some(MemoryInModule( in test_affinity_threshold()
[all …]
H A Dmemory_pool.rs55 index_allocator::{MemoryInModule, ModuleAffinityIndexAllocator, SlotId},
370 .map(|id| MemoryInModule(id, mem_idx)) in allocate()