Commit c2f6c8c3 authored by Ramon Nou's avatar Ramon Nou
Browse files

mmunmap resolve

parent a3f14919
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -1863,6 +1863,7 @@ munmap(void* addr, size_t length) {
    // free memory
    // return
    // if not just go to the normal munmap
    if(mmap_set.size() != 0) {
        for(auto it = mmap_set.begin(); it != mmap_set.end(); ++it) {
            if(std::get<0>(*it) == addr) {
                msync(addr, length, 0);
@@ -1871,6 +1872,7 @@ munmap(void* addr, size_t length) {
                return 0;
            }
        }
    }
    GKFS_FALLBACK(munmap, addr, length);
}