Commit c9ab6e84 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 46fcdd2d
......@@ -1120,8 +1120,6 @@ error _Mapping::unmap() {
mmap->mem_stop = nil;
// XXX clear other fields?
// XXX do it first? (to avoid pinner going through f.mmaps and hitting unmapped memory)
// -> no need: both pinner and unmap lock on f.mmapMu
//f->_mmaps.remove(mmap);
f->_mmaps.erase(
std::remove(f->_mmaps.begin(), f->_mmaps.end(), mmap),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment