Index: src/objects-visiting-inl.h |
diff --git a/src/objects-visiting-inl.h b/src/objects-visiting-inl.h |
index add247ea45cda0e3f7c97de7e8b24f9a8f632106..bf6adad384e55f185dd54885b155b5398eb64d0a 100644 |
--- a/src/objects-visiting-inl.h |
+++ b/src/objects-visiting-inl.h |
@@ -566,6 +566,12 @@ bool StaticMarkingVisitor<StaticVisitor>::IsFlushable( |
return false; |
} |
+ // We do not (yet?) flush code for generator functions, because we don't know |
+ // if there are still live activations (generator objects) on the heap. |
+ if (shared_info->is_generator()) { |
+ return false; |
+ } |
+ |
// If this is a full script wrapped in a function we do no flush the code. |
if (shared_info->is_toplevel()) { |
return false; |