8017313: PPC64 (part 6): stack handling improvements

Precompute limit for stack overflow check.

Reviewed-by: kvn, coleenp
This commit is contained in:
Goetz Lindenmaier 2013-06-24 17:11:47 +02:00
parent 7509ebea00
commit ac0c6f1e84
2 changed files with 17 additions and 1 deletions

View file

@ -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).