Commit dfd6b518 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4d2ae056
......@@ -504,7 +504,18 @@ void _Mapping::unmap() {
FileH f = mmap->fileh;
//f->_mmaps.remove(mmap);
std::remove(f->_mmaps.begin(), f->_mmaps.end(), mmap); // XXX keep mmaps sorted
printf("\nbefore remove %p:\n", mmap._ptr());
for (auto x : f->_mmaps)
printf("\t%p\n", x._ptr());
// FIXME keep mmaps sorted
f->_mmaps.erase(
std::remove(f->_mmaps.begin(), f->_mmaps.end(), mmap),
f->_mmaps.end());
printf("\nafter remove:\n");
for (auto x : f->_mmaps)
printf("\t%p\n", x._ptr());
}
......
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