Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Enable interpreter build #11252

Merged
merged 2 commits into from
Apr 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/inc/switches.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,6 @@

#endif // !defined(CROSSGEN_COMPILE)

#if defined(FEATURE_INTERPRETER) && defined(CROSSGEN_COMPILE)
#undef FEATURE_INTERPRETER
#endif
4 changes: 4 additions & 0 deletions src/vm/tieredcompilation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down