Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index d54a2d6b524c9aeefd0182be609b2e4b62373b02..4584dc44aed0240abfef37e99b70bb32974d13d9 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -614,6 +614,9 @@ void Heap::GarbageCollectionEpilogue() { |
if (FLAG_code_stats) ReportCodeStatistics("After GC"); |
#endif |
if (FLAG_deopt_every_n_garbage_collections > 0) { |
+ // TODO(jkummerow/ulan/jarin): This is not safe! We can't assume that |
+ // the topmost optimized frame can be deoptimized safely, because it |
+ // might not have a lazy bailout point right after its current PC. |
if (++gcs_since_last_deopt_ == FLAG_deopt_every_n_garbage_collections) { |
Deoptimizer::DeoptimizeAll(isolate()); |
gcs_since_last_deopt_ = 0; |