Revert "experimental caching of memory array"

This reverts commit c5906bc6af56e699d6667eb0a00561929e65ca82.
potentially causes a race condition, reverting.
This commit is contained in:
LotP1 2025-12-04 12:27:43 +01:00
parent 60cbbf70db
commit 4467b54530

View File

@ -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);