예제 #1
0
파일: JitCache.cs 프로젝트: zpoo32/Ryujinx
        static JitCache()
        {
            _basePointer = MemoryManagement.Allocate(CacheSize);

            if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                JitUnwindWindows.InstallFunctionTableHandler(_basePointer, CacheSize);

                // The first page is used for the table based SEH structs.
                _offset = PageSize;
            }

            _cacheEntries = new List <JitCacheEntry>();

            _lock = new object();
        }
예제 #2
0
 public NativeContext()
 {
     BasePtr = MemoryManagement.Allocate(TotalSize);
 }