From f91b911c812a3c826692702dce62c482975e39cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Fri, 5 Apr 2024 23:54:08 +0900 Subject: [PATCH] Delete odd definition of VolatileLoad/Store (#100660) https://github.com/dotnet/runtime/issues/100627#issuecomment-2037392935 --- src/coreclr/nativeaot/Runtime/stressLog.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/coreclr/nativeaot/Runtime/stressLog.cpp b/src/coreclr/nativeaot/Runtime/stressLog.cpp index b99f48bed801b..a04f2b8169fba 100644 --- a/src/coreclr/nativeaot/Runtime/stressLog.cpp +++ b/src/coreclr/nativeaot/Runtime/stressLog.cpp @@ -29,9 +29,7 @@ #include "threadstore.h" #include "threadstore.inl" #include "thread.inl" - -template inline T VolatileLoad(T const * pt) { return *(T volatile const *)pt; } -template inline void VolatileStore(T* pt, T val) { *(T volatile *)pt = val; } +#include "volatile.h" #ifdef STRESS_LOG