summaryrefslogtreecommitdiff
path: root/src/vm/runtimehandles.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/runtimehandles.cpp')
-rw-r--r--src/vm/runtimehandles.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vm/runtimehandles.cpp b/src/vm/runtimehandles.cpp
index 4ff6512a52..7e08dadc10 100644
--- a/src/vm/runtimehandles.cpp
+++ b/src/vm/runtimehandles.cpp
@@ -2615,6 +2615,10 @@ void QCALLTYPE RuntimeMethodHandle::Destroy(MethodDesc * pMethod)
// Fire Unload Dynamic Method Event here
ETW::MethodLog::DynamicMethodDestroyed(pMethod);
+ BEGIN_PIN_PROFILER(CORProfilerIsMonitoringDynamicFunctionUnloads());
+ g_profControlBlock.pProfInterface->DynamicMethodUnloaded((FunctionID)pMethod);
+ END_PIN_PROFILER();
+
pDynamicMethodDesc->Destroy();
END_QCALL;