Mercurial > hg > graal-jvmci-8
diff src/os/linux/vm/os_linux.cpp @ 477:24fda36852ce
6727377: VM stack guard pages on Windows should PAGE_READWRITE not PAGE_EXECUTE_READWRITE
Summary: Make reguard_stack change access to RW, not execute and use os::protect_memory with the new parameter when change needed to X.
Reviewed-by: acorn, jcoomes
author | coleenp |
---|---|
date | Wed, 10 Dec 2008 15:14:29 -0800 |
parents | 85f1b9537f70 |
children | 9656bebe85a7 2328d1d3f8cf |
line wrap: on
line diff
--- a/src/os/linux/vm/os_linux.cpp Tue Dec 09 09:55:39 2008 -0500 +++ b/src/os/linux/vm/os_linux.cpp Wed Dec 10 15:14:29 2008 -0800 @@ -2500,7 +2500,7 @@ } bool os::unguard_memory(char* addr, size_t size) { - return linux_mprotect(addr, size, PROT_READ|PROT_WRITE|PROT_EXEC); + return linux_mprotect(addr, size, PROT_READ|PROT_WRITE); } // Large page support