mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-13 12:38:07 +00:00
8362162: Use bool for caller of os::must_commit_stack_guard_pages()
Reviewed-by: shade, kbarrett
This commit is contained in:
parent
bf225c201f
commit
c9ecc82666
@ -89,7 +89,7 @@ void StackOverflow::create_stack_guard_pages() {
|
||||
assert(is_aligned(low_addr, os::vm_page_size()), "Stack base should be the start of a page");
|
||||
assert(is_aligned(len, os::vm_page_size()), "Stack size should be a multiple of page size");
|
||||
|
||||
int must_commit = os::must_commit_stack_guard_pages();
|
||||
bool must_commit = os::must_commit_stack_guard_pages();
|
||||
// warning("Guarding at " PTR_FORMAT " for len %zu\n", low_addr, len);
|
||||
|
||||
if (must_commit && !os::create_stack_guard_pages((char *) low_addr, len)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user