mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
8241053: Hotspot runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java test fails on Alpine Linux with debug build
Reviewed-by: dholmes, stuefe, dsamersoff
This commit is contained in:
parent
7f0777ae88
commit
c55e52e01f
1 changed files with 11 additions and 1 deletions
|
@ -921,7 +921,17 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
|
|||
assert(is_aligned(stack_size, os::vm_page_size()), "stack_size not aligned");
|
||||
|
||||
int status = pthread_attr_setstacksize(&attr, stack_size);
|
||||
assert_status(status == 0, status, "pthread_attr_setstacksize");
|
||||
if (status != 0) {
|
||||
// pthread_attr_setstacksize() function can fail
|
||||
// if the stack size exceeds a system-imposed limit.
|
||||
assert_status(status == EINVAL, status, "pthread_attr_setstacksize");
|
||||
log_warning(os, thread)("The %sthread stack size specified is invalid: " SIZE_FORMAT "k",
|
||||
(thr_type == compiler_thread) ? "compiler " : ((thr_type == java_thread) ? "" : "VM "),
|
||||
stack_size / K);
|
||||
thread->set_osthread(NULL);
|
||||
delete osthread;
|
||||
return false;
|
||||
}
|
||||
|
||||
ThreadState state;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue