summaryrefslogtreecommitdiff
path: root/src/vm/jitinterface.cpp
diff options
context:
space:
mode:
authorMukul Sabharwal <mjsabby@gmail.com>2019-05-22 01:52:38 -0700
committerDavid Mason <davmason@microsoft.com>2019-05-22 01:52:37 -0700
commit797be5d5c87a81f50dbd59e000abd2db7b99237a (patch)
tree1174d14c70ea421f2a559ad03b05e6c26d0d8c49 /src/vm/jitinterface.cpp
parentf33ffab85335b9ca6b0f669d59de599e981c295f (diff)
downloadcoreclr-797be5d5c87a81f50dbd59e000abd2db7b99237a.tar.gz
coreclr-797be5d5c87a81f50dbd59e000abd2db7b99237a.tar.bz2
coreclr-797be5d5c87a81f50dbd59e000abd2db7b99237a.zip
Track debug info for DynamicMethods for Profiler API (#24139)
Diffstat (limited to 'src/vm/jitinterface.cpp')
-rw-r--r--src/vm/jitinterface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vm/jitinterface.cpp b/src/vm/jitinterface.cpp
index ef3b9d0e70..cf177a3b4d 100644
--- a/src/vm/jitinterface.cpp
+++ b/src/vm/jitinterface.cpp
@@ -11179,7 +11179,7 @@ void CEEJitInfo::CompressDebugInfo()
} CONTRACTL_END;
// Don't track JIT info for DynamicMethods.
- if (m_pMethodBeingCompiled->IsDynamicMethod())
+ if (m_pMethodBeingCompiled->IsDynamicMethod() && !g_pConfig->GetTrackDynamicMethodDebugInfo())
return;
if (m_iOffsetMapping == 0 && m_iNativeVarInfo == 0)
@@ -12713,7 +12713,7 @@ CORJIT_FLAGS GetCompileFlags(MethodDesc * ftn, CORJIT_FLAGS flags, CORINFO_METHO
flags.Set(CORJIT_FLAGS::CORJIT_FLAG_SKIP_VERIFICATION);
- if (ftn->IsILStub())
+ if (ftn->IsILStub() && !g_pConfig->GetTrackDynamicMethodDebugInfo())
{
// no debug info available for IL stubs
flags.Clear(CORJIT_FLAGS::CORJIT_FLAG_DEBUG_INFO);