Index: src/debug/debug.cc |
diff --git a/src/debug/debug.cc b/src/debug/debug.cc |
index c2c99f02b66f5fccc5e8a7c22334b2acfa77640f..de9c44079519143b595054d83721e2c61ffb63b3 100644 |
--- a/src/debug/debug.cc |
+++ b/src/debug/debug.cc |
@@ -1250,6 +1250,9 @@ bool Debug::PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared) { |
} |
} |
+ // The native context also has a list of OSR'd optimized code. Clear it. |
+ isolate_->ClearOSROptimizedCode(); |
+ |
// Make sure we abort incremental marking. |
isolate_->heap()->CollectAllGarbage(Heap::kMakeHeapIterableMask, |
GarbageCollectionReason::kDebugger); |