/// Extend the number of slots in the map
Extend the number of slots in the map
Extend the number of slots in the map
pub fn extend_slots(&self, mem_slots: usize, allocator: &mut Heap) {
        // While updating the HostMap the syscall proxying can't be used,
        // so disable any debug printing possibly happening while allocating
        // memory in `inner_extend_slots`.
        //
        // Dropping the `_barrier` will re-enable printing.
        let _barrier = PrintBarrier::default();
        self.write().do_extend_slots(mem_slots, allocator);
    }
pub fn extend_slots ( & self , mem_slots : usize , allocator : & mut Heap ) { // While updating the HostMap the syscall proxying can't be used, // so disable any debug printing possibly happening while allocating // memory in `inner_extend_slots`. // // Dropping the `_barrier` will re-enable printing. let _barrier = PrintBarrier :: default ( ) ; self . write ( ) . do_extend_slots ( mem_slots , allocator ) ; }
Extend the number of slots in the map
Extend the number of slots in the map
&self
mem_slots
usize
allocator
&mut Heap