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...
This commit is contained in:
parent
318f3b7145
commit
5070b8073e
|
|
@ -78,7 +78,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Infrastructure
|
||||||
~MemoryPoolBlock2()
|
~MemoryPoolBlock2()
|
||||||
{
|
{
|
||||||
Debug.Assert(!_pinHandle.IsAllocated, "Ad-hoc memory block wasn't unpinned");
|
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)
|
if (_pinHandle.IsAllocated)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue