summaryrefslogtreecommitdiff
path: root/src/gc/objecthandle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gc/objecthandle.cpp')
-rw-r--r--src/gc/objecthandle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gc/objecthandle.cpp b/src/gc/objecthandle.cpp
index 1654cf9b94..9aab7a103b 100644
--- a/src/gc/objecthandle.cpp
+++ b/src/gc/objecthandle.cpp
@@ -517,6 +517,7 @@ void CALLBACK ScanPointerForProfilerAndETW(_UNCHECKED_OBJECTREF *pObjRef, uintpt
}
#endif // GC_PROFILING
+#if defined(FEATURE_EVENT_TRACE)
// Notify ETW of the handle
if (ETW::GCLog::ShouldWalkHeapRootsForEtw())
{
@@ -535,6 +536,7 @@ void CALLBACK ScanPointerForProfilerAndETW(_UNCHECKED_OBJECTREF *pObjRef, uintpt
0, // dwGCFlags,
rootFlags); // ETW handle flags
}
+#endif // defined(FEATURE_EVENT_TRACE)
}
#endif // defined(GC_PROFILING) || defined(FEATURE_EVENT_TRACE)