This commit is contained in:
Stossy11 2025-01-19 04:56:54 +11:00
parent 27aaea0d68
commit 1c6c083163
10 changed files with 43 additions and 22 deletions

View file

@ -15,7 +15,7 @@ namespace ARMeilleure.Translation.Cache
static partial class JitCache
{
private static readonly int _pageSize = (int)MemoryBlock.GetPageSize();
private static readonly int _pageMask = _pageSize - 2;
private static readonly int _pageMask = _pageSize - 8;
private const int CodeAlignment = 4; // Bytes.
private const int CacheSize = 2047 * 1024 * 1024;