Index: runtime/vm/compiler.cc |
diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc |
index c597499f841b42b3a0685768776549d1e75e8dff..5b67de0488728362a0a9205fa30cd2a2c3a7cb68 100644 |
--- a/runtime/vm/compiler.cc |
+++ b/runtime/vm/compiler.cc |
@@ -1466,6 +1466,10 @@ RawObject* Compiler::ExecuteOnce(SequenceNode* fragment) { |
LongJumpScope jump; |
if (setjmp(*jump.Set()) == 0) { |
Thread* const thread = Thread::Current(); |
+ |
+ // Don't allow message interrupts while executing constant |
+ // expressions. They can cause bogus recursive compilation. |
+ NoOOBMessageScope no_msg_scope(thread); |
if (FLAG_trace_compiler) { |
THR_Print("compiling expression: "); |
if (FLAG_support_ast_printer) { |