Lines Matching defs:Thread

91 // - Thread
102 class Thread: public ThreadShadow {
109 static THREAD_LOCAL_DECL Thread* _thr_current;
272 ThreadLocalAllocBuffer _tlab; // Thread-local eden
276 mutable TRACE_DATA _trace_data; // Thread-local data for tracing
313 Thread();
314 virtual ~Thread();
316 // Manage Thread::current()
349 static inline Thread* current();
351 static inline Thread* current_or_null();
354 static inline Thread* current_or_null_safe();
357 static void set_priority(Thread* thread, ThreadPriority priority);
358 static ThreadPriority get_priority(const Thread* const thread);
359 static void start(Thread* thread);
360 static void interrupt(Thread* thr);
361 static bool is_interrupted(Thread* thr, bool clear_interrupted);
364 assert(Thread::current() == this, "set_native_thread_name can only be called on the current thread");
386 // Thread's fields layout the same.
437 // Thread-Local Allocation Buffer (TLAB) support
531 // Thread local resource area for temporary allocation within the VM
536 // Thread local handle area for allocation of handles within the VM
606 static ByteSize exception_file_offset() { return byte_offset_of(Thread, _exception_file); }
607 static ByteSize exception_line_offset() { return byte_offset_of(Thread, _exception_line); }
608 static ByteSize active_handles_offset() { return byte_offset_of(Thread, _active_handles); }
610 static ByteSize stack_base_offset() { return byte_offset_of(Thread, _stack_base); }
611 static ByteSize stack_size_offset() { return byte_offset_of(Thread, _stack_size); }
614 static ByteSize tlab_##name##_offset() { return byte_offset_of(Thread, _tlab) + ThreadLocalAllocBuffer::name##_offset(); }
628 static ByteSize allocated_bytes_offset() { return byte_offset_of(Thread, _allocated_bytes); }
634 ParkEvent * _SleepEvent; // for Thread.sleep
659 // Inline implementation of Thread::current()
660 inline Thread* Thread::current() {
661 Thread* current = current_or_null();
662 assert(current != NULL, "Thread::current() called on detached thread");
666 inline Thread* Thread::current_or_null() {
674 inline Thread* Thread::current_or_null_safe() {
680 class NamedThread: public Thread {
698 virtual char* name() const { return _name == NULL ? (char*)"Unknown Thread" : _name; }
725 class WatcherThread: public Thread {
755 char* name() const { return (char*)"VM Periodic Task Thread"; }
770 assert(Thread::current()->is_Watcher_thread(), "Can only be set by WatcherThread");
786 class JavaThread: public Thread {
895 volatile bool _doing_unsafe_access; // Thread may fault due to unsafe access
1011 SATBMarkQueue _satb_mark_queue; // Thread-local log for SATB barrier.
1015 DirtyCardQueue _dirty_card_queue; // Thread-local log for dirty cards.
1067 // Thread chain operations
1071 // Thread oop. threadObj() can be NULL for initial JavaThread
1244 // Thread.stop support
1609 assert(Thread::current() == this ||
1610 (Thread::current()->is_VM_thread() &&
1616 assert(Thread::current() == this, "this must be current thread");
1766 // Thread local information maintained by JVMTI.
1950 Thread* thread = Thread::current();
2063 // Thread management
2137 static void print_on_error(outputStream* st, Thread* current, char* buf, int buflen);
2138 static void print_on_error(Thread* this_thread, outputStream* st, Thread* current, char* buf,
2167 // Thread iterator
2170 virtual void do_thread(Thread* thread) = 0;
2175 Thread* _thread;
2177 SignalHandlerMark(Thread* t) {