From c9ecc826668575678f11578a67f125d430ebffad Mon Sep 17 00:00:00 2001 From: Albert Mingkun Yang Date: Tue, 15 Jul 2025 07:51:45 +0000 Subject: [PATCH] 8362162: Use bool for caller of os::must_commit_stack_guard_pages() Reviewed-by: shade, kbarrett --- src/hotspot/share/runtime/stackOverflow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/runtime/stackOverflow.cpp b/src/hotspot/share/runtime/stackOverflow.cpp index 2d7f89cc687..e2bd157c555 100644 --- a/src/hotspot/share/runtime/stackOverflow.cpp +++ b/src/hotspot/share/runtime/stackOverflow.cpp @@ -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)) {