--- old/src/os/solaris/vm/osThread_solaris.hpp Thu Jan 19 13:24:55 2012 +++ new/src/os/solaris/vm/osThread_solaris.hpp Thu Jan 19 13:24:51 2012 @@ -28,18 +28,18 @@ // This is embedded via include into the class OSThread private: - - thread_t _thread_id; // Solaris thread id - unsigned int _lwp_id; // lwp ID, only used with bound threads - sigset_t _caller_sigmask; // Caller's signal mask - bool _vm_created_thread; // true if the VM create this thread - // false if primary thread or attached thread + thread_t _thread_id; // Solaris thread id + uint _lwp_id; // lwp ID, only used with bound threads + int _native_priority; // Saved native priority when starting + // a bound thread + sigset_t _caller_sigmask; // Caller's signal mask + bool _vm_created_thread; // true if the VM create this thread, + // false if primary thread or attached thread public: + thread_t thread_id() const { return _thread_id; } + uint lwp_id() const { return _lwp_id; } + int native_priority() const { return _native_priority; } - thread_t thread_id() const { return _thread_id; } - - unsigned int lwp_id() const { return _lwp_id; } - // Set and get state of _vm_created_thread flag void set_vm_created() { _vm_created_thread = true; } bool is_vm_created() { return _vm_created_thread; } @@ -62,8 +62,9 @@ return true; } #endif - void set_thread_id(thread_t id) { _thread_id = id; } - void set_lwp_id(unsigned int id){ _lwp_id = id; } + void set_thread_id(thread_t id) { _thread_id = id; } + void set_lwp_id(uint id) { _lwp_id = id; } + void set_native_priority(int prio) { _native_priority = prio; } // *************************************************************** // interrupt support. interrupts (using signals) are used to get