pub unsafe fn unmap_memory(&self) {
        self.domain.with(|vma, mapping| {
            if let Some(ref mut data) = *self.static_wasm_data.lock() {
                vma.destroy_vma(mapping, &data.code);
            }
            vma.destroy_vma(mapping, &self.stack.vma);
            let mut heap = self.heap.write();
            vma.destroy_vma(mapping, &*heap);
            *heap = LazilyMappedVma::dummy();
        });
    }
/// Unmaps the memory that this thread holds.
/// Unsafe because you can totally break memory mappings and safety if you call this
/// while memory of this thread is still used somewhere.
Unmaps the memory that this thread holds.
Unsafe because you can totally break memory mappings and safety if you call this
while memory of this thread is still used somewhere.
Unmaps the memory that this thread holds . Unsafe because you can totally break memory mappings and safety if you call this while memory of this thread is still used somewhere .
pub unsafe fn unmap_memory(&self) {
        self.domain.with(|vma, mapping| {
            if let Some(ref mut data) = *self.static_wasm_data.lock() {
                vma.destroy_vma(mapping, &data.code);
            }
            vma.destroy_vma(mapping, &self.stack.vma);
            let mut heap = self.heap.write();
            vma.destroy_vma(mapping, &*heap);
            *heap = LazilyMappedVma::dummy();
        });
    }
pub unsafe fn unmap_memory ( & self ) { self . domain . with ( | vma , mapping | { if let Some ( ref mut data ) = * self . static_wasm_data . lock ( ) { vma . destroy_vma ( mapping , & data . code ) ; } vma . destroy_vma ( mapping , & self . stack . vma ) ; let mut heap = self . heap . write ( ) ; vma . destroy_vma ( mapping , & * heap ) ; * heap = LazilyMappedVma :: dummy ( ) ; } ) ; }
Unmaps the memory that this thread holds.
Unmaps the memory that this thread holds .
&self
&self