mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-19 19:15:26 +00:00
vm: do not check overcommit_memory on android
This commit is contained in:
parent
2ebf257f84
commit
edf096fc13
1 changed files with 4 additions and 0 deletions
|
@ -686,7 +686,11 @@ namespace utils
|
|||
#else
|
||||
|
||||
#ifdef __linux__
|
||||
#ifdef ANDROID
|
||||
if constexpr (char c = '?'; true)
|
||||
#else
|
||||
if (const char c = fs::file("/proc/sys/vm/overcommit_memory").read<char>(); c == '0' || c == '1')
|
||||
#endif
|
||||
{
|
||||
// Simply use memfd for overcommit memory
|
||||
m_file = ensure(::memfd_create_("", 0), FN(x >= 0));
|
||||
|
|
Loading…
Add table
Reference in a new issue