comparison src/share/vm/runtime/os.hpp @ 1320:3b3d12e645e7

6929067: Stack guard pages should be removed when thread is detached Summary: Add code to unmap stack guard area when thread is detached. Reviewed-by: coleenp, kamg
author coleenp
date Fri, 12 Mar 2010 10:42:16 -0500
parents 167c2986d91b
children c18cbe5936b8
comparison
equal deleted inserted replaced
1292:12d91eb0f579 1320:3b3d12e645e7
216 static bool protect_memory(char* addr, size_t bytes, ProtType prot, 216 static bool protect_memory(char* addr, size_t bytes, ProtType prot,
217 bool is_committed = true); 217 bool is_committed = true);
218 218
219 static bool guard_memory(char* addr, size_t bytes); 219 static bool guard_memory(char* addr, size_t bytes);
220 static bool unguard_memory(char* addr, size_t bytes); 220 static bool unguard_memory(char* addr, size_t bytes);
221 static bool create_stack_guard_pages(char* addr, size_t bytes);
222 static bool remove_stack_guard_pages(char* addr, size_t bytes);
223
221 static char* map_memory(int fd, const char* file_name, size_t file_offset, 224 static char* map_memory(int fd, const char* file_name, size_t file_offset,
222 char *addr, size_t bytes, bool read_only = false, 225 char *addr, size_t bytes, bool read_only = false,
223 bool allow_exec = false); 226 bool allow_exec = false);
224 static char* remap_memory(int fd, const char* file_name, size_t file_offset, 227 static char* remap_memory(int fd, const char* file_name, size_t file_offset,
225 char *addr, size_t bytes, bool read_only, 228 char *addr, size_t bytes, bool read_only,