commit | 62a93aada1357db8191aca9ed34274c053c1a2d9 | [log] [tgz] |
---|---|---|
author | Makoto Onuki <omakoto@google.com> | Tue Aug 08 10:24:59 2017 -0700 |
committer | Makoto Onuki <omakoto@google.com> | Tue Aug 08 18:29:53 2017 +0000 |
tree | a08483a0ed7e31b16b59491122195449bf2795a0 | |
parent | b4dcdd5f45b689d6173d7c29a014485f44cbc927 [diff] |
Don't retain a bitmap unnecessarily Due to a limitation in the GC, LazyTaskWriterThread would always retain the last item it processed. Extract the second half into a separate method to clarify the scope of the variable 'item' to the GC. Bug: 64438652 Test: Launch several apps and check with ahat Change-Id: Ie7357927ae61a8731285d14743187a2d811fbf8c