Lines Matching defs:thread

78   CriticalPriority = 11      // Critical thread priority
86 typedef void (*java_call_t)(JavaValue* value, methodHandle* method, JavaCallArguments* args, Thread* thread);
169 // The "virtual time" of a thread is the amount of time a thread has
171 // this functionality for the current thread, and if so:
175 // thread.
223 // Give a name to the current thread.
232 static bool stack_shadow_pages_available(Thread *thread, methodHandle method);
345 // Routines used to serialize the thread state without using membars
348 // Since we write to the serialize page from every thread, we
351 // amount to shift the thread* to make this offset unique to
352 // each thread.
371 static inline void write_memory_serialize_page(JavaThread *thread) {
372 uintptr_t page_offset = ((uintptr_t)thread >>
378 static bool is_memory_serialize_page(JavaThread *thread, address addr) {
381 // thread's serialize page, and checked if the faulting address
384 // within the page. This makes the thread argument unnecessary,
386 if (thread == NULL) return false;
397 cgc_thread, // Concurrent GC thread
398 pgc_thread, // Parallel GC thread
405 static bool create_thread(Thread* thread,
408 static bool create_main_thread(JavaThread* thread);
409 static bool create_attached_thread(JavaThread* thread);
410 static void pd_start_thread(Thread* thread);
411 static void start_thread(Thread* thread);
416 // thread id on Linux/64bit is 64bit, on Windows and Solaris, it's 32bit
419 static int sleep(Thread* thread, jlong ms, bool interruptable);
434 static OSReturn set_priority(Thread* thread, ThreadPriority priority);
435 static OSReturn get_priority(const Thread* const thread, ThreadPriority& priority);
437 static void interrupt(Thread* thread);
438 static bool is_interrupted(Thread* thread, bool clear_interrupted);
440 static int pd_self_suspend_thread(Thread* thread);
445 static ExtendedPC get_thread_pc(Thread *thread);
564 // frame.hpp/cpp assume thread is JavaThread, and also because different
686 static void os_exception_wrapper(java_call_t f, JavaValue* value, methodHandle* method, JavaCallArguments* args, Thread* thread);
793 static OSReturn set_native_priority(Thread* thread, int native_prio);
794 static OSReturn get_native_priority(const Thread* const thread, int* priority_ptr);
808 SuspendedThreadTaskContext(Thread* thread, void *ucontext) : _thread(thread), _ucontext(ucontext) {}
809 Thread* thread() const { return _thread; }
818 SuspendedThreadTask(Thread* thread) : _thread(thread), _done(false) {}
834 // a thread starts in SR_RUNNING
840 // * SR_SUSPENDED if the stopped thread receives the signal and switches state
844 // * SR_RUNNING when the stopped thread receives the signal