| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 3c88980a576e8bcfc689fb6f6c62cfd93ae8fffb..670097e815cefc4aa09ec492f8a0fcbcbd47aac7 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -970,6 +970,11 @@ bool Heap::PerformGarbageCollection(GarbageCollector collector,
|
| PrintPID("Unlimited new space size due to low promotion rate: %d MB\n",
|
| new_space_.MaximumCapacity() / MB);
|
| }
|
| + // Trigger deoptimization here to turn off pre-tenuring as soon as
|
| + // possible.
|
| + if (FLAG_pretenure_literals) {
|
| + isolate_->stack_guard()->FullDeopt();
|
| + }
|
| }
|
|
|
| if (new_space_high_promotion_mode_active_ &&
|
|
|