Mercurial > hg > truffle
comparison src/share/vm/runtime/os.hpp @ 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 | 1ee8caae33af |
children | 773234c55e8c |
comparison
equal
deleted
inserted
replaced
473:3ad2b8576c4a | 477:24fda36852ce |
---|---|
206 static bool uncommit_memory(char* addr, size_t bytes); | 206 static bool uncommit_memory(char* addr, size_t bytes); |
207 static bool release_memory(char* addr, size_t bytes); | 207 static bool release_memory(char* addr, size_t bytes); |
208 | 208 |
209 enum ProtType { MEM_PROT_NONE, MEM_PROT_READ, MEM_PROT_RW, MEM_PROT_RWX }; | 209 enum ProtType { MEM_PROT_NONE, MEM_PROT_READ, MEM_PROT_RW, MEM_PROT_RWX }; |
210 static bool protect_memory(char* addr, size_t bytes, ProtType prot, | 210 static bool protect_memory(char* addr, size_t bytes, ProtType prot, |
211 bool is_committed = false); | 211 bool is_committed = true); |
212 | 212 |
213 static bool guard_memory(char* addr, size_t bytes); | 213 static bool guard_memory(char* addr, size_t bytes); |
214 static bool unguard_memory(char* addr, size_t bytes); | 214 static bool unguard_memory(char* addr, size_t bytes); |
215 static char* map_memory(int fd, const char* file_name, size_t file_offset, | 215 static char* map_memory(int fd, const char* file_name, size_t file_offset, |
216 char *addr, size_t bytes, bool read_only = false, | 216 char *addr, size_t bytes, bool read_only = false, |