summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorHenrik Engström <henrik.engstrom@sonymobile.com>2012-04-24 15:30:19 +0200
committerJohan Redestig <johan.redestig@sonymobile.com>2015-03-21 21:16:47 +0000
commit6d06825ad8809353785eec2f337a6da65ec187fa (patch)
tree8d50e4b9b6a65df8a4ef90408c0aa34580f1f3d1 /rs/java/android/renderscript/RenderScript.java
parent38fcaf4037a50225b931551a48c898c7b0bb4db2 (diff)
Fix for infinite loop in RemoteViewsAdapter
This patch fixes an error in RemoteViewsAdapter when there is only one view in the cache, and it is bigger than the cache size threshold. This would cause the cleanup of the cache to get stuck in an infinite loop while holding the mCache lock that is also needed by for example getView which is called on the UI thread, leading to ANRs. This patch breaks the loop when it sees that it can not remove the next view up for removal. Change-Id: I331259bb10eae9fe91e5112102e08f49cc078a1b
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions