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
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
Validates that a module is supported by the allocator.
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: &mut InstanceHandle,
module: &Module,
is_bulk_memory: bool
) -> Result<(), InstantiationError>[src]
unsafe fn initialize(
&self,
handle: &mut InstanceHandle,
module: &Module,
is_bulk_memory: bool
) -> Result<(), InstantiationError>[src]Finishes the instantiation process started by an instance allocator. Read more
Deallocates a previously allocated instance. Read more
Auto Trait Implementations
impl RefUnwindSafe for PoolingInstanceAllocatorimpl Send for PoolingInstanceAllocatorimpl Sync for PoolingInstanceAllocatorimpl Unpin for PoolingInstanceAllocatorimpl UnwindSafe for PoolingInstanceAllocator