diff options
author | Jan Kotas <jkotas@microsoft.com> | 2018-07-23 12:17:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-23 12:17:56 -0700 |
commit | 0c7a59efa088c2043ec57d7449f9f11dc96a395e (patch) | |
tree | 22c678370ee17eb50485e3ff67c9ee493f51915a /src/vm/prestub.cpp | |
parent | 456d22753b62b5e46b61fa13bef75847229d30ca (diff) | |
download | coreclr-0c7a59efa088c2043ec57d7449f9f11dc96a395e.tar.gz coreclr-0c7a59efa088c2043ec57d7449f9f11dc96a395e.tar.bz2 coreclr-0c7a59efa088c2043ec57d7449f9f11dc96a395e.zip |
Partial R2R IBC fixes (#19073)
* Partial R2R IBC fixes
- Log use method code access in all cases, not just when the method is JITed
- Add workaround for CONTRACT_VIOLATION that shows up in checked builds when collecting IBC data
- Make /ReadyToRun switch work for CoreLib
Diffstat (limited to 'src/vm/prestub.cpp')
-rw-r--r-- | src/vm/prestub.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vm/prestub.cpp b/src/vm/prestub.cpp index 60c3afb12e..c567ba0573 100644 --- a/src/vm/prestub.cpp +++ b/src/vm/prestub.cpp @@ -315,11 +315,12 @@ PCODE MethodDesc::PrepareILBasedCode(PrepareCodeConfig* pConfig) { LOG((LF_CLASSLOADER, LL_INFO1000000, " In PrepareILBasedCode, calling JitCompileCode\n")); - // Mark the code as hot in case the method ends up in the native image - g_IBCLogger.LogMethodCodeAccess(this); pCode = JitCompileCode(pConfig); } + // Mark the code as hot in case the method ends up in the native image + g_IBCLogger.LogMethodCodeAccess(this); + return pCode; } |