Index: src/platform-openbsd.cc |
diff --git a/src/platform-openbsd.cc b/src/platform-openbsd.cc |
index 7e27a01d458d4cb65abb6db3bc1e535c894e1366..0d6997190c86b896f64107530ed9462a59225204 100644 |
--- a/src/platform-openbsd.cc |
+++ b/src/platform-openbsd.cc |
@@ -458,6 +458,12 @@ bool VirtualMemory::Uncommit(void* address, size_t size) { |
} |
+bool VirtualMemory::Guard(void* address) { |
+ OS::Guard(address, OS::CommitPageSize()); |
+ return true; |
+} |
+ |
+ |
void* VirtualMemory::ReserveRegion(size_t size) { |
void* result = mmap(GetRandomMmapAddr(), |
size, |