summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorShibin George <shibing@codeaurora.org>2016-06-28 15:56:50 +0530
committerShibin George <shibing@codeaurora.org>2016-07-06 05:00:43 +0000
commitc4f28a419615a6035085e74fbd7670f27faf3d0f (patch)
tree551db306b0732faf3fed53d92590e89b01e12709 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent326e55a3e25366b45e152ab5234b42dee781e8ac (diff)
Fix deadlock in MediaSessionService during getCurrentUser()
SystemServiceMAnager.stopUser() acquires ActivityManagerService lock first and then acquires MediaSessionService.mLock during onStopUser(). MediaSessionService.onSwitchUser(), on the other hand, acquires mLock first and ActivityManagerService lock next. This is a potential deadlock situation which can be resolved by moving getCurrentUser() out of synchronized block. This will release mLock sooner and avoid the deadlock. https://code.google.com/p/android/issues/detail?id=214469 Change-Id: Ieb4520d60af6ca38496ca933da0cd9ae096a9408 Signed-off-by: Shibin George <shibing@codeaurora.org>
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions