Index: src/base/platform/platform-solaris.cc |
diff --git a/src/base/platform/platform-solaris.cc b/src/base/platform/platform-solaris.cc |
index 7a54f7c4861ebb0adf905e22be728db3cd2ce0fa..b9ef465b3e701ec926054ee2e88360e4671842a1 100644 |
--- a/src/base/platform/platform-solaris.cc |
+++ b/src/base/platform/platform-solaris.cc |
@@ -154,7 +154,7 @@ VirtualMemory::VirtualMemory(size_t size) |
VirtualMemory::VirtualMemory(size_t size, size_t alignment) |
: address_(NULL), size_(0) { |
- DCHECK(IsAligned(alignment, static_cast<intptr_t>(OS::AllocateAlignment()))); |
+ DCHECK((alignment % OS::AllocateAlignment()) == 0); |
size_t request_size = RoundUp(size + alignment, |
static_cast<intptr_t>(OS::AllocateAlignment())); |
void* reservation = mmap(OS::GetRandomMmapAddr(), |