Index: runtime/vm/jit_optimizer.cc |
diff --git a/runtime/vm/jit_optimizer.cc b/runtime/vm/jit_optimizer.cc |
index 686adc5110a901bdd00b604e1fea0ea9f1ba4646..f85d9c46fb3b212ad580ed0ee36a5428469b0e57 100644 |
--- a/runtime/vm/jit_optimizer.cc |
+++ b/runtime/vm/jit_optimizer.cc |
@@ -62,6 +62,7 @@ void JitOptimizer::ApplyClassIds() { |
ASSERT(current_iterator_ == NULL); |
for (BlockIterator block_it = flow_graph_->reverse_postorder_iterator(); |
!block_it.Done(); block_it.Advance()) { |
+ thread()->CheckForSafepoint(); |
ForwardInstructionIterator it(block_it.Current()); |
current_iterator_ = ⁢ |
for (; !it.Done(); it.Advance()) { |