diff options
author | Mukul Sabharwal <mjsabby@gmail.com> | 2016-04-13 02:55:28 -0700 |
---|---|---|
committer | Mukul Sabharwal <mjsabby@gmail.com> | 2016-04-13 02:55:28 -0700 |
commit | 5f3b9ced9ca1f8ac6b13ba8676637b9d79464bd0 (patch) | |
tree | 275d8075b1721634c2e4c4d952054d38ecfe6f9a | |
parent | afdce3a592e5f6f2047bed057d121225be91743d (diff) | |
download | coreclr-5f3b9ced9ca1f8ac6b13ba8676637b9d79464bd0.tar.gz coreclr-5f3b9ced9ca1f8ac6b13ba8676637b9d79464bd0.tar.bz2 coreclr-5f3b9ced9ca1f8ac6b13ba8676637b9d79464bd0.zip |
Enable ReJIT all on platforms
-rw-r--r-- | CMakeLists.txt | 8 | ||||
-rw-r--r-- | src/vm/rejit.cpp | 12 | ||||
-rw-r--r-- | src/vm/rejit.h | 2 | ||||
-rw-r--r-- | src/vm/rejit.inl | 12 |
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; } |