Mercurial > hg > truffle
comparison src/share/vm/runtime/thread.cpp @ 14460:8a9bb7821e28
Merge
author | kvn |
---|---|
date | Wed, 19 Feb 2014 12:08:49 -0800 |
parents | 2c95095271e9 abec000618bf |
children | 28f281e8de1d |
comparison
equal
deleted
inserted
replaced
14360:e8ef156f0bc9 | 14460:8a9bb7821e28 |
---|---|
310 } | 310 } |
311 | 311 |
312 void Thread::record_stack_base_and_size() { | 312 void Thread::record_stack_base_and_size() { |
313 set_stack_base(os::current_stack_base()); | 313 set_stack_base(os::current_stack_base()); |
314 set_stack_size(os::current_stack_size()); | 314 set_stack_size(os::current_stack_size()); |
315 if (is_Java_thread()) { | |
316 ((JavaThread*) this)->set_stack_overflow_limit(); | |
317 } | |
315 // CR 7190089: on Solaris, primordial thread's stack is adjusted | 318 // CR 7190089: on Solaris, primordial thread's stack is adjusted |
316 // in initialize_thread(). Without the adjustment, stack size is | 319 // in initialize_thread(). Without the adjustment, stack size is |
317 // incorrect if stack is set to unlimited (ulimit -s unlimited). | 320 // incorrect if stack is set to unlimited (ulimit -s unlimited). |
318 // So far, only Solaris has real implementation of initialize_thread(). | 321 // So far, only Solaris has real implementation of initialize_thread(). |
319 // | 322 // |