Index: src/base/platform/platform-linux.cc |
diff --git a/src/base/platform/platform-linux.cc b/src/base/platform/platform-linux.cc |
index 874c6dbc31b9b3bdd6cd285b5fcbfa7ff528cf8d..e2c321c07f09074aed4a49c0503b8e848c33ebbb 100644 |
--- a/src/base/platform/platform-linux.cc |
+++ b/src/base/platform/platform-linux.cc |
@@ -310,16 +310,19 @@ void VirtualMemory::Reset() { |
bool VirtualMemory::Commit(void* address, size_t size, bool is_executable) { |
+ CHECK(InVM(address, size)); |
return CommitRegion(address, size, is_executable); |
} |
bool VirtualMemory::Uncommit(void* address, size_t size) { |
+ CHECK(InVM(address, size)); |
return UncommitRegion(address, size); |
} |
bool VirtualMemory::Guard(void* address) { |
+ CHECK(InVM(address, OS::CommitPageSize())); |
OS::Guard(address, OS::CommitPageSize()); |
return true; |
} |