mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8176768: hotspot ignores PTHREAD_STACK_MIN when creating new threads
Use PTHREAD_STACK_MIN as a minimum, plus other stack size cleanup Reviewed-by: dholmes, stuefe, dcubed
This commit is contained in:
parent
99d6ff5c76
commit
17a8069db3
8 changed files with 108 additions and 19 deletions
|
@ -759,7 +759,8 @@ bool os::create_thread(Thread* thread, ThreadType thr_type,
|
|||
|
||||
// calculate stack size if it's not specified by caller
|
||||
size_t stack_size = os::Posix::get_initial_stack_size(thr_type, req_stack_size);
|
||||
pthread_attr_setstacksize(&attr, stack_size);
|
||||
int status = pthread_attr_setstacksize(&attr, stack_size);
|
||||
assert_status(status == 0, status, "pthread_attr_setstacksize");
|
||||
|
||||
ThreadState state;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue