< prev index next >
src/hotspot/share/runtime/thread.cpp
Print this page
*** 2747,2757 ****
if (os::guard_memory((char *) low_addr, len)) {
_stack_guard_state = stack_guard_enabled;
} else {
log_warning(os, thread)("Attempt to protect stack guard pages failed ("
PTR_FORMAT "-" PTR_FORMAT ").", p2i(low_addr), p2i(low_addr + len));
! if (os::uncommit_memory((char *) low_addr, len)) {
log_warning(os, thread)("Attempt to deallocate stack guard pages failed.");
}
return;
}
--- 2747,2757 ----
if (os::guard_memory((char *) low_addr, len)) {
_stack_guard_state = stack_guard_enabled;
} else {
log_warning(os, thread)("Attempt to protect stack guard pages failed ("
PTR_FORMAT "-" PTR_FORMAT ").", p2i(low_addr), p2i(low_addr + len));
! if (os::uncommit_memory((char *) low_addr, len, !ExecMem)) {
log_warning(os, thread)("Attempt to deallocate stack guard pages failed.");
}
return;
}
< prev index next >