Пример #1
0
        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);
 }