Struct wasmtime_runtime::PoolingInstanceAllocator [−][src]
pub struct PoolingInstanceAllocator { /* fields omitted */ }Expand description
Implements the pooling instance allocator.
This allocator internally maintains pools of instances, memories, tables, and stacks.
Note: the resource pools are manually dropped so that the fault handler terminates correctly.
Implementations
impl PoolingInstanceAllocator[src]
impl PoolingInstanceAllocator[src]pub fn new(
strategy: PoolingAllocationStrategy,
module_limits: ModuleLimits,
instance_limits: InstanceLimits,
stack_size: usize
) -> Result<Self>[src]
pub fn new(
strategy: PoolingAllocationStrategy,
module_limits: ModuleLimits,
instance_limits: InstanceLimits,
stack_size: usize
) -> Result<Self>[src]Creates a new pooling instance allocator with the given strategy and limits.
Trait Implementations
impl Debug for PoolingInstanceAllocator[src]
impl Debug for PoolingInstanceAllocator[src]impl Drop for PoolingInstanceAllocator[src]
impl Drop for PoolingInstanceAllocator[src]impl InstanceAllocator for PoolingInstanceAllocator[src]
impl InstanceAllocator for PoolingInstanceAllocator[src]fn validate(&self, module: &Module) -> Result<()>[src]
fn validate(&self, module: &Module) -> Result<()>[src]Validates that a module is supported by the allocator.
fn adjust_tunables(&self, tunables: &mut Tunables)[src]
fn adjust_tunables(&self, tunables: &mut Tunables)[src]Adjusts the tunables prior to creation of any JIT compiler. Read more
unsafe fn allocate(
&self,
req: InstanceAllocationRequest<'_>
) -> Result<InstanceHandle, InstantiationError>[src]
unsafe fn allocate(
&self,
req: InstanceAllocationRequest<'_>
) -> Result<InstanceHandle, InstantiationError>[src]Allocates an instance for the given allocation request. Read more
unsafe fn initialize(
&self,
handle: &InstanceHandle,
is_bulk_memory: bool
) -> Result<(), InstantiationError>[src]
unsafe fn initialize(
&self,
handle: &InstanceHandle,
is_bulk_memory: bool
) -> Result<(), InstantiationError>[src]Finishes the instantiation process started by an instance allocator. Read more
unsafe fn deallocate(&self, handle: &InstanceHandle)[src]
unsafe fn deallocate(&self, handle: &InstanceHandle)[src]Deallocates a previously allocated instance. Read more
Auto Trait Implementations
impl RefUnwindSafe for PoolingInstanceAllocator
impl Send for PoolingInstanceAllocator
impl Sync for PoolingInstanceAllocator
impl Unpin for PoolingInstanceAllocator
impl UnwindSafe for PoolingInstanceAllocator
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,