aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Memory/MemoryManagementUnix.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-10-18 22:02:45 -0300
committerGitHub <noreply@github.com>2022-10-19 01:02:45 +0000
commit7d26e4ac7b61c4b6a860f6fd9aabdc8e653bc2d7 (patch)
tree1ceda4972af58a69bbd8ff38fa734443ae4ea231 /Ryujinx.Memory/MemoryManagementUnix.cs
parent8d41402fa603a2f00ccd08239d3b938fd60715a3 (diff)
Fix mapping leaks caused by UnmapView not working on Linux (#3650)1.1.316
* Add test for UnmapView mapping leaks * Throw when UnmapView fails on Linux * Fix UnmapView * Remove throw
Diffstat (limited to 'Ryujinx.Memory/MemoryManagementUnix.cs')
-rw-r--r--Ryujinx.Memory/MemoryManagementUnix.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Memory/MemoryManagementUnix.cs b/Ryujinx.Memory/MemoryManagementUnix.cs
index db7539f0..df3fcea9 100644
--- a/Ryujinx.Memory/MemoryManagementUnix.cs
+++ b/Ryujinx.Memory/MemoryManagementUnix.cs
@@ -177,7 +177,7 @@ namespace Ryujinx.Memory
public static void UnmapView(IntPtr location, ulong size)
{
- mmap(location, size, MmapProts.PROT_NONE, MmapFlags.MAP_FIXED, -1, 0);
+ mmap(location, size, MmapProts.PROT_NONE, MmapFlags.MAP_FIXED | MmapFlags.MAP_PRIVATE | MmapFlags.MAP_ANONYMOUS | MmapFlags.MAP_NORESERVE, -1, 0);
}
}
} \ No newline at end of file