public void ClearHelpers() { RecyclableMemoryStreamManagerHelper.Clear(); GenericArrayPoolCachesRegister.ClearAll(); GenericTwoDArrayCacheRegister.ClearAll(); GenericSlabAllocatedArrayPoolRegister.ClearAll(); }
public static ISlabAllocatedArrayPool <T> Caches() { if (_pool == null) { lock (lockObj) { if (_pool == null) { _pool = new SlabAllocatedArrayPool <T>(); GenericSlabAllocatedArrayPoolRegister.Add(_pool); } } } return(_pool); }