Index: runtime/vm/profiler.cc |
diff --git a/runtime/vm/profiler.cc b/runtime/vm/profiler.cc |
index 1b589d91a2c924f9a386d2a587a294ca09ad9e36..6378c449338debe838b36f14f71e895b284608c0 100644 |
--- a/runtime/vm/profiler.cc |
+++ b/runtime/vm/profiler.cc |
@@ -989,6 +989,10 @@ void Profiler::SampleThread(Thread* thread, |
return; |
} |
+ if (thread->IsMutatorThread() && isolate->IsDeoptimizing()) { |
+ return; |
+ } |
+ |
uword stack_lower = 0; |
uword stack_upper = 0; |
if (!GetAndValidateIsolateStackBounds(thread, |