misc: chore: Use collection expressions everywhere else (except VP9)

This commit is contained in:
Evan Husted 2025-01-26 15:59:11 -06:00
parent 0f857400b6
commit ac838aa81d
59 changed files with 3246 additions and 2452 deletions

View file

@ -208,7 +208,7 @@ namespace Ryujinx.Tests.Memory
// Query some large regions to prep the subdivision of the tracking region.
int[] regionSizes = new int[] { 6, 4, 3, 2, 6, 1 };
int[] regionSizes = [6, 4, 3, 2, 6, 1];
ulong address = 0;
for (int i = 0; i < regionSizes.Length; i++)
@ -333,24 +333,24 @@ namespace Ryujinx.Tests.Memory
// Finally, create a granular handle that inherits all these handles.
IEnumerable<IRegionHandle>[] handleGroups = new IEnumerable<IRegionHandle>[]
{
IEnumerable<IRegionHandle>[] handleGroups =
[
granular.GetHandles(),
singlePages,
doublePages,
};
doublePages
];
MultiRegionHandle combined = _tracking.BeginGranularTracking(0, PageSize * 18, handleGroups.SelectMany((handles) => handles), PageSize, 0);
bool[] expectedDirty = new bool[]
{
bool[] expectedDirty =
[
true, true, true, // Gap.
false, true, false, // Multi-region.
true, true, // Gap.
false, true, false, // Individual handles.
false, false, true, true, false, false, // Double size handles.
true, // Gap.
};
true // Gap.
];
for (int i = 0; i < 18; i++)
{

View file

@ -214,7 +214,7 @@ namespace Ryujinx.Tests.Memory
handles[i].Reprotect();
}
List<Thread> testThreads = new();
List<Thread> testThreads = [];
// Dirty flag consumer threads
int dirtyFlagReprotects = 0;