Index: src/mark-compact.cc |
=================================================================== |
--- src/mark-compact.cc (revision 12227) |
+++ src/mark-compact.cc (working copy) |
@@ -602,7 +602,7 @@ |
static const int kMaxMaxEvacuationCandidates = 1000; |
int number_of_pages = space->CountTotalPages(); |
int max_evacuation_candidates = |
- static_cast<int>(sqrt(static_cast<double>(number_of_pages / 2)) + 1); |
+ static_cast<int>(sqrt(number_of_pages / 2.0) + 1); |
if (FLAG_stress_compaction || FLAG_always_compact) { |
max_evacuation_candidates = kMaxMaxEvacuationCandidates; |