From ef464f0c59e7566c02736922e3687ceb1b4b2785 Mon Sep 17 00:00:00 2001 From: "vegorov@chromium.org" Date: Wed, 28 Apr 2010 08:32:46 +0000 Subject: [PATCH] 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 --- src/mark-compact.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mark-compact.cc b/src/mark-compact.cc index 84211252ac..e3cc6ab6cb 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; }