Index: src/platform-win32.cc |
diff --git a/src/platform-win32.cc b/src/platform-win32.cc |
index 46af4dcdcd22b126fbaaa528bffbee655a0299ea..8771c43679376cef6cf58d936f80e8e8c9471aeb 100644 |
--- a/src/platform-win32.cc |
+++ b/src/platform-win32.cc |
@@ -1413,7 +1413,9 @@ VirtualMemory::VirtualMemory(size_t size, size_t alignment) |
if (address == NULL) return; |
Address base = RoundUp(static_cast<Address>(address), alignment); |
// Try reducing the size by freeing and then reallocating a specific area. |
- ReleaseRegion(address, request_size); |
+ bool result = ReleaseRegion(address, request_size); |
+ USE(result); |
+ ASSERT(result); |
address = VirtualAlloc(base, size, MEM_RESERVE, PAGE_NOACCESS); |
if (address != NULL) { |
request_size = size; |