Index: src/base/platform/platform-openbsd.cc |
diff --git a/src/base/platform/platform-openbsd.cc b/src/base/platform/platform-openbsd.cc |
index 8458065852f54f854bf45a274e52a81440b5ab19..a3f39e2dd7824806b75f4583843fc79da7466c23 100644 |
--- a/src/base/platform/platform-openbsd.cc |
+++ b/src/base/platform/platform-openbsd.cc |
@@ -192,7 +192,7 @@ void OS::SignalCodeMovingGC() { |
} |
void* addr = mmap(NULL, size, PROT_READ | PROT_EXEC, MAP_PRIVATE, |
fileno(f), 0); |
- ASSERT(addr != MAP_FAILED); |
+ DCHECK(addr != MAP_FAILED); |
OS::Free(addr, size); |
fclose(f); |
} |
@@ -213,7 +213,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(), |
@@ -226,7 +226,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) { |
@@ -236,7 +236,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; |
@@ -244,7 +244,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; |
@@ -254,7 +254,7 @@ VirtualMemory::VirtualMemory(size_t size, size_t alignment) |
VirtualMemory::~VirtualMemory() { |
if (IsReserved()) { |
bool result = ReleaseRegion(address(), size()); |
- ASSERT(result); |
+ DCHECK(result); |
USE(result); |
} |
} |