summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt8
-rw-r--r--src/vm/rejit.cpp12
-rw-r--r--src/vm/rejit.h2
-rw-r--r--src/vm/rejit.inl12
4 files changed, 16 insertions, 18 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4317736408..8bdff34e28 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -837,11 +837,9 @@ if(NOT DEFINED CLR_CMAKE_PLATFORM_ARCH_ARM64)
set(FEATURE_READYTORUN 1)
endif(NOT DEFINED CLR_CMAKE_PLATFORM_ARCH_ARM64)
-if (WIN32)
- if (CLR_CMAKE_PLATFORM_ARCH_AMD64 OR CLR_CMAKE_PLATFORM_ARCH_I386)
- add_definitions(-DFEATURE_REJIT)
- endif(CLR_CMAKE_PLATFORM_ARCH_AMD64 OR CLR_CMAKE_PLATFORM_ARCH_I386)
-endif(WIN32)
+if (CLR_CMAKE_PLATFORM_ARCH_AMD64 OR CLR_CMAKE_PLATFORM_ARCH_I386)
+ add_definitions(-DFEATURE_REJIT)
+endif(CLR_CMAKE_PLATFORM_ARCH_AMD64 OR CLR_CMAKE_PLATFORM_ARCH_I386)
add_definitions(-DFEATURE_STANDALONE_SN)
add_definitions(-DFEATURE_STRONGNAME_DELAY_SIGNING_ALLOWED)
diff --git a/src/vm/rejit.cpp b/src/vm/rejit.cpp
index 587c096f5b..e6f8797eb5 100644
--- a/src/vm/rejit.cpp
+++ b/src/vm/rejit.cpp
@@ -178,7 +178,7 @@ CrstStatic ReJitManager::s_csGlobalRequest;
//---------------------------------------------------------------------------------------
// Helpers
-static DWORD JitFlagsFromProfCodegenFlags(DWORD dwCodegenFlags)
+inline DWORD JitFlagsFromProfCodegenFlags(DWORD dwCodegenFlags)
{
LIMITED_METHOD_DAC_CONTRACT;
@@ -3111,8 +3111,8 @@ void ReJitManager::Dump(LPCSTR szIntroText)
"\tInfo 0x%p: State=0x%x, Next=0x%p, Shared=%p, SharedState=0x%x\n",
pInfo,
pInfo->GetState(),
- pInfo->m_pNext,
- pInfo->m_pShared,
+ (void*)pInfo->m_pNext,
+ (void*)pInfo->m_pShared,
pInfo->m_pShared->GetState());
switch(pInfo->m_key.m_keyType)
@@ -3120,7 +3120,7 @@ void ReJitManager::Dump(LPCSTR szIntroText)
case ReJitInfo::Key::kMethodDesc:
printf(
"\t\tMD=0x%p, %s.%s (%s)\n",
- pInfo->GetMethodDesc(),
+ (void*)pInfo->GetMethodDesc(),
pInfo->GetMethodDesc()->m_pszDebugClassName,
pInfo->GetMethodDesc()->m_pszDebugMethodName,
pInfo->GetMethodDesc()->m_pszDebugMethodSignature);
@@ -3718,10 +3718,10 @@ COR_ILMETHOD * ReJitInfo::GetIL()
SharedReJitInfo::SharedReJitInfo()
- : m_reJitId(InterlockedIncrement(reinterpret_cast<LONG*>(&s_GlobalReJitId))),
- m_dwInternalFlags(kStateRequested),
+ : m_dwInternalFlags(kStateRequested),
m_pbIL(NULL),
m_dwCodegenFlags(0),
+ m_reJitId(InterlockedIncrement(reinterpret_cast<LONG*>(&s_GlobalReJitId))),
m_pInfoList(NULL)
{
LIMITED_METHOD_CONTRACT;
diff --git a/src/vm/rejit.h b/src/vm/rejit.h
index 4fd9100524..d2471740f9 100644
--- a/src/vm/rejit.h
+++ b/src/vm/rejit.h
@@ -37,7 +37,7 @@ class ProfilerFunctionControl : public ICorProfilerFunctionControl
{
public:
ProfilerFunctionControl(LoaderHeap * pHeap);
- ~ProfilerFunctionControl();
+ virtual ~ProfilerFunctionControl();
// IUnknown functions
virtual HRESULT __stdcall QueryInterface(REFIID id, void** pInterface);
diff --git a/src/vm/rejit.inl b/src/vm/rejit.inl
index 47c314d413..8662eeaedf 100644
--- a/src/vm/rejit.inl
+++ b/src/vm/rejit.inl
@@ -39,25 +39,25 @@ inline ReJitInfo::ReJitInfo(PTR_Module pModule, mdMethodDef methodDef, SharedReJ
}
inline ReJitInfo::Key::Key() :
- m_keyType(kUninitialized),
m_pMD(NULL),
- m_methodDef(mdTokenNil)
+ m_methodDef(mdTokenNil),
+ m_keyType(kUninitialized)
{
LIMITED_METHOD_CONTRACT;
}
inline ReJitInfo::Key::Key(PTR_MethodDesc pMD) :
- m_keyType(kMethodDesc),
m_pMD(dac_cast<TADDR>(pMD)),
- m_methodDef(mdTokenNil)
+ m_methodDef(mdTokenNil),
+ m_keyType(kMethodDesc)
{
LIMITED_METHOD_CONTRACT;
}
inline ReJitInfo::Key::Key(PTR_Module pModule, mdMethodDef methodDef) :
- m_keyType(kMetadataToken),
m_pModule(dac_cast<TADDR>(pModule)),
- m_methodDef(methodDef)
+ m_methodDef(methodDef),
+ m_keyType(kMetadataToken)
{
LIMITED_METHOD_CONTRACT;
}