| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 98fd5e0f982e716345f9d8a5c9de253338c184d8..0079e50b3c78d8456957f752cd302f5f4d21ff1a 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -4797,7 +4797,8 @@ bool Heap::ConfigureHeap(int max_semispace_size,
|
|
|
| // The old generation is paged and needs at least one page for each space.
|
| int paged_space_count = LAST_PAGED_SPACE - FIRST_PAGED_SPACE + 1;
|
| - max_old_generation_size_ = Max(paged_space_count * Page::kPageSize,
|
| + max_old_generation_size_ = Max(static_cast<intptr_t>(paged_space_count *
|
| + Page::kPageSize),
|
| RoundUp(max_old_generation_size_,
|
| Page::kPageSize));
|
|
|
|
|