[heap] Limit the number of pointer updating tasks (again)
Task creation often dominates the actual work that is being done. Bug: chromium:722989 Change-Id: Ibdd6ffa6f3154f17dc6ccbd30475710b97e802e7 Reviewed-on: https://chromium-review.googlesource.com/508783 Reviewed-by: Ulan Degenbaev <ulan@chromium.org> Commit-Queue: Michael Lippautz <mlippautz@chromium.org> Cr-Commit-Position: refs/heads/master@{#45425}
This commit is contained in:
parent
f7ac95c24f
commit
34c1c76d8a
@ -348,7 +348,11 @@ int MarkCompactCollectorBase::NumberOfParallelCompactionTasks(int pages) {
|
||||
}
|
||||
|
||||
int MarkCompactCollectorBase::NumberOfPointerUpdateTasks(int pages) {
|
||||
return FLAG_parallel_pointer_update ? Min(NumberOfAvailableCores(), pages)
|
||||
// Limit the number of update tasks as task creation often dominates the
|
||||
// actual work that is being done.
|
||||
static const int kMaxPointerUpdateTasks = 8;
|
||||
return FLAG_parallel_pointer_update
|
||||
? Min(kMaxPointerUpdateTasks, Min(NumberOfAvailableCores(), pages))
|
||||
: 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user