From bc19a0729137772608f278980f8fb39e1645a2af Mon Sep 17 00:00:00 2001 From: Ben Adams Date: Sat, 2 Jan 2016 03:05:19 +0000 Subject: [PATCH] ifdef comments on own line --- .../Infrastructure/MemoryPoolIterator2.cs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/Microsoft.AspNet.Server.Kestrel/Infrastructure/MemoryPoolIterator2.cs b/src/Microsoft.AspNet.Server.Kestrel/Infrastructure/MemoryPoolIterator2.cs index d018d90b55..00490fe6ad 100644 --- a/src/Microsoft.AspNet.Server.Kestrel/Infrastructure/MemoryPoolIterator2.cs +++ b/src/Microsoft.AspNet.Server.Kestrel/Infrastructure/MemoryPoolIterator2.cs @@ -241,7 +241,8 @@ namespace Microsoft.AspNet.Server.Kestrel.Infrastructure array = block.Array; while (following > 0) { -#if !DEBUG // Need unit tests to test Vector path +// Need unit tests to test Vector path +#if !DEBUG // Check will be Jitted away https://github.com/dotnet/coreclr/issues/1079 if (Vector.IsHardwareAccelerated) { @@ -261,7 +262,8 @@ namespace Microsoft.AspNet.Server.Kestrel.Infrastructure _index = index + FindFirstEqualByte(ref byte0Equals); return byte0; } -#if !DEBUG // Need unit tests to test Vector path +// Need unit tests to test Vector path +#if !DEBUG } #endif fixed (byte* ptr = &block.Array[index]) @@ -322,7 +324,8 @@ namespace Microsoft.AspNet.Server.Kestrel.Infrastructure while (following > 0) { -#if !DEBUG // Need unit tests to test Vector path +// Need unit tests to test Vector path +#if !DEBUG // Check will be Jitted away https://github.com/dotnet/coreclr/issues/1079 if (Vector.IsHardwareAccelerated) { @@ -360,7 +363,8 @@ namespace Microsoft.AspNet.Server.Kestrel.Infrastructure _index = index + byte1Index; return byte1; } -#if !DEBUG // Need unit tests to test Vector path +// Need unit tests to test Vector path +#if !DEBUG } #endif fixed (byte* ptr = &block.Array[index]) @@ -428,7 +432,8 @@ namespace Microsoft.AspNet.Server.Kestrel.Infrastructure array = block.Array; while (following > 0) { -#if !DEBUG // Need unit tests to test Vector path +// Need unit tests to test Vector path +#if !DEBUG // Check will be Jitted away https://github.com/dotnet/coreclr/issues/1079 if (Vector.IsHardwareAccelerated) { @@ -493,7 +498,8 @@ namespace Microsoft.AspNet.Server.Kestrel.Infrastructure _index = index + toMove; return toReturn; } -#if !DEBUG // Need unit tests to test Vector path +// Need unit tests to test Vector path +#if !DEBUG } #endif fixed (byte* ptr = &block.Array[index])