Drop the `MmapGuard` and unmap the file it tracks.
(&mut self)
| 103 | impl Drop for MmapGuard { |
| 104 | /// Drop the `MmapGuard` and unmap the file it tracks. |
| 105 | fn drop(&mut self) { |
| 106 | // SAFETY: `segment` was previously returned from `mmap`, and therefore |
| 107 | // when this destructor runs there are no more live references into |
| 108 | // it. |
| 109 | unsafe { |
| 110 | let ret = libc::munmap(self.segment, self.segsize); |
| 111 | assert_eq!(0, ret); |
| 112 | } |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | /// Reader for VMClock shared memory segment. |
nothing calls this directly
no outgoing calls
no test coverage detected