private static unsafe void TestStackAllocBools(int iterations, int length) { bool* bits = stackalloc bool[length]; for (var i = 0; i < iterations; i++) { for (var l = 0; l < length; l++) { bits[i] = !bits[length - l - 1]; } } }