diff options
author | Ahan Wu <ahanwu@google.com> | 2019-03-22 15:07:06 +0800 |
---|---|---|
committer | Ahan Wu <ahanwu@google.com> | 2019-03-22 15:07:06 +0800 |
commit | 1e0e143c40a83580b5ced3ee28407119c1acb217 (patch) | |
tree | 55f1f97e37ae7bd3725cf8d05d7016a8b207680b /rs/java/android/renderscript/RenderScript.java | |
parent | 05591aeaf99507664934718b3d25d8f9d991f4c9 (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