8151413: os::allocation_granularity/page_size and friends return signed values

Reviewed-by: stefank, ccheung, ysr
This commit is contained in:
Afshin Zafari 2023-02-07 14:08:01 +00:00 committed by Jesper Wilhelmsson
parent 09b8a19597
commit 4fe99da74f
66 changed files with 165 additions and 163 deletions

View file

@ -602,7 +602,7 @@ void TemplateInterpreterGenerator::generate_stack_overflow_check(void) {
const int overhead_size =
-(frame::interpreter_frame_initial_sp_offset * wordSize) + entry_size;
const int page_size = os::vm_page_size();
const int page_size = (int)os::vm_page_size();
Label after_frame_check;
@ -889,7 +889,7 @@ void TemplateInterpreterGenerator::bang_stack_shadow_pages(bool native_call) {
// See more discussion in stackOverflow.hpp.
const int shadow_zone_size = checked_cast<int>(StackOverflow::stack_shadow_zone_size());
const int page_size = os::vm_page_size();
const int page_size = (int)os::vm_page_size();
const int n_shadow_pages = shadow_zone_size / page_size;
#ifdef ASSERT