From 06354eeef920d12199da6c545aca411363c0f1f0 Mon Sep 17 00:00:00 2001 From: Phil Garcia Date: Mon, 16 Apr 2018 13:11:53 -0700 Subject: [PATCH] Changed SpinLock::CompareExchange method declaration to static (#17579) --- src/mscorlib/src/System/Threading/SpinLock.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mscorlib/src/System/Threading/SpinLock.cs b/src/mscorlib/src/System/Threading/SpinLock.cs index c23cd57..7e58a6c 100644 --- a/src/mscorlib/src/System/Threading/SpinLock.cs +++ b/src/mscorlib/src/System/Threading/SpinLock.cs @@ -94,7 +94,7 @@ namespace System.Threading private static int MAXIMUM_WAITERS = WAITERS_MASK; [MethodImpl(MethodImplOptions.AggressiveInlining)] - private int CompareExchange(ref int location, int value, int comparand, ref bool success) + private static int CompareExchange(ref int location, int value, int comparand, ref bool success) { int result = Interlocked.CompareExchange(ref location, value, comparand); success = (result == comparand); -- 2.7.4