fix: Fixes massive capacity bug with pooled ref queue/list (#1865)
This commit is contained in:
parent
96de1fdaa1
commit
21836cf62f
4 changed files with 20 additions and 30 deletions
|
|
@ -305,7 +305,7 @@ public ref struct PooledRefQueue<T>
|
|||
|
||||
if (_array.Length > 0)
|
||||
{
|
||||
Clear();
|
||||
Array.Clear(_array);
|
||||
(_mt ? ArrayPool<T>.Shared : STArrayPool<T>.Shared).Return(_array);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue