mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8140520: segfault on solaris-amd64 with "-XX:VMThreadStackSize=1" option
Split the single thread_min_stack_allowed into three distinct values (java_thread_min_stack_allowed, compiler_thread_min_stack_allowed and vm_internal_thread_min_stack_allowed) on non-Windows platforms. Reviewed-by: dcubed, gthornbr, dholmes, coleenp, fparain, aph
This commit is contained in:
parent
50fb03349c
commit
2bb3bc6449
34 changed files with 438 additions and 335 deletions
|
@ -80,7 +80,7 @@ bool Exceptions::special_exception(Thread* thread, const char* file, int line, H
|
|||
if (h_exception()->klass() == SystemDictionary::StackOverflowError_klass()) {
|
||||
InstanceKlass* ik = InstanceKlass::cast(h_exception->klass());
|
||||
assert(ik->is_initialized(),
|
||||
"need to increase min_stack_allowed calculation");
|
||||
"need to increase java_thread_min_stack_allowed calculation");
|
||||
}
|
||||
#endif // ASSERT
|
||||
|
||||
|
@ -227,7 +227,7 @@ void Exceptions::throw_stack_overflow_exception(Thread* THREAD, const char* file
|
|||
Klass* k = SystemDictionary::StackOverflowError_klass();
|
||||
oop e = InstanceKlass::cast(k)->allocate_instance(CHECK);
|
||||
exception = Handle(THREAD, e); // fill_in_stack trace does gc
|
||||
assert(InstanceKlass::cast(k)->is_initialized(), "need to increase min_stack_allowed calculation");
|
||||
assert(InstanceKlass::cast(k)->is_initialized(), "need to increase java_thread_min_stack_allowed calculation");
|
||||
if (StackTraceInThrowable) {
|
||||
java_lang_Throwable::fill_in_stack_trace(exception, method());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue