Switch to aggresive promotion in mark-sweep collections.
authorvegorov@chromium.org <vegorov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 28 Apr 2010 08:32:46 +0000 (08:32 +0000)
committervegorov@chromium.org <vegorov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 28 Apr 2010 08:32:46 +0000 (08:32 +0000)
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

index 84211252aca889ea9e715074b8ebc39c6a722f9a..e3cc6ab6cbcefb6e99fa8374a71eb0755a90e177 100644 (file)
@@ -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;
       }