From: vegorov@chromium.org Date: Wed, 28 Apr 2010 08:32:46 +0000 (+0000) Subject: Switch to aggresive promotion in mark-sweep collections. X-Git-Tag: upstream/4.7.83~21924 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef464f0c59e7566c02736922e3687ceb1b4b2785;p=platform%2Fupstream%2Fv8.git Switch to aggresive promotion in mark-sweep collections. Review URL: http://codereview.chromium.org/1759005 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4525 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/mark-compact.cc b/src/mark-compact.cc index 8421125..e3cc6ab 100644 --- a/src/mark-compact.cc +++ b/src/mark-compact.cc @@ -1211,8 +1211,8 @@ static void SweepNewSpace(NewSpace* space) { size = object->Size(); survivors_size += size; - if (Heap::ShouldBePromoted(current, size) && - TryPromoteObject(object, size)) { + // Aggressively promote young survivors to the old space. + if (TryPromoteObject(object, size)) { continue; }