mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-06 00:40:11 +00:00
Temporarily disable memory locking if TSX is not used
It's a very heavy operation that could cause some problem under mutex lock.
This commit is contained in:
parent
5b69eda39a
commit
1e269751bf
@ -766,7 +766,11 @@ namespace vm
|
||||
|
||||
perf_meter<"PAGE_LCK"_u64> perf1;
|
||||
|
||||
if (!utils::memory_lock(g_sudo_addr + addr, size))
|
||||
if (!g_use_rtm)
|
||||
{
|
||||
perf1.reset();
|
||||
}
|
||||
else if (!utils::memory_lock(g_sudo_addr + addr, size))
|
||||
{
|
||||
vm_log.error("Failed to lock memory. Consider increasing your system limits.\n"
|
||||
"addr=0x%x, size=0x%x, shm=%d, shm:[f=%d,l=%u]", addr, size, +!!shm, shm ? shm->flags() : 0, shm ? shm->info : 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user