Index: runtime/vm/profiler.cc |
diff --git a/runtime/vm/profiler.cc b/runtime/vm/profiler.cc |
index 2e1d10b4a32ba9ff45afa3667183af154ffe2920..5eadc80184a3faf71351f884462da5aa57a5f26b 100644 |
--- a/runtime/vm/profiler.cc |
+++ b/runtime/vm/profiler.cc |
@@ -451,8 +451,9 @@ class ProfilerDartStackWalker : public ProfilerStackWalker { |
stack_lower_(stack_lower), |
has_exit_frame_(exited_dart_code) { |
if (exited_dart_code) { |
-// On windows the profiler does not run on the thread being profiled. |
-#if defined(_WIN32) |
+// On Windows and Fuchsia, the profiler does not run on the thread being |
+// profiled. |
+#if defined(TARGET_OS_WINDOWS) || defined(TARGET_OS_FUCHSIA) |
const StackFrameIterator::CrossThreadPolicy cross_thread_policy = |
StackFrameIterator::kAllowCrossThreadIteration; |
#else |