From 73d81098da37c4841776c9d443968ca29f2acc13 Mon Sep 17 00:00:00 2001 From: "hpayer@chromium.org" Date: Fri, 12 Apr 2013 11:14:48 +0000 Subject: [PATCH] Turn off pre-tenuring of fast literals when we turn off high promotion mode. BUG= Review URL: https://codereview.chromium.org/14199003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14251 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/heap.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/heap.cc b/src/heap.cc index 3c88980..670097e 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_ && -- 2.7.4