summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseSetArray.java
diff options
context:
space:
mode:
authorMing-Shin Lu <lumark@google.com>2022-04-28 17:15:17 +0000
committerMing-Shin Lu <lumark@google.com>2022-05-09 03:15:22 +0000
commit576bba9bb0bfc841f902b8ca58f2ff09374666ff (patch)
tree211f28fee8b527bee8bcac43c002d051d7d14599 /core/java/android/util/SparseSetArray.java
parentc0573c9851282fc54d3e3906d7250d5b152e79c9 (diff)
Fix memory usage issue on WindowTokenClient
As WindowTokenClient#{onConfigurationChanged, onWindowTokenRemoved} requires to post on mainthread, in case posting runnable accquires more java objects to increase java heap memory, use PooledLambda to obtain cached runnable for saving memory usage. Also, use ActivityThread.currentActivityThread.getHandler to get the main handler rather than creating the new object. Fix: 215447496 Test: run MemoryOnBoot Change-Id: Idb2c01a0da02ff669e1a3f1a55f4841f7aa258ba
Diffstat (limited to 'core/java/android/util/SparseSetArray.java')
0 files changed, 0 insertions, 0 deletions