src/share/vm/runtime/thread.hpp

Print this page
rev 6623 : 8048241: Introduce umbrella header os.inline.hpp and clean up includes
Reviewed-by: coleenp, dholmes, lfoltan

*** 1759,1796 **** inline CompilerThread* JavaThread::as_CompilerThread() { assert(is_Compiler_thread(), "just checking"); return (CompilerThread*)this; } - inline bool JavaThread::stack_guard_zone_unused() { - return _stack_guard_state == stack_guard_unused; - } - - inline bool JavaThread::stack_yellow_zone_disabled() { - return _stack_guard_state == stack_guard_yellow_disabled; - } - - inline bool JavaThread::stack_yellow_zone_enabled() { - #ifdef ASSERT - if (os::uses_stack_guard_pages()) { - assert(_stack_guard_state != stack_guard_unused, "guard pages must be in use"); - } - #endif - return _stack_guard_state == stack_guard_enabled; - } - - inline size_t JavaThread::stack_available(address cur_sp) { - // This code assumes java stacks grow down - address low_addr; // Limit on the address for deepest stack depth - if (_stack_guard_state == stack_guard_unused) { - low_addr = stack_base() - stack_size(); - } else { - low_addr = stack_yellow_zone_base(); - } - return cur_sp > low_addr ? cur_sp - low_addr : 0; - } - // A thread used for Compilation. class CompilerThread : public JavaThread { friend class VMStructs; private: CompilerCounters* _counters; --- 1759,1768 ----
*** 1861,1871 **** inline CompilerThread* CompilerThread::current() { return JavaThread::current()->as_CompilerThread(); } - // The active thread queue. It also keeps track of the current used // thread priorities. class Threads: AllStatic { friend class VMStructs; private: --- 1833,1842 ----