24 references to Constants
System.Private.CoreLib (24)
System\Runtime\ThunkPool.cs (24)
83
Debug.Assert(((nuint)(nint)thunkDataBlock %
Constants
.PageSize) == 0);
87
_lastThunkPtr = _nextAvailableThunkPtr +
Constants
.ThunkDataSize * (
Constants
.NumThunksPerBlock - 1);
113
Debug.Assert(((nuint)(nint)thunkDataBlock %
Constants
.PageSize) == 0);
119
_lastThunkPtr = *((IntPtr*)_lastThunkPtr) +
Constants
.ThunkDataSize * (
Constants
.NumThunksPerBlock - 1);
158
int thunkIndex = (int)(((nuint)(nint)nextAvailableThunkPtr) - ((nuint)(nint)nextAvailableThunkPtr & ~
Constants
.PageSizeMask));
159
Debug.Assert((thunkIndex %
Constants
.ThunkDataSize) == 0);
160
thunkIndex /=
Constants
.ThunkDataSize;
162
IntPtr thunkAddress = RuntimeImports.RhpGetThunkStubsBlockAddress(nextAvailableThunkPtr) + thunkIndex *
Constants
.ThunkCodeSize;
198
thunkAddressValue < (nuint)(nint)currentBlock._blockBaseAddress + (nuint)(
Constants
.NumThunksPerBlock *
Constants
.ThunkCodeSize))
214
nuint currentThunksBlockAddress = thunkAddressValue & ~
Constants
.PageSizeMask;
217
if ((thunkAddressValue - currentThunksBlockAddress) % (nuint)
Constants
.ThunkCodeSize != 0)
221
int thunkIndex = (int)((thunkAddressValue - currentThunksBlockAddress) / (nuint)
Constants
.ThunkCodeSize);
226
return thunkDataBlockAddress + thunkIndex *
Constants
.ThunkDataSize;
275
private static IntPtr[] s_currentlyMappedThunkBlocks = new IntPtr[
Constants
.NumThunkBlocksPerMapping];
276
private static int s_currentlyMappedThunkBlocksIndex =
Constants
.NumThunkBlocksPerMapping;
287
if (s_currentlyMappedThunkBlocksIndex <
Constants
.NumThunkBlocksPerMapping)
308
for (int i = 0; i <
Constants
.NumThunkBlocksPerMapping; i++)
322
for (int i = 0; i <
Constants
.NumThunksPerBlock; i++)
324
if (i == (
Constants
.NumThunksPerBlock - 1))
327
*((IntPtr*)(dataAddress)) = dataAddress +
Constants
.ThunkDataSize;
334
dataAddress +=
Constants
.ThunkDataSize;