Index: src/base/platform/platform-qnx.cc |
diff --git a/src/base/platform/platform-qnx.cc b/src/base/platform/platform-qnx.cc |
index e4570f246544a94ae6a79158894ea7f05d62fa39..6f2f9897236c8c0ace91dfecc584d508976656b6 100644 |
--- a/src/base/platform/platform-qnx.cc |
+++ b/src/base/platform/platform-qnx.cc |
@@ -249,7 +249,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(), |
@@ -262,7 +262,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) { |
@@ -272,7 +272,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; |
@@ -280,7 +280,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; |
@@ -290,7 +290,7 @@ VirtualMemory::VirtualMemory(size_t size, size_t alignment) |
VirtualMemory::~VirtualMemory() { |
if (IsReserved()) { |
bool result = ReleaseRegion(address(), size()); |
- ASSERT(result); |
+ DCHECK(result); |
USE(result); |
} |
} |