Index: src/platform-posix.cc |
diff --git a/src/platform-posix.cc b/src/platform-posix.cc |
index 504d140138c178fe50ff19480e20dcefd3db3a99..b111213f6d61783e217293061fa9d309a8206181 100644 |
--- a/src/platform-posix.cc |
+++ b/src/platform-posix.cc |
@@ -152,7 +152,7 @@ void OS::ProtectCode(void* address, const size_t size) { |
void OS::Guard(void* address, const size_t size) { |
#if defined(__CYGWIN__) |
DWORD oldprotect; |
- VirtualProtect(address, size, PAGE_READONLY | PAGE_GUARD, &oldprotect); |
+ VirtualProtect(address, size, PAGE_NOACCESS, &oldprotect); |
#else |
mprotect(address, size, PROT_NONE); |
#endif |