Index: src/base/platform/platform-solaris.cc |
diff --git a/src/base/platform/platform-solaris.cc b/src/base/platform/platform-solaris.cc |
index 992a97b7f9c0265c0c68c3da5eefaf1b7ffe53b5..7a54f7c4861ebb0adf905e22be728db3cd2ce0fa 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) { |
- ASSERT(IsAligned(alignment, static_cast<intptr_t>(OS::AllocateAlignment()))); |
+ DCHECK(IsAligned(alignment, static_cast<intptr_t>(OS::AllocateAlignment()))); |
size_t request_size = RoundUp(size + alignment, |
static_cast<intptr_t>(OS::AllocateAlignment())); |
void* reservation = mmap(OS::GetRandomMmapAddr(), |
@@ -167,7 +167,7 @@ VirtualMemory::VirtualMemory(size_t size, size_t alignment) |
uint8_t* base = static_cast<uint8_t*>(reservation); |
uint8_t* aligned_base = RoundUp(base, alignment); |
- ASSERT_LE(base, aligned_base); |
+ DCHECK_LE(base, aligned_base); |
// Unmap extra memory reserved before and after the desired block. |
if (aligned_base != base) { |
@@ -177,7 +177,7 @@ VirtualMemory::VirtualMemory(size_t size, size_t alignment) |
} |
size_t aligned_size = RoundUp(size, OS::AllocateAlignment()); |
- ASSERT_LE(aligned_size, request_size); |
+ DCHECK_LE(aligned_size, request_size); |
if (aligned_size != request_size) { |
size_t suffix_size = request_size - aligned_size; |
@@ -185,7 +185,7 @@ VirtualMemory::VirtualMemory(size_t size, size_t alignment) |
request_size -= suffix_size; |
} |
- ASSERT(aligned_size == request_size); |
+ DCHECK(aligned_size == request_size); |
address_ = static_cast<void*>(aligned_base); |
size_ = aligned_size; |
@@ -195,7 +195,7 @@ VirtualMemory::VirtualMemory(size_t size, size_t alignment) |
VirtualMemory::~VirtualMemory() { |
if (IsReserved()) { |
bool result = ReleaseRegion(address(), size()); |
- ASSERT(result); |
+ DCHECK(result); |
USE(result); |
} |
} |