mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03: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
|
#else
|
||||||
|
|
||||||
#ifdef __linux__
|
#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')
|
if (const char c = fs::file("/proc/sys/vm/overcommit_memory").read<char>(); c == '0' || c == '1')
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
// Simply use memfd for overcommit memory
|
// Simply use memfd for overcommit memory
|
||||||
m_file = ensure(::memfd_create_("", 0), FN(x >= 0));
|
m_file = ensure(::memfd_create_("", 0), FN(x >= 0));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue