mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +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
|
@ -4275,16 +4275,6 @@ void os::init(void) {
|
|||
|
||||
main_thread = thr_self();
|
||||
|
||||
// Constant minimum stack size allowed. It must be at least
|
||||
// the minimum of what the OS supports (thr_min_stack()), and
|
||||
// enough to allow the thread to get to user bytecode execution.
|
||||
Posix::_compiler_thread_min_stack_allowed = MAX2(thr_min_stack(),
|
||||
Posix::_compiler_thread_min_stack_allowed);
|
||||
Posix::_java_thread_min_stack_allowed = MAX2(thr_min_stack(),
|
||||
Posix::_java_thread_min_stack_allowed);
|
||||
Posix::_vm_internal_thread_min_stack_allowed = MAX2(thr_min_stack(),
|
||||
Posix::_vm_internal_thread_min_stack_allowed);
|
||||
|
||||
// dynamic lookup of functions that may not be available in our lowest
|
||||
// supported Solaris release
|
||||
void * handle = dlopen("libc.so.1", RTLD_LAZY);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue