summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/RenderScriptGL.java
diff options
context:
space:
mode:
authorJohn Michelau <w14107@motorola.com>2013-03-18 18:28:23 -0500
committerJohn Michelau <w14107@motorola.com>2013-03-19 14:39:33 -0500
commit116415271b952ab9e842f3850faa1a44cb70bf6a (patch)
tree1ce5439168e51fe0a28dd9cdd37942a9c77dc7a5 /graphics/java/android/renderscript/RenderScriptGL.java
parentebebb80b4a629756128b5a4fcf483133f01dbfd7 (diff)
Fix Watchdog HeartbeatHandler to run on correct thread
The HeartbeatHandler for the System Server Watchdog has been running on the wrong thread due to a race condition in initialization. It's designed to run on ServerThread, so that it can catch lockups in the main looper of the System Server. It has been running on ActivityManagerThread instead, so it does not detect lockups on the ServerThread as it should. ActivityManagerService is calling Watchdog.getInstance() before ServerThread calls Watchdog.getInstance().init(), so the handler is being bound to the ActivityManagerThread instead of the ServerThread. Explicitly bind HeartbeatHandler to ServerThread, so that the Watchdog catches lockups on this critical thread. Change-Id: Iccb184ac3adb817feb86ed4ee0e50e443bf74636
Diffstat (limited to 'graphics/java/android/renderscript/RenderScriptGL.java')
0 files changed, 0 insertions, 0 deletions