mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-18 10:37:04 +00:00
Prevent log from showing negative JIT cache sizes (32bit-int overflow)
 (cherry picked from commit a675d243d10ee98ed6b3dec9010ae3e6b2e1a39c)
This commit is contained in:
parent
63e145a377
commit
323f3f83e4
2 changed files with 2 additions and 2 deletions
|
|
@ -173,7 +173,7 @@ namespace Ryujinx.Cpu.LightningJit.Cache
|
|||
|
||||
int newRegionNumber = _activeRegionIndex;
|
||||
|
||||
Logger.Warning?.Print(LogClass.Cpu, $"JIT Cache Region {exhaustedRegion} exhausted, creating new Cache Region {newRegionNumber} ({((newRegionNumber + 1) * CacheSize).Bytes()} Total Allocation).");
|
||||
Logger.Warning?.Print(LogClass.Cpu, $"JIT Cache Region {exhaustedRegion} exhausted, creating new Cache Region {newRegionNumber} ({((long)(newRegionNumber + 1) * CacheSize).Bytes()} Total Allocation).");
|
||||
|
||||
_cacheAllocator = new CacheMemoryAllocator(CacheSize);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue