mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-10 00:45:37 +00:00
vm: Fix writer lock leak
This commit is contained in:
parent
4594c912a6
commit
8588b2b11a
3 changed files with 22 additions and 23 deletions
|
|
@ -473,13 +473,13 @@ namespace vm
|
|||
}
|
||||
}
|
||||
|
||||
bool to_prepare_memory = addr >= 0x10000;
|
||||
bool to_prepare_memory = true;
|
||||
|
||||
for (u64 i = 0;; i++)
|
||||
{
|
||||
auto& bits = get_range_lock_bits(true);
|
||||
|
||||
if (!range_lock || addr < 0x10000)
|
||||
if (!range_lock)
|
||||
{
|
||||
if (!bits && bits.compare_and_swap_test(0, u64{umax}))
|
||||
{
|
||||
|
|
@ -521,7 +521,7 @@ namespace vm
|
|||
}
|
||||
}
|
||||
|
||||
if (addr >= 0x10000)
|
||||
if (range_lock)
|
||||
{
|
||||
perf_meter<"SUSPEND"_u64> perf0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue