[heap] Adjust number of parallel compaction tasks
authormlippautz <mlippautz@chromium.org>
Mon, 28 Sep 2015 08:32:40 +0000 (01:32 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 28 Sep 2015 08:35:48 +0000 (08:35 +0000)
commit660d4fa7b0a8c487e163d1dd1c76a83a7e31f802
treef61307022cf6688d933692aa4f61495074318906
parent6ca00aac1a5fde63fe767cbe4792c21b6dcfa192
[heap] Adjust number of parallel compaction tasks

This is a trivial spinoff of the more complicated CL splitting up memory:
  https://codereview.chromium.org/1365743003/

- Parallel compaction is still off.
- We now compute the number of parallel compaction tasks, depending on the
  evacuation candidate list, the number of cores, and some hard limit.

BUG=chromium:524425
LOG=N

Review URL: https://codereview.chromium.org/1371923002

Cr-Commit-Position: refs/heads/master@{#30965}
src/heap/mark-compact.cc
src/heap/mark-compact.h