[Android] Fix Fastmem on Android 4.2

This commit is contained in:
Ryan Houdek 2013-09-29 20:53:32 -05:00
parent 1a008b9e62
commit 3c53f2e5e0

View File

@ -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