From 5070b8073e70eb145a78f07dae80609597fd5930 Mon Sep 17 00:00:00 2001 From: Louis DeJardin Date: Fri, 25 Sep 2015 14:17:09 -0700 Subject: [PATCH] Temporarily commenting out the Debug.Assert of block freeing Unit tests using ad-hoc contexts aren't guaranteed to dispose pools. That's kinda making unit tests fail, more or less, because Debug... --- .../Infrastructure/MemoryPoolBlock2.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.AspNet.Server.Kestrel/Infrastructure/MemoryPoolBlock2.cs b/src/Microsoft.AspNet.Server.Kestrel/Infrastructure/MemoryPoolBlock2.cs index c0c9fae183..c6fd9bd7a3 100644 --- a/src/Microsoft.AspNet.Server.Kestrel/Infrastructure/MemoryPoolBlock2.cs +++ b/src/Microsoft.AspNet.Server.Kestrel/Infrastructure/MemoryPoolBlock2.cs @@ -78,7 +78,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Infrastructure ~MemoryPoolBlock2() { Debug.Assert(!_pinHandle.IsAllocated, "Ad-hoc memory block wasn't unpinned"); - Debug.Assert(Slab == null || !Slab.IsActive, "Block being garbage collected instead of returned to pool"); + // Debug.Assert(Slab == null || !Slab.IsActive, "Block being garbage collected instead of returned to pool"); if (_pinHandle.IsAllocated) {