Mercurial > hg > truffle
comparison src/share/vm/runtime/thread.cpp @ 17812:a7d4d4655766
Merge
author | kvn |
---|---|
date | Wed, 26 Mar 2014 18:21:05 -0700 |
parents | 62c54fcc0a35 |
children | 8847586c9037 |
comparison
equal
deleted
inserted
replaced
17789:6b207d038106 | 17812:a7d4d4655766 |
---|---|
313 } | 313 } |
314 | 314 |
315 void Thread::record_stack_base_and_size() { | 315 void Thread::record_stack_base_and_size() { |
316 set_stack_base(os::current_stack_base()); | 316 set_stack_base(os::current_stack_base()); |
317 set_stack_size(os::current_stack_size()); | 317 set_stack_size(os::current_stack_size()); |
318 if (is_Java_thread()) { | |
319 ((JavaThread*) this)->set_stack_overflow_limit(); | |
320 } | |
318 // CR 7190089: on Solaris, primordial thread's stack is adjusted | 321 // CR 7190089: on Solaris, primordial thread's stack is adjusted |
319 // in initialize_thread(). Without the adjustment, stack size is | 322 // in initialize_thread(). Without the adjustment, stack size is |
320 // incorrect if stack is set to unlimited (ulimit -s unlimited). | 323 // incorrect if stack is set to unlimited (ulimit -s unlimited). |
321 // So far, only Solaris has real implementation of initialize_thread(). | 324 // So far, only Solaris has real implementation of initialize_thread(). |
322 // | 325 // |