diff options
Diffstat (limited to 'src/libraries/Common/tests/TestUtilities/System/Buffers/PoisonPagePlacement.cs')
-rw-r--r-- | src/libraries/Common/tests/TestUtilities/System/Buffers/PoisonPagePlacement.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/libraries/Common/tests/TestUtilities/System/Buffers/PoisonPagePlacement.cs b/src/libraries/Common/tests/TestUtilities/System/Buffers/PoisonPagePlacement.cs new file mode 100644 index 00000000000..ea2caa3136b --- /dev/null +++ b/src/libraries/Common/tests/TestUtilities/System/Buffers/PoisonPagePlacement.cs @@ -0,0 +1,26 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Buffers +{ + /// <summary> + /// Dictates where the poison page should be placed. + /// </summary> + public enum PoisonPagePlacement + { + /// <summary> + /// The poison page should be placed immediately after the memory region. + /// Attempting to access the memory page immediately following the + /// span will result in an AV. + /// </summary> + After, + + /// <summary> + /// The poison page should be placed immediately before the memory region. + /// Attempting to access the memory page immediately before the + /// span will result in an AV. + /// </summary> + Before, + } +}
\ No newline at end of file |