summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScriptCacheDir.java
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2017-03-02 13:39:07 -0800
committerHiroshi Yamauchi <yamauchi@google.com>2017-03-13 10:31:30 -0700
commit04ed6500833373b8a544f161113871e5dc5c867c (patch)
treed43da3e4c7520c38d2323888ba73c24b88c1adec /rs/java/android/renderscript/RenderScriptCacheDir.java
parentc25e2b79b11083dcbb82e610b8e544d63077db01 (diff)
Fix the reset of boosted zygote thread priority.
This fixes the unexpected priority 112 of the daemon threads (eg. HeapTaskDaemon). The problem was that when the zygote main thread's priority is reset, it directly calls setpriority() and fails to update the priority value in java.lang.Thread, which in turn causes any threads created by the thread to unexpectedly inherit the boosted priority. Calling java.lang.Thread.setPriority instead fixes. (cherry picked from commit 1e3db871e52e59c69edb1843df7f4aecb030bc6f) Bug: 35801778 Bug: 28866384 Test: angler master userdebug boots and thread priorities checked. Change-Id: I68a6ed7244a9067acc2749feca7f88422bf44b02
Diffstat (limited to 'rs/java/android/renderscript/RenderScriptCacheDir.java')
0 files changed, 0 insertions, 0 deletions