| Index: src/mark-compact.cc
|
| diff --git a/src/mark-compact.cc b/src/mark-compact.cc
|
| index 0594c0792af1a8c8651310bd6499c8fc75427c27..db28ac343fa7a1934d28c6898fb978dcec0c96d0 100644
|
| --- a/src/mark-compact.cc
|
| +++ b/src/mark-compact.cc
|
| @@ -726,7 +726,7 @@ void MarkCompactCollector::CollectEvacuationCandidates(PagedSpace* space) {
|
| static const int kMaxMaxEvacuationCandidates = 1000;
|
| int number_of_pages = space->CountTotalPages();
|
| int max_evacuation_candidates =
|
| - static_cast<int>(sqrt(number_of_pages / 2.0) + 1);
|
| + static_cast<int>(std::sqrt(number_of_pages / 2.0) + 1);
|
|
|
| if (FLAG_stress_compaction || FLAG_always_compact) {
|
| max_evacuation_candidates = kMaxMaxEvacuationCandidates;
|
|
|