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