Index: src/platform-macos.cc |
diff --git a/src/platform-macos.cc b/src/platform-macos.cc |
index e367d21a41cd9de7ac6460e572ba50ae1ab494c4..89abf398c4bda02f3717254372833fd56d210d99 100644 |
--- a/src/platform-macos.cc |
+++ b/src/platform-macos.cc |
@@ -429,6 +429,12 @@ bool VirtualMemory::Commit(void* address, size_t size, bool is_executable) { |
} |
+bool VirtualMemory::Guard(void* address) { |
+ OS::Guard(address, OS::CommitPageSize()); |
+ return true; |
+} |
+ |
+ |
bool VirtualMemory::CommitRegion(void* address, |
size_t size, |
bool is_executable) { |