| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 5de06aa607e76438bb795ceb8507f272714cf943..76ab573e82d0048691f14b4a06ffa6fda813d4e0 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -406,6 +406,14 @@ void Heap::GarbageCollectionPrologue() {
|
| gc_count_++;
|
| unflattened_strings_length_ = 0;
|
|
|
| + bool should_enable_code_flushing = FLAG_flush_code;
|
| +#ifdef ENABLE_DEBUGGER_SUPPORT
|
| + if (isolate_->debug()->IsLoaded() || isolate_->debug()->has_break_points()) {
|
| + should_enable_code_flushing = false;
|
| + }
|
| +#endif
|
| + mark_compact_collector()->EnableCodeFlushing(should_enable_code_flushing);
|
| +
|
| #ifdef VERIFY_HEAP
|
| if (FLAG_verify_heap) {
|
| Verify();
|
|
|