/art/test/720-thread-priority/src/ |
D | Main.java | 29 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/test/720-thread-priority/ |
D | Android.bp | 3 // Build rules for ART run-test `720-thread-priority`. 16 name: "art-run-test-720-thread-priority", 21 ":art-run-test-720-thread-priority-expected-stdout", 22 ":art-run-test-720-thread-priority-expected-stderr", 28 name: "art-run-test-720-thread-priority-expected-stdout", 29 out: ["art-run-test-720-thread-priority-expected-stdout.txt"], 36 name: "art-run-test-720-thread-priority-expected-stderr", 37 out: ["art-run-test-720-thread-priority-expected-stderr.txt"],
|
D | info.txt | 1 Regression test for Thread.setPriority, which used to always set the priority
|
/art/runtime/ |
D | thread_pool.cc | 90 static void SetPriorityForTid(pid_t tid, int priority) { in SetPriorityForTid() argument 91 CHECK_GE(priority, PRIO_MIN); in SetPriorityForTid() 92 CHECK_LE(priority, PRIO_MAX); in SetPriorityForTid() 93 int result = setpriority(PRIO_PROCESS, tid, priority); in SetPriorityForTid() 96 PLOG(WARNING) << "Failed to setpriority to :" << priority; in SetPriorityForTid() 102 void ThreadPoolWorker::SetPthreadPriority(int priority) { in SetPthreadPriority() argument 104 SetPriorityForTid(pthread_gettid_np(pthread_), priority); in SetPthreadPriority() 106 UNUSED(priority); in SetPthreadPriority() 349 void AbstractThreadPool::SetPthreadPriority(int priority) { in SetPthreadPriority() argument 351 worker->SetPthreadPriority(priority); in SetPthreadPriority() [all …]
|
D | thread_pool.h | 88 void SetPthreadPriority(int priority); 160 void SetPthreadPriority(int priority); 164 void CheckPthreadPriority(int priority);
|
D | thread.cc | 1987 int priority; in DumpState() local 1995 priority = WellKnownClasses::java_lang_Thread_priority->GetInt(thread->tlsPtr_.opeer); in DumpState() 2009 priority = thread->GetNativePriority(); in DumpState() 2011 palette_status_t status = PaletteSchedGetPriority(tid, &priority); in DumpState() 2027 os << " prio=" << priority in DumpState() 2039 << " prio=" << priority in DumpState() 4840 int priority = 0; in GetNativePriority() local 4841 palette_status_t status = PaletteSchedGetPriority(GetTid(), &priority); in GetNativePriority() 4843 return priority; in GetNativePriority()
|
/art/libartpalette/system/ |
D | palette_fake.cc | 33 palette_status_t PaletteSchedSetPriority(int32_t tid, int32_t priority) { in PaletteSchedSetPriority() argument 34 if (priority < art::palette::kMinManagedThreadPriority || in PaletteSchedSetPriority() 35 priority > art::palette::kMaxManagedThreadPriority) { in PaletteSchedSetPriority() 39 g_tid_priority_map[tid] = priority; in PaletteSchedSetPriority() 44 /*out*/int32_t* priority) { in PaletteSchedGetPriority() argument 49 *priority = g_tid_priority_map[tid]; in PaletteSchedGetPriority()
|
/art/test/931-agent-thread/ |
D | agent_thread.cc | 37 priority(0) { in AgentData() 43 jint priority; member 143 data.priority = JVMTI_THREAD_MIN_PRIORITY; in Java_art_Test931_testAgentThread() 146 jvmtiError result = jvmti_env->RunAgentThread(thread.get(), AgentMain, &data, data.priority); in Java_art_Test931_testAgentThread()
|
/art/libartbase/base/ |
D | logging.cc | 132 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/libarttools/ |
D | art_exec.cc | 80 std::optional<int> priority = std::nullopt; member 108 options.priority = ANDROID_PRIORITY_BACKGROUND; in ParseOptions() 207 if (options.priority.has_value()) { in main() 208 if (setpriority(PRIO_PROCESS, /*who=*/0, options.priority.value()) != 0) { in main()
|
/art/libartservice/service/ |
D | README.md | 38 A priority class indicates the priority of an operation. The value affects the 39 resource usage and the process priority. A higher value may result in faster 57 [priority class](#priority-classes) of an operation. 74 or a custom string. If the value is a custom string, the priority class and the
|
/art/openjdkjvmti/ |
D | ti_thread.cc | 287 info_ptr->priority = target->GetNativePriority(); in GetThreadInfo() 345 info_ptr->priority = static_cast<jint>(f->GetInt(peer)); in GetThreadInfo() 776 jint priority; member 820 jint priority) { in RunAgentThread() argument 824 if (priority < JVMTI_THREAD_MIN_PRIORITY || priority > JVMTI_THREAD_MAX_PRIORITY) { in RunAgentThread() 864 data->priority = priority; in RunAgentThread()
|
D | ti_thread.h | 113 jint priority);
|
D | OpenjdkJvmTi.cc | 237 jint priority) { in RunAgentThread() argument 239 return ThreadUtil::RunAgentThread(env, thread, proc, arg, priority); in RunAgentThread()
|
/art/runtime/jit/ |
D | profile_saver.cc | 60 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/ |
D | threads.cc | 109 return env->NewStringUTF(android::base::StringPrintf("%d", info.priority).c_str()); in Java_art_Test924_getThreadInfo()
|
/art/build/boot/ |
D | Android.bp | 122 max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"],
|
/art/tools/ahat/ |
D | README.txt | 37 * [low priority] by site allocations won't line up if the stack has been
|
/art/openjdkjvmti/include/ |
D | jvmti.h | 520 jint priority; member 1060 jint priority); 1868 jint priority) { in RunAgentThread() 1869 return functions->RunAgentThread(this, thread, proc, arg, priority); in RunAgentThread()
|
/art/test/ |
D | Android.bp | 949 "720-thread-priority/thread_priority.cc",
|
/art/build/boot/hiddenapi/ |
D | hiddenapi-max-target-o-low-priority.txt | 1883 Ljava/io/ObjectInputStream$ValidationList$Callback;->priority:I
|