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

.

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