summaryrefslogtreecommitdiff
path: root/src/vm/prestub.cpp
diff options
context:
space:
mode:
authorNoah Falk <noahfalk@users.noreply.github.com>2017-08-02 14:06:21 -0700
committerGitHub <noreply@github.com>2017-08-02 14:06:21 -0700
commit7c83f93be204a669f72a6ff39bafe1d3b38e06b5 (patch)
tree1009c576456d23242cb524cbc6b7c2fee9f87e3d /src/vm/prestub.cpp
parentd68faa30b16fb66addc9aa8b53d571dfa9fdf7be (diff)
parente36431719109208cdc56d3e98ac9deb859e13b2a (diff)
downloadcoreclr-7c83f93be204a669f72a6ff39bafe1d3b38e06b5.tar.gz
coreclr-7c83f93be204a669f72a6ff39bafe1d3b38e06b5.tar.bz2
coreclr-7c83f93be204a669f72a6ff39bafe1d3b38e06b5.zip
Merge pull request #13158 from parjong/fix/INTERPERTER_GDBJIT_Conflict
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 cc2ae6886a..2cc14166e4 100644
--- a/src/vm/prestub.cpp
+++ b/src/vm/prestub.cpp
@@ -787,9 +787,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
@@ -814,8 +818,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;
}