mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8186286: [BSD] Primary thread's stack size is reported incorrectly
Reviewed-by: shade, stuefe
This commit is contained in:
parent
29264c3764
commit
6804875880
2 changed files with 9 additions and 0 deletions
|
@ -2514,6 +2514,9 @@ void JavaThread::create_stack_guard_pages() {
|
|||
address low_addr = stack_end();
|
||||
size_t len = stack_guard_zone_size();
|
||||
|
||||
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();
|
||||
// warning("Guarding at " PTR_FORMAT " for len " SIZE_FORMAT "\n", low_addr, len);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue