pub fn record_remote_writable(&mut self, addr: RemotePtr<Void>, mut num_bytes: usize) {
        let mut p = addr;
        while p < addr + num_bytes {
            match self.vm().mapping_of(p) {
                Some(m) => {
                    if !m.map.prot().contains(ProtFlags::PROT_WRITE) {
                        break;
                    }
                    p = m.map.end();
                }
                None => break,
            }
        }
        num_bytes = min(num_bytes, p - addr);

        self.record_remote(addr, num_bytes);
    }
/// Record as much as we can of the bytes in this range. Will record only
/// contiguous mapped-writable data starting at `addr`.
Record as much as we can of the bytes in this range. Will record only
contiguous mapped-writable data starting at `addr`.
Record as much as we can of the bytes in this range . Will record only contiguous mapped - writable data starting at ` addr ` .
pub fn record_remote_writable(&mut self, addr: RemotePtr<Void>, mut num_bytes: usize) {
        let mut p = addr;
        while p < addr + num_bytes {
            match self.vm().mapping_of(p) {
                Some(m) => {
                    if !m.map.prot().contains(ProtFlags::PROT_WRITE) {
                        break;
                    }
                    p = m.map.end();
                }
                None => break,
            }
        }
        num_bytes = min(num_bytes, p - addr);
        self.record_remote(addr, num_bytes);
    }
pub fn record_remote_writable ( & mut self , addr : RemotePtr < Void > , mut num_bytes : usize ) { let mut p = addr ; while p < addr + num_bytes { match self . vm ( ) . mapping_of ( p ) { Some ( m ) => { if ! m . map . prot ( ) . contains ( ProtFlags :: PROT_WRITE ) { break ; } p = m . map . end ( ) ; } None => break , } } num_bytes = min ( num_bytes , p - addr ) ; self . record_remote ( addr , num_bytes ) ; }
Record as much as we can of the bytes in this range.
Record as much as we can of the bytes in this range .
&mut self
addr
RemotePtr<Void>
num_bytes
usize