Index: src/platform-solaris.cc |
diff --git a/src/platform-solaris.cc b/src/platform-solaris.cc |
index ca15b07f1103cfd684f792737e877e7063e2ab68..40e09407dd54028ae7a75484ad93e409962e653c 100644 |
--- a/src/platform-solaris.cc |
+++ b/src/platform-solaris.cc |
@@ -192,23 +192,6 @@ void OS::Free(void* address, const size_t size) { |
} |
-#ifdef ENABLE_HEAP_PROTECTION |
- |
-void OS::Protect(void* address, size_t size) { |
- // TODO(1240712): mprotect has a return value which is ignored here. |
- mprotect(address, size, PROT_READ); |
-} |
- |
- |
-void OS::Unprotect(void* address, size_t size, bool is_executable) { |
- // TODO(1240712): mprotect has a return value which is ignored here. |
- int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); |
- mprotect(address, size, prot); |
-} |
- |
-#endif |
- |
- |
void OS::Sleep(int milliseconds) { |
useconds_t ms = static_cast<useconds_t>(milliseconds); |
usleep(1000 * ms); |