summaryrefslogtreecommitdiff
path: root/src/vm/prestub.cpp
diff options
context:
space:
mode:
authorJonghyun Park <parjong@gmail.com>2017-08-02 12:05:34 +0900
committerJonghyun Park <parjong@gmail.com>2017-08-02 12:05:34 +0900
commite36431719109208cdc56d3e98ac9deb859e13b2a (patch)
tree1587f992088a0759a2e2991f28ea14ed5aac2c5e /src/vm/prestub.cpp
parent2293b72929a27df38c66a3bab26fe06e5cb804fd (diff)
downloadcoreclr-e36431719109208cdc56d3e98ac9deb859e13b2a.tar.gz
coreclr-e36431719109208cdc56d3e98ac9deb859e13b2a.tar.bz2
coreclr-e36431719109208cdc56d3e98ac9deb859e13b2a.zip
Resolve FEATURE_GDBJIT/FEATURE_INTERPRETER conflict
Diffstat (limited to 'src/vm/prestub.cpp')
-rw-r--r--src/vm/prestub.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/vm/prestub.cpp b/src/vm/prestub.cpp
index e7014bef87..8f72d23b93 100644
--- a/src/vm/prestub.cpp
+++ b/src/vm/prestub.cpp
@@ -795,9 +795,13 @@ PCODE MethodDesc::JitCompileCodeLockedEventWrapper(PrepareCodeConfig* pConfig, J
}
#endif // PROFILING_SUPPORTED
+#ifdef FEATURE_INTERPRETER
+ bool isJittedMethod = (Interpreter::InterpretationStubToMethodInfo(pCode) == NULL);
+#endif
+
// Interpretted methods skip this notification
#ifdef FEATURE_INTERPRETER
- if (Interpreter::InterpretationStubToMethodInfo(pCode) == NULL)
+ if (isJittedMethod)
#endif
{
#ifdef FEATURE_PERFMAP
@@ -822,8 +826,13 @@ PCODE MethodDesc::JitCompileCodeLockedEventWrapper(PrepareCodeConfig* pConfig, J
}
#endif
- // The notification will only occur if someone has registered for this method.
- DACNotifyCompilationFinished(this);
+#ifdef FEATURE_INTERPRETER
+ if (isJittedMethod)
+#endif
+ {
+ // The notification will only occur if someone has registered for this method.
+ DACNotifyCompilationFinished(this);
+ }
return pCode;
}