Index: src/platform-solaris.cc |
diff --git a/src/platform-solaris.cc b/src/platform-solaris.cc |
index 349da01edc6edab201dcebec35e1272ce8a58cd1..004a6ed428e5febc4302f409abe0b170ae941ed5 100644 |
--- a/src/platform-solaris.cc |
+++ b/src/platform-solaris.cc |
@@ -401,6 +401,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(OS::GetRandomMmapAddr(), |
size, |