Index: runtime/vm/weak_code.cc |
diff --git a/runtime/vm/weak_code.cc b/runtime/vm/weak_code.cc |
index cf1e132c5f4035fc096d50d8b2917380a54deec7..e6422046c81d6575a967e6281809ba03a7389e14 100644 |
--- a/runtime/vm/weak_code.cc |
+++ b/runtime/vm/weak_code.cc |
@@ -57,6 +57,7 @@ bool WeakCodeReferences::IsOptimizedCode(const Array& dependent_code, |
void WeakCodeReferences::DisableCode() { |
+ IncrementInvalidationGen(); |
const Array& code_objects = Array::Handle(array_.raw()); |
if (code_objects.IsNull()) { |
return; |