mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-25 23:37:11 +02:00
misc: chore: Use collection expressions everywhere else (except VP9)
This commit is contained in:
parent
0f857400b6
commit
ac838aa81d
59 changed files with 3246 additions and 2452 deletions
|
@ -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++)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue