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
This commit is contained in:
vegorov@chromium.org 2010-04-28 08:32:46 +00:00
parent 0908fdc2f8
commit ef464f0c59

View 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;
}