diff options
Diffstat (limited to 'src/vm/tieredcompilation.cpp')
-rw-r--r-- | src/vm/tieredcompilation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vm/tieredcompilation.cpp b/src/vm/tieredcompilation.cpp index 2032e66f1b..acc26b90a5 100644 --- a/src/vm/tieredcompilation.cpp +++ b/src/vm/tieredcompilation.cpp @@ -337,7 +337,11 @@ void TieredCompilationManager::InstallMethodCode(MethodDesc* pMethod, PCODE pCod _ASSERTE(!pMethod->IsNativeCodeStableAfterInit()); PCODE pExistingCode = pMethod->GetNativeCode(); +#ifdef FEATURE_INTERPRETER + if (!pMethod->SetNativeCodeInterlocked(pCode, pExistingCode, TRUE)) +#else if (!pMethod->SetNativeCodeInterlocked(pCode, pExistingCode)) +#endif { //We aren't there yet, but when the feature is finished we shouldn't be racing against any other code mutator and there would be no //reason for this to fail |