summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2021-12-12 12:12:09 -0800
committerTim Murray <timmurray@google.com>2022-01-04 15:09:15 -0800
commit122a8ec26056cca0d372884fe629030cba2e6d67 (patch)
tree8303f6b51c833efc5aee78d9fb92b4ca3dab1033 /core/java/android/inputmethodservice/InputMethodService.java
parent3b5acfe29726b8e2fe061eba1ccfc4fd8ee1af35 (diff)
BaseParceledListSlice: remove List reference once transfer completes
Currently, BaseParceledListSlice will hold a reference to the List<> until the Binder object is destroyed. However, this requires that the receiver run GC before the sender's global Binder reference can be removed, causing the List to be retained until both receiver and sender perform GC. Since the List is usually the large part of the object, instead clear the reference to the List once the transfer to the receiver completes, allowing the List to be GC'd before the receiver GC's its reference to the sender's Binder object. Test: boots Bug: 213236807 Change-Id: I22d6e56c953db3c85179911b909d5b6e7c8ba784
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions