From: hpayer@chromium.org Date: Fri, 12 Apr 2013 11:14:48 +0000 (+0000) Subject: Turn off pre-tenuring of fast literals when we turn off high promotion mode. X-Git-Tag: upstream/4.7.83~14596 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=73d81098da37c4841776c9d443968ca29f2acc13;p=platform%2Fupstream%2Fv8.git 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 --- 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_ &&