8186286: [BSD] Primary thread's stack size is reported incorrectly

Reviewed-by: shade, stuefe
This commit is contained in:
Gunter Haug 2017-08-16 14:14:23 +02:00
parent 29264c3764
commit 6804875880
2 changed files with 9 additions and 0 deletions

View file

@ -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);