diff options
author | Andreas Gampe <agampe@google.com> | 2019-03-04 14:15:18 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2019-04-12 10:46:04 -0700 |
commit | 72ede720e26e442f31b96bbd45ae95c1470bf713 (patch) | |
tree | 6ff1a1af2b67c89ed1fdaa00a7f043e7ddff2593 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | e4f9b348a50f2af162ec800183c5e0c32367176b (diff) |
Framework: Lock inversion checker
Add an agent-based lock inversion checker. The agent will dynamically
rewrite bytecode to inject calls to LockHook, which runs a checker
on these.
Implement a simple on-thread checker that keeps a per-thread stack
of locks and a global map of lock ordering. As-is, transitivity of
checks is not guaranteed, but should be captured in most practical
cases.
To run a process with the lock checker, start the process with the
agent. The helper script start_with_lockagent.sh can be used for this:
adb shell setprop wrap.pkg-name script start_with_lockagent
(cherry picked from commit aeb6fce5b33680bc538dbd66979a28bcba1329b4)
Bug: 124744938
Test: manual
Merged-In: Idd9a7066a5b8cb8c0de2e995f08759c98d9473e1
Change-Id: Idd9a7066a5b8cb8c0de2e995f08759c98d9473e1
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions