Enable use of Volatile<T> on arm64 to get correct memory consistency (dotnet/coreclr...
authorRahul Kumar <rahku@microsoft.com>
Thu, 16 Mar 2017 04:11:22 +0000 (21:11 -0700)
committerJan Kotas <jkotas@microsoft.com>
Thu, 16 Mar 2017 04:11:22 +0000 (21:11 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/271431af41f9a1a3287bb936e847ac6d8e2fb887

src/coreclr/src/inc/volatile.h

index c295f98..9531d98 100644 (file)
@@ -479,7 +479,7 @@ public:
 #else
 
 // Disable use of Volatile<T> for GC/HandleTable code except on platforms where it's absolutely necessary.
-#if defined(_MSC_VER) && !defined(_ARM_)
+#if defined(_MSC_VER) && !defined(_ARM_) && !defined(_ARM64_)
 #define VOLATILE(T) T RAW_KEYWORD(volatile)
 #else
 #define VOLATILE(T) Volatile<T>