| Index: src/platform-solaris.cc
|
| diff --git a/src/platform-solaris.cc b/src/platform-solaris.cc
|
| index 931bc1166ac3598a250caee09f564b21c8dd77fc..4803531b733e93c8fbc04242184a7e3d1a1507c5 100644
|
| --- a/src/platform-solaris.cc
|
| +++ b/src/platform-solaris.cc
|
| @@ -23,12 +23,12 @@
|
| #include <ucontext.h> // walkstack(), getcontext()
|
| #include <unistd.h> // getpagesize(), usleep()
|
|
|
| +#include <cmath>
|
|
|
| #undef MAP_TYPE
|
|
|
| -#include "src/v8.h"
|
| -
|
| #include "src/platform.h"
|
| +#include "src/utils.h"
|
|
|
|
|
| // It seems there is a bug in some Solaris distributions (experienced in
|
| @@ -165,8 +165,8 @@ VirtualMemory::VirtualMemory(size_t size, size_t alignment)
|
| kMmapFdOffset);
|
| if (reservation == MAP_FAILED) return;
|
|
|
| - Address base = static_cast<Address>(reservation);
|
| - Address aligned_base = RoundUp(base, alignment);
|
| + uint8_t* base = static_cast<uint8_t*>(reservation);
|
| + uint8_t* aligned_base = RoundUp(base, alignment);
|
| ASSERT_LE(base, aligned_base);
|
|
|
| // Unmap extra memory reserved before and after the desired block.
|
|
|