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

@ -2698,6 +2698,14 @@ void os::free_memory(char* addr, size_t bytes) {
}
}
bool os::create_stack_guard_pages(char* addr, size_t size) {
return os::commit_memory(addr, size);
}
bool os::remove_stack_guard_pages(char* addr, size_t size) {
return os::uncommit_memory(addr, size);
}
// Change the page size in a given range.
void os::realign_memory(char *addr, size_t bytes, size_t alignment_hint) {
assert((intptr_t)addr % alignment_hint == 0, "Address should be aligned.");