We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 377bcb2 commit be703acCopy full SHA for be703ac
UnmanagedStringPool.cs
@@ -217,10 +217,12 @@ public void Clear()
217
{
218
ObjectDisposedException.ThrowIf(IsDisposed, typeof(UnmanagedStringPool));
219
220
- // Clear the allocated memory
+#if DEBUG
221
+ // Clear the allocated memory for debugging
222
unsafe {
223
NativeMemory.Clear(basePtr.ToPointer(), (nuint)capacityBytes);
224
}
225
+#endif
226
227
// Reset offset to start of pool
228
offsetFromBase = 0;
0 commit comments