Index: runtime/vm/virtual_memory_macos.cc |
=================================================================== |
--- runtime/vm/virtual_memory_macos.cc (revision 32548) |
+++ runtime/vm/virtual_memory_macos.cc (working copy) |
@@ -94,6 +94,9 @@ |
case kReadExecute: |
prot = PROT_READ | PROT_EXEC; |
break; |
+ case kReadWriteExecute: |
+ prot = PROT_READ | PROT_WRITE | PROT_EXEC; |
+ break; |
} |
return (mprotect(reinterpret_cast<void*>(page_address), |
end_address - page_address, |