Commit ab0033de authored by hpayer@chromium.org's avatar hpayer@chromium.org

Only allow allocation site lifetime transitions from undicided to tenure or don't tenure.

BUG=
R=mvstanton@chromium.org

Review URL: https://codereview.chromium.org/289973002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21326 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent fbd03e4d
......@@ -1587,7 +1587,10 @@ inline bool AllocationSite::DigestPretenuringFeedback() {
static_cast<double>(found_count) / create_count : 0.0;
PretenureFlag current_mode = GetPretenureMode();
if (minimum_mementos_created) {
// TODO(hpayer): Add an intermediate state MAYBE_TENURE which collects
// more lifetime feedback for tenuring candidates. In the meantime, we
// just allow transitions from undecided to tenured or not tenured.
if (minimum_mementos_created && pretenure_decision() == kUndecided) {
PretenureDecision result = ratio >= kPretenureRatio
? kTenure
: kDontTenure;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment