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(); }
public NativeContext() { BasePtr = MemoryManagement.Allocate(TotalSize); }