From 3c53f2e5e0f224ddd70e1f1b94276519c74fdd99 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Sun, 29 Sep 2013 20:53:32 -0500 Subject: [PATCH] [Android] Fix Fastmem on Android 4.2 --- Source/Core/Common/Src/MemArena.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Common/Src/MemArena.cpp b/Source/Core/Common/Src/MemArena.cpp index c8267c4411..13c9be33bb 100644 --- a/Source/Core/Common/Src/MemArena.cpp +++ b/Source/Core/Common/Src/MemArena.cpp @@ -146,7 +146,7 @@ u8* MemArena::Find4GBBase() // Android 4.3 changed how mmap works. // if we map it private and then munmap it, we can't use the base returned. // This may be due to changes in them support a full SELinux implementation. - const int flags = MAP_ANON; + const int flags = MAP_ANON | MAP_SHARED; #else const int flags = MAP_ANON | MAP_PRIVATE; #endif