Reviewers: Michael Starzinger, Description: Fix intermittent failure in ReleaseOverReservedPages on x64. BUG=2216
Please review this at https://chromiumcodereview.appspot.com/10828253/ 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 12290) +++ src/mark-compact.cc (working copy) @@ -631,7 +631,8 @@ intptr_t over_reserved = reserved - space->SizeOfObjects(); static const intptr_t kFreenessThreshold = 50; - if (over_reserved >= 2 * space->AreaSize()) { + if (over_reserved >= 2 * space->AreaSize() || + (reduce_memory_footprint_ && over_reserved >= space->AreaSize())) { // If reduction of memory footprint was requested, we are aggressive // about choosing pages to free. We expect that half-empty pages // are easier to compact so slightly bump the limit. -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
