6929067: Stack guard pages should be removed when thread is detached

Add code to unmap stack guard area when thread is detached.

Reviewed-by: coleenp, kamg
This commit is contained in:
Coleen Phillimore 2010-03-12 10:42:16 -05:00
parent 8d1747bc4b
commit 053d7adeb2
8 changed files with 271 additions and 2 deletions

View file

@ -218,6 +218,9 @@ class os: AllStatic {
static bool guard_memory(char* addr, size_t bytes);
static bool unguard_memory(char* addr, size_t bytes);
static bool create_stack_guard_pages(char* addr, size_t bytes);
static bool remove_stack_guard_pages(char* addr, size_t bytes);
static char* map_memory(int fd, const char* file_name, size_t file_offset,
char *addr, size_t bytes, bool read_only = false,
bool allow_exec = false);