mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8017313: PPC64 (part 6): stack handling improvements
Precompute limit for stack overflow check. Reviewed-by: kvn, coleenp
This commit is contained in:
parent
7509ebea00
commit
ac0c6f1e84
2 changed files with 17 additions and 1 deletions
|
@ -312,6 +312,9 @@ void Thread::initialize_thread_local_storage() {
|
|||
void Thread::record_stack_base_and_size() {
|
||||
set_stack_base(os::current_stack_base());
|
||||
set_stack_size(os::current_stack_size());
|
||||
if (is_Java_thread()) {
|
||||
((JavaThread*) this)->set_stack_overflow_limit();
|
||||
}
|
||||
// CR 7190089: on Solaris, primordial thread's stack is adjusted
|
||||
// in initialize_thread(). Without the adjustment, stack size is
|
||||
// incorrect if stack is set to unlimited (ulimit -s unlimited).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue