// _pthread_id is the pthread id, which is used by library calls // (e.g. pthread_kill).
pthread_t _pthread_id;
// This is the "thread_id" from struct thread_identifier_info. According to a // comment in thread_info.h, this is a "system-wide unique 64-bit thread id". // The value is used by SA to correlate threads.
uint64_t _unique_thread_id;
#ifndef PRODUCT // Used for debugging, return a unique integer for each thread.
intptr_t thread_identifier() const { return (intptr_t)_pthread_id; } #endif
public: // flags that support signal based suspend/resume on Bsd are in a // separate class to avoid confusion with many flags in OSThread that // are used by VM level suspend/resume.
SuspendResume sr;
// _ucontext and _siginfo are used by SR_handler() to save thread context, // and they will later be used to walk the stack or reposition thread PC. // If the thread is not suspended in SR_handler() (e.g. self suspend), // the value in _ucontext is meaningless, so we must use the last Java // frame information as the frame. This will mean that for threads // that are parked on a mutex the profiler (and safepoint mechanism) // will see the thread as if it were still in the Java frame. This // not a problem for the profiler since the Java frame is a close // enough result. For the safepoint mechanism when the give it the // Java frame we are not at a point where the safepoint needs the // frame to that accurate (like for a compiled safepoint) since we // should be in a place where we are native and will block ourselves // if we transition. private: void* _siginfo;
ucontext_t* _ucontext; int _expanding_stack; /* non zero if manually expanding stack */
address _alt_sig_stack; /* address of base of alternate signal stack */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.