summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorAhan Wu <ahanwu@google.com>2019-03-22 15:07:06 +0800
committerAhan Wu <ahanwu@google.com>2019-03-22 15:07:06 +0800
commit1e0e143c40a83580b5ced3ee28407119c1acb217 (patch)
tree55f1f97e37ae7bd3725cf8d05d7016a8b207680b /rs/java/android/renderscript/RenderScript.java
parent05591aeaf99507664934718b3d25d8f9d991f4c9 (diff)
Release bitmap reference right after Per85ComputeTask done its job.
In some weird cases, AsyncTasks might not be released as soon as we expect and the params might also be kept for a long time. Therefore, we try to nullify the reference to the params right after background job has been completed to avoid this kind of leakage. Bug: 124127996 Test: run "atest android.app.cts.WallpaperManagerTest" Test: Observe the memory usage during and after cts tests. Change-Id: I1bb7fa827be84e1739ed47df521e687a3d7a1727
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions