Reviewers: Mads Ager,

Message:
MarkCompact does an aggresive promotion of young survivors. It seems reasonable
to do same in MarkSweep.

Description:
Switch to aggresive promotion in mark-sweep collections.

Please review this at http://codereview.chromium.org/1759005/show

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/mark-compact.cc


Index: src/mark-compact.cc
===================================================================
--- src/mark-compact.cc (revision 4452)
+++ src/mark-compact.cc (working copy)
@@ -1210,8 +1210,8 @@
       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;
       }



--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to