Move partition list validation to separate debug method
This commit is contained in:
parent
899aa0546c
commit
afcff0ce7a
1 changed files with 6 additions and 0 deletions
|
@ -361,6 +361,12 @@ namespace Ryujinx.Cpu.Jit
|
|||
_partitions.Add(CreateAsPartition(va, endVa - va));
|
||||
}
|
||||
|
||||
ValidatePartitionList();
|
||||
}
|
||||
|
||||
[Conditional("DEBUG")]
|
||||
private void ValidatePartitionList()
|
||||
{
|
||||
for (int i = 1; i < _partitions.Count; i++)
|
||||
{
|
||||
Debug.Assert(_partitions[i].Address > _partitions[i - 1].Address);
|
||||
|
|
Loading…
Add table
Reference in a new issue