[−][src]Trait lucet_runtime_internals::region::RegionInternal
A RegionInternal
is a collection of Slot
s which are managed as a whole.
Required methods
fn new_instance_with(
&self,
module: Arc<dyn Module>,
embed_ctx: CtxMap
) -> Result<InstanceHandle, Error>
&self,
module: Arc<dyn Module>,
embed_ctx: CtxMap
) -> Result<InstanceHandle, Error>
fn drop_alloc(&self, alloc: &mut Alloc)
Unmaps the heap, stack, and globals of an Alloc
, while retaining the virtual address
ranges in its Slot
.
fn expand_heap(&self, slot: &Slot, start: u32, len: u32) -> Result<(), Error>
Expand the heap for the given slot to include the given range.
fn reset_heap(
&self,
alloc: &mut Alloc,
module: &dyn Module
) -> Result<(), Error>
&self,
alloc: &mut Alloc,
module: &dyn Module
) -> Result<(), Error>
fn as_dyn_internal(&self) -> &dyn RegionInternal
Implementors
impl RegionInternal for MmapRegion
[src]
fn new_instance_with(
&self,
module: Arc<dyn Module>,
embed_ctx: CtxMap
) -> Result<InstanceHandle, Error>
[src]
&self,
module: Arc<dyn Module>,
embed_ctx: CtxMap
) -> Result<InstanceHandle, Error>
fn drop_alloc(&self, alloc: &mut Alloc)
[src]
fn expand_heap(&self, slot: &Slot, start: u32, len: u32) -> Result<(), Error>
[src]
fn reset_heap(
&self,
alloc: &mut Alloc,
module: &dyn Module
) -> Result<(), Error>
[src]
&self,
alloc: &mut Alloc,
module: &dyn Module
) -> Result<(), Error>