@@ -127,21 +127,21 @@ public static unsafe void MemoryCopy(void* source, void* destination, ulong dest
127
127
// Non-inlinable wrapper around the QCall that avoids polluting the fast path
128
128
// with P/Invoke prolog/epilog.
129
129
[ MethodImpl ( MethodImplOptions . NoInlining ) ]
130
- internal static unsafe void _Memmove ( ref byte dest , ref byte src , nuint len )
130
+ internal static unsafe void Memmove ( ref byte dest , ref byte src , nuint len )
131
131
{
132
132
fixed ( byte * pDest = & dest )
133
133
fixed ( byte * pSrc = & src )
134
- __Memmove ( pDest , pSrc , len ) ;
134
+ MemmoveInternal ( pDest , pSrc , len ) ;
135
135
}
136
136
137
137
// Non-inlinable wrapper around the QCall that avoids polluting the fast path
138
138
// with P/Invoke prolog/epilog.
139
139
[ MethodImpl ( MethodImplOptions . NoInlining ) ]
140
- internal static unsafe void _ZeroMemory ( ref byte b , nuint byteLength )
140
+ internal static unsafe void ZeroMemory ( ref byte b , nuint byteLength )
141
141
{
142
142
fixed ( byte * bytePointer = & b )
143
143
{
144
- __ZeroMemory ( bytePointer , byteLength ) ;
144
+ ZeroMemoryInternal ( bytePointer , byteLength ) ;
145
145
}
146
146
}
147
147
@@ -169,7 +169,7 @@ ref Unsafe.As<T, byte>(ref source),
169
169
}
170
170
}
171
171
172
- // The maximum block size to for __BulkMoveWithWriteBarrier FCall. This is required to avoid GC starvation.
172
+ // The maximum block size to for BulkMoveWithWriteBarrierInternal FCall. This is required to avoid GC starvation.
173
173
#if DEBUG // Stress the mechanism in debug builds
174
174
private const uint BulkMoveWithWriteBarrierChunk = 0x400 ;
175
175
#else
@@ -180,18 +180,18 @@ internal static void BulkMoveWithWriteBarrier(ref byte destination, ref byte sou
180
180
{
181
181
if ( byteCount <= BulkMoveWithWriteBarrierChunk )
182
182
{
183
- __BulkMoveWithWriteBarrier ( ref destination , ref source , byteCount ) ;
183
+ BulkMoveWithWriteBarrierInternal ( ref destination , ref source , byteCount ) ;
184
184
Thread . FastPollGC ( ) ;
185
185
}
186
186
else
187
187
{
188
- _BulkMoveWithWriteBarrier ( ref destination , ref source , byteCount ) ;
188
+ BulkMoveWithWriteBarrierBatch ( ref destination , ref source , byteCount ) ;
189
189
}
190
190
}
191
191
192
192
// Non-inlinable wrapper around the loop for copying large blocks in chunks
193
193
[ MethodImpl ( MethodImplOptions . NoInlining ) ]
194
- private static void _BulkMoveWithWriteBarrier ( ref byte destination , ref byte source , nuint byteCount )
194
+ private static void BulkMoveWithWriteBarrierBatch ( ref byte destination , ref byte source , nuint byteCount )
195
195
{
196
196
Debug . Assert ( byteCount > BulkMoveWithWriteBarrierChunk ) ;
197
197
@@ -205,7 +205,7 @@ private static void _BulkMoveWithWriteBarrier(ref byte destination, ref byte sou
205
205
do
206
206
{
207
207
byteCount -= BulkMoveWithWriteBarrierChunk ;
208
- __BulkMoveWithWriteBarrier ( ref destination , ref source , BulkMoveWithWriteBarrierChunk ) ;
208
+ BulkMoveWithWriteBarrierInternal ( ref destination , ref source , BulkMoveWithWriteBarrierChunk ) ;
209
209
Thread . FastPollGC ( ) ;
210
210
destination = ref Unsafe . AddByteOffset ( ref destination , BulkMoveWithWriteBarrierChunk ) ;
211
211
source = ref Unsafe . AddByteOffset ( ref source , BulkMoveWithWriteBarrierChunk ) ;
@@ -218,12 +218,12 @@ private static void _BulkMoveWithWriteBarrier(ref byte destination, ref byte sou
218
218
do
219
219
{
220
220
byteCount -= BulkMoveWithWriteBarrierChunk ;
221
- __BulkMoveWithWriteBarrier ( ref Unsafe . AddByteOffset ( ref destination , byteCount ) , ref Unsafe . AddByteOffset ( ref source , byteCount ) , BulkMoveWithWriteBarrierChunk ) ;
221
+ BulkMoveWithWriteBarrierInternal ( ref Unsafe . AddByteOffset ( ref destination , byteCount ) , ref Unsafe . AddByteOffset ( ref source , byteCount ) , BulkMoveWithWriteBarrierChunk ) ;
222
222
Thread . FastPollGC ( ) ;
223
223
}
224
224
while ( byteCount > BulkMoveWithWriteBarrierChunk ) ;
225
225
}
226
- __BulkMoveWithWriteBarrier ( ref destination , ref source , byteCount ) ;
226
+ BulkMoveWithWriteBarrierInternal ( ref destination , ref source , byteCount ) ;
227
227
Thread . FastPollGC ( ) ;
228
228
}
229
229
0 commit comments