mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-15 22:21:25 +00:00
Linux: remove assertions on MADV_HUGEPAGE
It's a hint and is allowed to fail.
This commit is contained in:
parent
600c0ea5ba
commit
487b572aa6
@ -111,7 +111,7 @@ namespace utils
|
||||
|
||||
#ifdef MADV_HUGEPAGE
|
||||
if (orig_size % 0x200000 == 0)
|
||||
verify(HERE), ::madvise(ptr, orig_size, MADV_HUGEPAGE) != -1;
|
||||
::madvise(ptr, orig_size, MADV_HUGEPAGE);
|
||||
#endif
|
||||
|
||||
return ptr;
|
||||
@ -161,7 +161,7 @@ namespace utils
|
||||
|
||||
#ifdef MADV_HUGEPAGE
|
||||
if (size % 0x200000 == 0)
|
||||
verify(HERE), ::madvise(reinterpret_cast<void*>(ptr64 & -4096), size + (ptr64 & 4095), MADV_HUGEPAGE) != -1;
|
||||
::madvise(reinterpret_cast<void*>(ptr64 & -4096), size + (ptr64 & 4095), MADV_HUGEPAGE);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user