Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ryujinx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jacobwasbeast
Ryujinx
Commits
c1002d48
Commit
c1002d48
authored
3 weeks ago
by
Evan Husted
Browse files
Options
Downloads
Patches
Plain Diff
misc: chore: collection expressions & target typed new in ARMeilleure & Ryujinx.Cpu
parent
b1de7696
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/ARMeilleure/Translation/Cache/JitCache.cs
+2
-2
2 additions, 2 deletions
src/ARMeilleure/Translation/Cache/JitCache.cs
src/Ryujinx.Cpu/LightningJit/Cache/JitCache.cs
+1
-1
1 addition, 1 deletion
src/Ryujinx.Cpu/LightningJit/Cache/JitCache.cs
with
3 additions
and
3 deletions
src/ARMeilleure/Translation/Cache/JitCache.cs
+
2
−
2
View file @
c1002d48
...
...
@@ -31,7 +31,7 @@ namespace ARMeilleure.Translation.Cache
private
static
readonly
Lock
_lock
=
new
();
private
static
bool
_initialized
;
private
static
readonly
List
<
ReservedRegion
>
_jitRegions
=
new
()
;
private
static
readonly
List
<
ReservedRegion
>
_jitRegions
=
[]
;
private
static
int
_activeRegionIndex
=
0
;
[
SupportedOSPlatform
(
"windows"
)]
...
...
@@ -180,7 +180,7 @@ namespace ARMeilleure.Translation.Cache
}
int
exhaustedRegion
=
_activeRegionIndex
;
var
new
Region
=
new
Reserved
Region
(
_jitRegions
[
0
].
Allocator
,
CacheSize
);
Reserved
Region
newRegion
=
new
(
_jitRegions
[
0
].
Allocator
,
CacheSize
);
_jitRegions
.
Add
(
newRegion
);
_activeRegionIndex
=
_jitRegions
.
Count
-
1
;
...
...
This diff is collapsed.
Click to expand it.
src/Ryujinx.Cpu/LightningJit/Cache/JitCache.cs
+
1
−
1
View file @
c1002d48
...
...
@@ -27,7 +27,7 @@ namespace Ryujinx.Cpu.LightningJit.Cache
private
static
readonly
Lock
_lock
=
new
();
private
static
bool
_initialized
;
private
static
readonly
List
<
ReservedRegion
>
_jitRegions
=
new
()
;
private
static
readonly
List
<
ReservedRegion
>
_jitRegions
=
[]
;
private
static
int
_activeRegionIndex
=
0
;
[
SupportedOSPlatform
(
"windows"
)]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment