65 void set_lwp_id(uint id) { _lwp_id = id; } 66 void set_native_priority(int prio) { _native_priority = prio; } 67 68 // *************************************************************** 69 // interrupt support. interrupts (using signals) are used to get 70 // the thread context (get_thread_pc), to set the thread context 71 // (set_thread_pc), and to implement java.lang.Thread.interrupt. 72 // *************************************************************** 73 74 public: 75 os::SuspendResume sr; 76 77 private: 78 ucontext_t* _ucontext; 79 80 public: 81 ucontext_t* ucontext() const { return _ucontext; } 82 void set_ucontext(ucontext_t* ptr) { _ucontext = ptr; } 83 static void SR_handler(Thread* thread, ucontext_t* uc); 84 85 static void handle_spinlock_contention(int tries); // Used for thread local eden locking 86 87 // *************************************************************** 88 // Platform dependent initialization and cleanup 89 // *************************************************************** 90 91 private: 92 93 void pd_initialize(); 94 void pd_destroy(); 95 96 #endif // OS_SOLARIS_VM_OSTHREAD_SOLARIS_HPP | 65 void set_lwp_id(uint id) { _lwp_id = id; } 66 void set_native_priority(int prio) { _native_priority = prio; } 67 68 // *************************************************************** 69 // interrupt support. interrupts (using signals) are used to get 70 // the thread context (get_thread_pc), to set the thread context 71 // (set_thread_pc), and to implement java.lang.Thread.interrupt. 72 // *************************************************************** 73 74 public: 75 os::SuspendResume sr; 76 77 private: 78 ucontext_t* _ucontext; 79 80 public: 81 ucontext_t* ucontext() const { return _ucontext; } 82 void set_ucontext(ucontext_t* ptr) { _ucontext = ptr; } 83 static void SR_handler(Thread* thread, ucontext_t* uc); 84 85 // *************************************************************** 86 // Platform dependent initialization and cleanup 87 // *************************************************************** 88 89 private: 90 91 void pd_initialize(); 92 void pd_destroy(); 93 94 #endif // OS_SOLARIS_VM_OSTHREAD_SOLARIS_HPP |