Searched refs:priority (Results 1 - 12 of 12) sorted by relevance

/art/runtime/
H A Dthread_pool.cc70 void ThreadPoolWorker::SetPthreadPriority(int priority) { argument
71 CHECK_GE(priority, PRIO_MIN);
72 CHECK_LE(priority, PRIO_MAX);
74 int result = setpriority(PRIO_PROCESS, pthread_gettid_np(pthread_), priority);
76 PLOG(ERROR) << "Failed to setpriority to :" << priority;
79 UNUSED(priority);
252 void ThreadPool::SetPthreadPriority(int priority) { argument
254 worker->SetPthreadPriority(priority);
H A Dthread_pool.h63 void SetPthreadPriority(int priority);
133 void SetPthreadPriority(int priority);
H A Dthread.cc1617 int priority; local
1639 priority = jni::DecodeArtField(WellKnownClasses::java_lang_Thread_priority)
1656 priority = GetNativePriority();
1669 os << " prio=" << priority
1678 << " prio=" << priority
/art/libartbase/base/
H A Dlogging.cc105 int priority = kLogSeverityToAndroidLogPriority[static_cast<size_t>(log_severity)]; local
108 if (priority == ANDROID_LOG_FATAL) {
117 android_writeLog(priority, tag, buf);
120 android_writeLog(priority, tag, message);
/art/test/931-agent-thread/
H A Dagent_thread.cc37 priority(0) {
43 jint priority; member in struct:art::Test930AgentThread::AgentData
69 // The thread has the requested priority.
71 // CHECK_EQ(info.priority, data->priority);
110 // runtime-only constructor (so we can set priority and daemon state).
149 data.priority = JVMTI_THREAD_MIN_PRIORITY;
152 jvmtiError result = jvmti_env->RunAgentThread(thread.get(), AgentMain, &data, data.priority);
/art/openjdkjvmti/
H A Dti_thread.h83 jint priority);
H A Dti_thread.cc229 info_ptr->priority = target->GetNativePriority();
285 info_ptr->priority = static_cast<jint>(f->GetInt(peer));
705 jint priority; member in struct:openjdkjvmti::AgentData
749 jint priority) {
753 if (priority < JVMTI_THREAD_MIN_PRIORITY || priority > JVMTI_THREAD_MAX_PRIORITY) {
786 data->priority = priority;
745 RunAgentThread(jvmtiEnv* jvmti_env, jthread thread, jvmtiStartFunction proc, const void* arg, jint priority) argument
H A DOpenjdkJvmTi.cc231 jint priority) {
233 return ThreadUtil::RunAgentThread(env, thread, proc, arg, priority);
227 RunAgentThread(jvmtiEnv* env, jthread thread, jvmtiStartFunction proc, const void* arg, jint priority) argument
/art/runtime/jit/
H A Dprofile_saver.cc49 // At what priority to schedule the saver threads. 9 is the lowest foreground priority on device.
52 static void SetProfileSaverThreadPriority(pthread_t thread, int priority) { argument
54 int result = setpriority(PRIO_PROCESS, pthread_gettid_np(thread), priority);
56 LOG(ERROR) << "Failed to setpriority to :" << priority;
60 UNUSED(priority);
308 // Restore profile saver thread priority during the GC critical section. This helps prevent
309 // priority inversions blocking the GC for long periods of time.
311 // Only restore default priority if we are the profile saver thread. Other threads that call this
/art/test/924-threads/
H A Dthreads.cc107 // The priority. Use a string for simplicity of construction.
109 return env->NewStringUTF(android::base::StringPrintf("%d", info.priority).c_str());
/art/compiler/optimizing/
H A Dregister_allocator_graph_color.cc92 // In general, we estimate coalesce priority by whether it will definitely avoid a move,
99 // give it the lowest priority.
127 priority(ComputeCoalescePriority(kind, position, liveness)) {}
129 // Compare two coalesce opportunities based on their priority.
130 // Return true if lhs has a lower priority than that of rhs.
133 return lhs->priority < rhs->priority;
143 // The priority of this coalesce opportunity, based on heuristics.
144 const size_t priority; member in struct:art::CoalesceOpportunity
171 // Tiny intervals should have maximum priority, sinc
[all...]
/art/openjdkjvmti/include/
H A Djvmti.h520 jint priority; member in struct:_jvmtiThreadInfo
1060 jint priority);
1868 jint priority) {
1869 return functions->RunAgentThread(this, thread, proc, arg, priority);
1865 RunAgentThread(jthread thread, jvmtiStartFunction proc, const void* arg, jint priority) argument

Completed in 235 milliseconds