From 258708dda9fef6451e49dae49021a99bdbb1b7f7 Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Mon, 12 Mar 2012 09:39:12 +0000 Subject: [PATCH] Fix heuristic triggering incremental marking. This changes the heuristic that starts incremental marking to be based on a more accurate heap size estimation. Pages being swept lazily can be accounted using the live bytes counter. R=mstarzinger@chromium.org BUG=v8:1682 Review URL: https://chromiumcodereview.appspot.com/9674001 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11004 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/incremental-marking.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/incremental-marking.cc b/src/incremental-marking.cc index d0346171d3..c4f166bb98 100644 --- a/src/incremental-marking.cc +++ b/src/incremental-marking.cc @@ -396,7 +396,7 @@ bool IncrementalMarking::WorthActivating() { return !FLAG_expose_gc && FLAG_incremental_marking && !Serializer::enabled() && - heap_->PromotedSpaceSize() > kActivationThreshold; + heap_->PromotedSpaceSizeOfObjects() > kActivationThreshold; }