Commit 3310888d authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent ee5db6a9
......@@ -606,8 +606,10 @@ error _Mapping::remmap_blk(int64_t blk) {
return nil;
}
// unmap removes mapping memory from address space.
// virtmem calls this when VMA is unmapped.
// unmap releases mapping memory from address space.
//
// After call to unmap the mapping must no longer be used.
// virtmem calls unmap when VMA is unmapped.
error _Mapping::unmap() {
Mapping mmap = newref(this); // XXX newref for std::remove
FileH f = mmap->fileh;
......
......@@ -238,7 +238,7 @@ public:
// The mapped memory is [.mem_start, .mem_stop)
// Use .unmap to release virtual memory resources used by mapping.
//
// XXX It is safe to use Mapping from multiple threads simultaneously.
// It is safe to use Mapping from multiple threads simultaneously.
typedef refptr<struct _Mapping> Mapping;
struct _Mapping : object {
FileH fileh;
......
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