28 references to Constants
System.Private.CoreLib (28)
System\Runtime\ThunkPool.cs (28)
95Debug.Assert(((nuint)(nint)thunkDataBlock % Constants.PageSize) == 0); 98*(IntPtr*)(thunkDataBlock + (int)(Constants.PageSize - IntPtr.Size)) = commonStubAddress; 99Debug.Assert(*(IntPtr*)(thunkDataBlock + (int)(Constants.PageSize - IntPtr.Size)) == commonStubAddress); 103_lastThunkPtr = _nextAvailableThunkPtr + Constants.ThunkDataSize * (Constants.NumThunksPerBlock - 1); 129Debug.Assert(((nuint)(nint)thunkDataBlock % Constants.PageSize) == 0); 132*(IntPtr*)(thunkDataBlock + (int)(Constants.PageSize - IntPtr.Size)) = _commonStubAddress; 133Debug.Assert(*(IntPtr*)(thunkDataBlock + (int)(Constants.PageSize - IntPtr.Size)) == _commonStubAddress); 139_lastThunkPtr = *((IntPtr*)_lastThunkPtr) + Constants.ThunkDataSize * (Constants.NumThunksPerBlock - 1); 178int thunkIndex = (int)(((nuint)(nint)nextAvailableThunkPtr) - ((nuint)(nint)nextAvailableThunkPtr & ~Constants.PageSizeMask)); 179Debug.Assert((thunkIndex % Constants.ThunkDataSize) == 0); 180thunkIndex /= Constants.ThunkDataSize; 182IntPtr thunkAddress = RuntimeImports.RhpGetThunkStubsBlockAddress(nextAvailableThunkPtr) + thunkIndex * Constants.ThunkCodeSize; 218thunkAddressValue < (nuint)(nint)currentBlock._blockBaseAddress + (nuint)(Constants.NumThunksPerBlock * Constants.ThunkCodeSize)) 234nuint currentThunksBlockAddress = thunkAddressValue & ~Constants.PageSizeMask; 237if ((thunkAddressValue - currentThunksBlockAddress) % (nuint)Constants.ThunkCodeSize != 0) 241int thunkIndex = (int)((thunkAddressValue - currentThunksBlockAddress) / (nuint)Constants.ThunkCodeSize); 246return thunkDataBlockAddress + thunkIndex * Constants.ThunkDataSize; 295private static IntPtr[] s_currentlyMappedThunkBlocks = new IntPtr[Constants.NumThunkBlocksPerMapping]; 296private static int s_currentlyMappedThunkBlocksIndex = Constants.NumThunkBlocksPerMapping; 307if (s_currentlyMappedThunkBlocksIndex < Constants.NumThunkBlocksPerMapping) 328for (int i = 0; i < Constants.NumThunkBlocksPerMapping; i++) 342for (int i = 0; i < Constants.NumThunksPerBlock; i++) 344if (i == (Constants.NumThunksPerBlock - 1)) 347*((IntPtr*)(dataAddress)) = dataAddress + Constants.ThunkDataSize; 354dataAddress += Constants.ThunkDataSize;