Home
last modified time | relevance | path

Searched refs:priority (Results 1 – 19 of 19) sorted by relevance

/art/test/720-thread-priority/src/
DMain.java29 int priority = getThreadPlatformPriority(); in run() local
30 if (priority != initialPlatformPriority) { in run()
31 throw new Error("Expected " + initialPlatformPriority + ", got " + priority); in run()
35 priority = getThreadPlatformPriority(); in run()
36 if (priority != maxPlatformPriority) { in run()
37 throw new Error("Expected " + maxPlatformPriority + ", got " + priority); in run()
/art/libartpalette/system/
Dpalette_fake.cc36 enum PaletteStatus PaletteSchedSetPriority(int32_t tid, int32_t priority) { in PaletteSchedSetPriority() argument
37 if (priority < art::palette::kMinManagedThreadPriority || in PaletteSchedSetPriority()
38 priority > art::palette::kMaxManagedThreadPriority) { in PaletteSchedSetPriority()
42 g_tid_priority_map[tid] = priority; in PaletteSchedSetPriority()
47 /*out*/int32_t* priority) { in PaletteSchedGetPriority() argument
52 *priority = g_tid_priority_map[tid]; in PaletteSchedGetPriority()
/art/runtime/
Dthread_pool.cc86 void ThreadPoolWorker::SetPthreadPriority(int priority) { in SetPthreadPriority() argument
87 CHECK_GE(priority, PRIO_MIN); in SetPthreadPriority()
88 CHECK_LE(priority, PRIO_MAX); in SetPthreadPriority()
90 int result = setpriority(PRIO_PROCESS, pthread_gettid_np(pthread_), priority); in SetPthreadPriority()
92 PLOG(ERROR) << "Failed to setpriority to :" << priority; in SetPthreadPriority()
95 UNUSED(priority); in SetPthreadPriority()
310 void ThreadPool::SetPthreadPriority(int priority) { in SetPthreadPriority() argument
312 worker->SetPthreadPriority(priority); in SetPthreadPriority()
Dthread_pool.h87 void SetPthreadPriority(int priority);
164 void SetPthreadPriority(int priority);
Dthread.cc1807 int priority; in DumpState() local
1829 priority = jni::DecodeArtField(WellKnownClasses::java_lang_Thread_priority) in DumpState()
1846 priority = thread->GetNativePriority(); in DumpState()
1848 PaletteStatus status = PaletteSchedGetPriority(tid, &priority); in DumpState()
1862 os << " prio=" << priority in DumpState()
1871 << " prio=" << priority in DumpState()
4313 int priority = 0; in GetNativePriority() local
4314 PaletteStatus status = PaletteSchedGetPriority(GetTid(), &priority); in GetNativePriority()
4316 return priority; in GetNativePriority()
/art/test/931-agent-thread/
Dagent_thread.cc37 priority(0) { in AgentData()
43 jint priority; member
149 data.priority = JVMTI_THREAD_MIN_PRIORITY; in Java_art_Test931_testAgentThread()
152 jvmtiError result = jvmti_env->RunAgentThread(thread.get(), AgentMain, &data, data.priority); in Java_art_Test931_testAgentThread()
/art/libartbase/base/
Dlogging.cc132 int priority = kLogSeverityToAndroidLogPriority[static_cast<size_t>(log_severity)]; in LogLineLowStack() local
135 if (priority == ANDROID_LOG_FATAL) { in LogLineLowStack()
144 android_writeLog(priority, tag, buf); in LogLineLowStack()
147 android_writeLog(priority, tag, message); in LogLineLowStack()
/art/test/720-thread-priority/
Dinfo.txt1 Regression test for Thread.setPriority, which used to always set the priority
DAndroid.bp3 name: "art-run-test-720-thread-priority",
/art/openjdkjvmti/
Dti_thread.cc291 info_ptr->priority = target->GetNativePriority(); in GetThreadInfo()
347 info_ptr->priority = static_cast<jint>(f->GetInt(peer)); in GetThreadInfo()
762 jint priority; member
806 jint priority) { in RunAgentThread() argument
810 if (priority < JVMTI_THREAD_MIN_PRIORITY || priority > JVMTI_THREAD_MAX_PRIORITY) { in RunAgentThread()
843 data->priority = priority; in RunAgentThread()
Dti_thread.h113 jint priority);
DOpenjdkJvmTi.cc243 jint priority) { in RunAgentThread() argument
245 return ThreadUtil::RunAgentThread(env, thread, proc, arg, priority); in RunAgentThread()
/art/runtime/jit/
Dprofile_saver.cc60 static void SetProfileSaverThreadPriority(pthread_t thread, int priority) { in SetProfileSaverThreadPriority() argument
62 int result = setpriority(PRIO_PROCESS, pthread_gettid_np(thread), priority); in SetProfileSaverThreadPriority()
64 LOG(ERROR) << "Failed to setpriority to :" << priority; in SetProfileSaverThreadPriority()
68 UNUSED(priority); in SetProfileSaverThreadPriority()
/art/test/924-threads/
Dthreads.cc109 return env->NewStringUTF(android::base::StringPrintf("%d", info.priority).c_str()); in Java_art_Test924_getThreadInfo()
/art/tools/ahat/
DREADME.txt37 * [low priority] by site allocations won't line up if the stack has been
/art/compiler/optimizing/
Dregister_allocator_graph_color.cc127 priority(ComputeCoalescePriority(kind, position, liveness)) {} in CoalesceOpportunity()
133 return lhs->priority < rhs->priority; in CmpPriority()
144 const size_t priority; member
/art/openjdkjvmti/include/
Djvmti.h520 jint priority; member
1060 jint priority);
1868 jint priority) { in RunAgentThread()
1869 return functions->RunAgentThread(this, thread, proc, arg, priority); in RunAgentThread()
/art/test/utils/
Dregen-test-files203 art-run-test-720-thread-priority
/art/test/
DAndroid.bp633 "720-thread-priority/thread_priority.cc",