mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-12-16 12:09:51 +00:00
Revert "experimental caching of memory array"
This reverts commit c5906bc6af56e699d6667eb0a00561929e65ca82. potentially causes a race condition, reverting.
This commit is contained in:
parent
60cbbf70db
commit
4467b54530
@ -263,9 +263,6 @@ namespace Ryujinx.Cpu.Jit
|
||||
}
|
||||
}
|
||||
|
||||
//Might cause issues, if so revert to old solution
|
||||
byte[] _cachedArray = [];
|
||||
|
||||
public override ReadOnlySpan<byte> GetSpan(ulong va, int size, bool tracked = false)
|
||||
{
|
||||
if (size == 0)
|
||||
@ -284,12 +281,7 @@ namespace Ryujinx.Cpu.Jit
|
||||
}
|
||||
else
|
||||
{
|
||||
if (_cachedArray.Length < size)
|
||||
{
|
||||
Array.Resize(ref _cachedArray, size);
|
||||
}
|
||||
|
||||
Span<byte> data = _cachedArray.AsSpan(0, size);
|
||||
Span<byte> data = new byte[size];
|
||||
|
||||
Read(va, data);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user